MCP Code Agent With OpenAI LLMs

MCP Code Agent With OpenAI LLMs

By Zovi343 GitHub

Agent implementing code actions and MCP protocol based on OpenAI LLMs.

Overview

what is MCP Code Agent With OpenAI LLMs?

MCP Code Agent is an AI agent that utilizes OpenAI's LLMs to interact with the MCP server, enabling access to various tools and resources for code actions.

how to use MCP Code Agent?

To use the MCP Code Agent, ensure Docker is running, start the MCP Weather Server, and then run the Chainlit application using Poetry commands.

key features of MCP Code Agent?

  • Integration with OpenAI's LLMs for enhanced code actions.
  • Ability to interact with the MCP server for various functionalities.
  • Support for development tasks using Poe the Poet.

use cases of MCP Code Agent?

  1. Automating code actions based on user input.
  2. Accessing weather data through the MCP server.
  3. Running development tasks for code quality assurance.

FAQ from MCP Code Agent?

  • What is required to run MCP Code Agent?

You need Docker and Poetry installed on your system.

  • Can I contribute to the MCP Code Agent?

Yes! Contributions are welcome, and you can find guidelines in the repository.

  • Is there a license for this project?

Yes, it is licensed under the Apache License, Version 2.0.

Content

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

TaskDescription
lintRuns ruff to lint and auto-fix code
typecheckRuns mypy for static type checking
checkRuns both lint and typecheck
appRuns 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.

No tools information available.
No content found.