MCP 服务
模型上下文协议服务,支持通过API Key或SingleKey访问Practihub部分功能
配置指南
端点地址
https://www.practihub.com/api/mcp认证方式
- API Key: 通过Authorization header传递
- SingleKey: 通过工具参数传递
使用示例
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "get_model_lists",
"arguments": {
"key": "sk-ph-v1-xxx"
}
}
}在Trae中使用
配置Trae MCP
{
"servers": [
{
"name": "practihub-mcp",
"url": "https://www.practihub.com/api/mcp",
"type": "mcp"
}
]
}在Trae中调用
// Use natural language to call in Trae "Please use Practihub MCP to get my profile" // Or let the agent discover and use automatically // Just configure the Endpoint, the agent will automatically understand available tools
可用工具
get_profile
获取用户个人资料信息
get_model_lists
获取用户的模型列表