MCP服务器

一个基于fastmcp框架的简单MCP服务器实现,提供健康检查、回声工具等功能,易于扩展和自动化。

  • by protagolabs
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 protagolabs/x402-mcp

使用说明

MCP服务器

使用fastmcp框架的简单MCP服务器实现。

特性

  • 健康检查工具
  • 回声工具
  • 易于扩展
  • Justfile用于自动化

安装

pip install -r requirements.txt

运行服务器

python app.py

或者安装并运行:

pip install -e .
mcp-server

使用Justfile

该项目包括 Justfile 为了便于自动化:

just install    # Install dependencies
just develop    # Install in development mode
just run        # Run the server
just test       # Test the server
just help       # Show available commands

工具

  • discovery_resource -列出Bazaar中可发现的x402资源。
  • call_service -呼叫x402服务

许可证

麻省理工学院