Multi Capable Processing MCP Smart Agent

by AdadAlShabab

288 downloads
Not rated
GitHub

About

It is a modular and extensible AI agentic server system that connects specialized agents through a central REST API. These agents can analyze code repositories, fetch external data (like weather), generate text summaries, and remember past interactions using a persistent memory m

Details

Author
AdadAlShabab
Downloads
288
Categories
AI, API

- Multi-agent architecture with specialized agents for code, data, and summarization
- Tool-integrated agents using GitHub API, weather services, and NLP techniques
- Persistent memory system for contextual recall across tasks
- RESTful server built with Flask for easy integration
- Pythonic and fully testable project layout
- Ready for scaling with OpenAI, LangGraph, or vector databases

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Multi Capable Processing MCP Smart Agent
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install dependencies with pip install -r requirements.txt, then start the server by running python server/mcp_server.py. The server exposes POST endpoints for analyzing repositories, getting weather, summarizing text, and retrieving memory. These endpoints can be invoked via curl or integrated into frontends, CLI tools, or other workflows.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "multi capable processing mcp smart agent": {
            "Multi-Capable-Processing-MCP-Smart-Agent": {
                "command": "python",
                "args": [
                    "-m",
                    "unittest",
                    "discover",
                    "tests"
                ]
            }
        }
    }
}

McpServers

{
    "Multi-Capable-Processing-MCP-Smart-Agent": {
        "command": "python",
        "args": [
            "-m",
            "unittest",
            "discover",
            "tests"
        ]
    }
}

Multi-Capable Processing (MCP) Smart Agent
It is a modular and extensible AI-driven agentic server system that connects specialized agents through a central REST API. These agents can analyze code repositories, fetch external data (like weather), generate text summaries, and remember past interactions using a persistent memory manager.

---

🚀 Key Features

- Multi-Agent Architecture: Modular design with specialized agents for code analysis, data lookup, and summarization.
- Tool-Integrated Agents: Each agent uses tools like GitHub API, weather services, or basic NLP techniques.
- Memory System: Keeps a persistent memory of prior tasks for contextual recall.
- RESTful Server: Easily integrate with frontends, CLI tools, or workflows via HTTP.
- Pythonic Structure: Fully testable and extensible project layout.
- Ready for Scaling: You can plug in OpenAI, LangGraph, Vector Databases, and more.

---

🗂️ Project Structure

mcp-smart-agent/
│
├── agents/                  # AI agents for specific task domains
│   ├── code_agent.py        # Analyzes GitHub repositories
│   ├── data_agent.py        # Fetches weather data
│   └── summary_agent.py     # Summarizes input text
│
├── tools/                   # External service integrations
│   ├── github_tool.py       # Simulates GitHub API access
│   └── weather_tool.py      # Simulates weather data fetch
│
├── memory/
│   └── memory_manager.py    # In-memory key-value storage (can be extended)
│
├── server/
│   └── mcp_server.py        # Flask API endpoints to interact with all agents
│
├── tests/
│   └── test_agents.py       # Unit tests for core functionality
│
├── main.py                  # Entry point to start the server
├── requirements.txt         # Python dependencies
└── README.md                # You're reading it!

---

🧠 How It Works

The system spins up a Flask server that exposes endpoints corresponding to different agents:

1. CodeAgent (analyze GitHub repo)

- Extracts data from a GitHub-like repository (mocked).
- Returns high-level analysis (e.g., number of files).
- Saves the result in memory.

2. DataAgent (get weather data)

- Accepts a location input.
- Returns mock weather data (can be connected to OpenWeatherMap, etc.).

3. SummaryAgent (text summarizer)

- Accepts long text and returns a basic summary.
- You can extend this to use GPT or HuggingFace models.

4. MemoryManager

- Saves outputs for reuse.
- Supports simple key-value memory (can be upgraded to Redis or vector DB).

---

🔌 API Endpoints

| Method | Endpoint | Description |
|--------|----------------------|--------------------------------------|
| POST | /analyze_repo | Analyze a GitHub repo |
| POST | /get_weather | Get mock weather data |
| POST | /summarize | Summarize a block of text |
| POST | /retrieve_memory | Retrieve stored memory for a task |

🔧 Example Usage

curl -X POST http://localhost:5000/analyze_repo \
  -H "Content-Type: application/json" \
  -d '{"repo_url": "https://github.com/example/repo"}'

---

🧪 Testing

Run unit tests with:

python -m unittest discover tests

---

🛠 Installation & Run

Prerequisites

- Python 3.7+
- pip installed

Install dependencies

pip install -r requirements.txt

Start the server

python server/mcp_server.py

---

Ideas for Expansion

- Replace mock tools with real APIs (GitHub, OpenWeather, LangChain tools).
- Use vector databases like Pinecone or ChromaDB for persistent memory.
- Add LangGraph for long-running planning workflows.
- Replace summary agent with GPT-4 or HuggingFace Transformers.
- Add authentication, logging, and rate-limiting.

🙋‍♂ Author

Made by Adad — an open-source AI agent framework for rapid prototyping and experimentation.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.