跳转至

服务管理概览

MCPStore 提供了完整的服务生命周期管理功能,支持服务注册、查询、健康监控和管理操作。

🚀 服务注册

核心方法

🔍 服务查询

核心方法

🏥 服务健康监控

核心方法

⚙️ 服务管理操作

核心方法

📋 配置管理

核心方法

🎯 快速开始

from mcpstore import MCPStore

# 初始化
store = MCPStore.setup_store()

# 添加服务
store.for_store().add_service({
    "mcpServers": {
        "weather": {"url": "https://api.weather.com/mcp"}
    }
})

# 检查服务状态
health = store.for_store().check_services()
print(f"服务健康状态: {health}")

# 列出所有服务
services = store.for_store().list_services()
print(f"已注册服务: {[s.name for s in services]}")

🔗 相关文档