多组件协议服务器

MCP服务器是一个基于Streamlit的检查UI,用于测试通过子进程执行的基本工具,模拟工具代理管道。

  • by MIN-R78
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 min-r78/mcp_server111

使用说明

MCP_服务器

这是一个具有基于Streamlit的检查UI的多组件协议(MCP)服务器实现。该系统允许通过子流程执行测试基本工具,模拟工具代理管道。

使用说明

### Step 1: Install dependencies
pip install streamlit

### Step 2: Launch the inspector interface
streamlit run inspector.py

### Step 3: In the web UI, enter:
#   Tool name:     simple_adder
#   Function name: add
#   Inputs:        x = 5, y = 7
# Click "Run Tool" to test the system.

### Example Output:
# {
#   "tool": "simple_adder",
#   "function": "add",
#   "inputs": { "x": 5, "y": 7 }
# }
# [DEBUG] add called with x=5, y=7
# {"output": 12}