my_mcp_server

DarnShure/my_mcp_server

3.2

If you are the rightful owner of my_mcp_server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This project provides a comprehensive environment for testing the Model Context Protocol (MCP) server, focusing on chatbot generation workflows.

my_mcp_server

This project provides an end-to-end testable MCP (Model Context Protocol) server environment, including a FastAPI-based chatbot generation stub, an MCP server, and a client stub for testing the generate tool. The main focus is on enabling easy local testing of the chatbot generation workflow.

TLDR: This package is responsible for end-to-end pdf preprocessing for llm ingestion.

It adds several features onto pdfplumber

MCP Server Feedback Mechanism Agentic adaptive pdf parsing. Iterative evolutionary framework.

Project Structure

my_mcp_server/
ā”œā”€ā”€ [`chatbot_generation_stub.py`](chatbot_generation_stub.py )
ā”œā”€ā”€ [`client_stub.py`](client_stub.py )
ā”œā”€ā”€ common/
│   └── [`common/config.py`](common/config.py )
ā”œā”€ā”€ config/
│   └── [`config/custom_config.toml`](config/custom_config.toml )
ā”œā”€ā”€ [`main.py`](main.py )
ā”œā”€ā”€ [`run_all_test.sh`](run_all_test.sh )
ā”œā”€ā”€ [`run_inspector.sh`](run_inspector.sh )
ā”œā”€ā”€ [`run_mcp_server.sh`](run_mcp_server.sh )
ā”œā”€ā”€ [`server.py`](server.py )
ā”œā”€ā”€ [`pyproject.toml`](pyproject.toml )
└── ...

Quick Start: End-to-End Testing

The recommended way to test the full pipeline, including the generate tool, is to use the script. This script will:

  1. Read the chatbot API port from .
  2. Wait for the chatbot API to be available at the configured port.
  3. Start the chatbot API stub ().
  4. Start the MCP server ().
  5. Start the MCP inspector ().
  6. Optionally, run the client stub () to test the generate tool.
  7. Clean up all background processes after testing.

How to Run

  1. Install dependencies
    Make sure you have Python 3.10+ and Node.js installed.
    Install Python dependencies:

    pip install -r requirements.txt
    

    Or, if using Poetry or PDM, install via your preferred tool.

  2. Run the test script
    From the project root, execute:

    bash run_all_test.sh
    

    The script will:

    • Wait for the chatbot API to be available at http://127.0.0.1:<port>/ (port from config).
    • Start all required services.
    • Prompt you to continue after setup.
    • (Optionally) Run the client stub to test the tool.
  3. Test the tool
    The client stub () connects to the MCP server and calls the tool, which in turn calls the chatbot API stub and prints the results.

Configuration

  • The chatbot API port and other settings are configured in .
  • The MCP server reads its configuration from this file via .

Components

  • : FastAPI app simulating the chatbot generation endpoint.
  • : MCP server exposing the tool.
  • : Example client that connects to the MCP server and tests the tool.
  • : Orchestrates the full end-to-end test environment.

Notes

  • The script assumes all commands (uv, npx, etc.) are available in your PATH.
  • For custom configuration, edit .

For more details on each component, see