mcpbin
使用FastMCP构建的MCP测试服务器。提供用于测试MCP客户端实现的工具、资源和提示。
安装
uv sync用法
克劳德代码
将托管的mcpbin服务器添加到Claude Code中:
claude mcp add --scope local --transport http mcpbin https://mcpbin.fastmcp.app/mcp地方发展
make dev工具
回声和上下文
echo-回显输入数据echo_context-返回请求上下文信息
错误
status_error-用消息/代码引发错误random_error-随机成功/失败
时机
delay-等待指定的持续时间
数据
generate_uuid-生成UUID v4timestamp-获取当前时间戳base64_encode/base64_decode-Base64编码
采样
sample_echo-LLM基本采样sample_with_system-系统提示采样sample_with_params-使用温度/max_tokens进行采样sample_multi_turn-多回合对话
精英
elicit_string-请求字符串输入elicit_number-请求整数输入elicit_boolean-请求布尔值输入elicit_choice-请求从选项中选择elicit_structured-请求结构化数据
资源
resource://echo/{message}-回声消息resource://bytes/{size}-随机字节resource://json/sample-JSON数据示例
发展
make test # Run tests
make lint # Check code style
make format # Format code