Fire in da houseTop Tip:Paying $100+ per month for Perplexity, MidJourney, Runway, ChatGPT and other tools is crazy - get all your AI tools in one site starting at $15 per month with Galaxy AI Fire in da houseCheck it out free

oai_mcp_code_agent

MCP.Pizza Chef: Zovi343

The oai_mcp_code_agent is an MCP server that leverages OpenAI large language models to implement code actions and interact with the MCP protocol. It facilitates AI-driven code manipulation and integration with various tools and resources within the MCP ecosystem. Designed for developers building AI agents, it supports real-time context-aware code operations and is extendable to support advanced code action standards.

Use This MCP server To

Execute AI-driven code actions within MCP workflows Integrate OpenAI LLMs for code generation and editing Enable real-time code context interaction in development environments Serve as a backend for AI-powered coding assistants Facilitate multi-step reasoning for code-related tasks Bridge MCP clients with OpenAI LLM capabilities Support experimental code action protocols in AI agents

README

MCP Code Agent With OpenAI LLMs

Python Version MCP Version OpenAI Version

📘 Overview

This project implements an AI agent powered by OpenAI's LLMs, designed to interact with the MCP server to access various tools and resources. I plan to add support for the code actions, but currently it is in progress.

📦 Installation

First, ensure you have Poetry installed.

poetry install

🚀 Running the Project

  1. Ensure Docker is Running Make sure the Docker daemon is active on your system. You can check this by running:

    docker info

    If Docker is not installed, follow the official Docker installation guide for your operating system.

  2. Start the MCP Weather Server Launch the weather server using:

    poetry run poe weather_server
  3. Run the Chainlit Application Start the Chainlit app with:

    poetry run poe app

Development Setup

This project uses pre-commit to ensure consistent code quality before commits.

poetry run pre-commit install

To manually run hooks:

poetry run pre-commit run --all-files

🛠 Available Tasks

Poe the Poet is used to define common development tasks.

You can list available tasks using:

poetry run poe --help

Defined Tasks

Task Description
lint Runs ruff to lint and auto-fix code
typecheck Runs mypy for static type checking
check Runs both lint and typecheck
app Runs the Chainlit application

Run a task like:

poetry run poe check

📝 License

This repository is licensed under the Apache License, Version 2.0. See the LICENSE file for details.

oai_mcp_code_agent FAQ

How do I install the oai_mcp_code_agent?
Install using Poetry by running 'poetry install' after cloning the repository.
What dependencies are required to run this MCP server?
Python 3.11+, Docker, Poetry, and OpenAI Python SDK are required.
Can this server work with LLM providers other than OpenAI?
While primarily designed for OpenAI, it can be extended to support other providers like Anthropic Claude and Google Gemini.
How do I run the oai_mcp_code_agent?
Ensure Docker is running, then start the server using the provided scripts or commands in the README.
Is support for code actions fully implemented?
Support for code actions is currently in progress and planned for future releases.
How does this server interact with MCP clients?
It exposes structured code-related data and actions via the MCP protocol for clients to consume.
Can I customize or extend the code actions?
Yes, the project is designed to be extensible for adding new code action capabilities.
What Python version is supported?
Python 3.11 is the supported version as indicated in the project badges.