DarnShure/my_mcp_server
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:
- Read the chatbot API port from .
- Wait for the chatbot API to be available at the configured port.
- Start the chatbot API stub ().
- Start the MCP server ().
- Start the MCP inspector ().
- Optionally, run the client stub () to test the
generate
tool. - Clean up all background processes after testing.
How to Run
-
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.
-
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.
- Wait for the chatbot API to be available at
-
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