Development · MODEL CONTEXT PROTOCOL

Simple MCP Client

A sample project testing Model Context Protocol (MCP) server and client interaction.

连接能力

Simple MCP Client 为 AI Agent 提供什么

来源目录未提供结构化功能列表,请在使用前阅读源仓库文档。

安全

MCP 收录不等于安全审核

MCP 服务器可能获得模型上下文、凭据、本地文件或调用外部系统的权限。连接 Agent 前,请检查代码、环境变量、网络行为、软件包来源与维护状态。

README

仓库文档

Simple MCP Client

This project provides a simple MCP (Multi-Client Protocol) implementation that demonstrates basic client-server communication capabilities.

Prerequisites

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

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 the required dependencies:
pip install -r pyproject.toml # using pip
uv run pip install -r pyproject.toml # using uv

Running the Simple MCP Client

The simple MCP implementation can be tested using the test_simple_mcp.py script. This script demonstrates basic functionality including call_tool(), read_resource(), etc.

To run the test script:

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

License

This project is licensed under the MIT License - see the LICENSE file for details.

在 GitHub 查看 README

社区

收藏、评分与讨论

正在载入社区数据…