simple-mcp-test

This repository offers a basic MCP (Multi-Client Protocol) implementation showcasing client-server communication. It includes a test script demonstrating functionalities like `call_tool()` and `read_resource()`, licensed under the MIT License.

0
0

Simple MCP Client

This project offers a basic implementation of the Multi-Client Protocol (MCP), showcasing fundamental client-server communication.

Prerequisites

  • Python 3.12+
  • Python package manager (e.g., uv)

Installation

  1. Clone the repository:
git clone https://github.com/tjjd4/simple-mcp-test.git
cd simple-mcp-test
  1. Create and activate a virtual environment (recommended):
python -m venv .venv # using python and pip
uv venv  # using uv

source .venv/bin/activate  # On Windows: .venv\Scripts\activate
  1. Install dependencies using uv:
uv run pip install -r pyproject.toml # using uv

Running the Simple MCP Client

The test_simple_mcp.py script tests the MCP implementation, demonstrating functionalities like call_tool() and read_resource().

To execute the test script:

# Run the test script
export PYTHONPATH=$(pwd)
python scripts/test_simple_mcp.py

License

Licensed under the MIT License; see LICENSE for details.

Contributing

  1. Fork the repository.
  2. Create a feature branch (git checkout -b feature/AmazingFeature).
  3. Commit changes (git commit -m 'Add some AmazingFeature').
  4. Push to the branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.

Repository

TJ
tjjd4

tjjd4/simple-mcp-test

Created

March 27, 2025

Updated

March 27, 2025

Language

Python

Category

Developer Tools