统一模型上下文协议(MCP)服务器,提供全面的AI开发工具和UI组件管理。
npm install -g @hanzo/mcp
# 启动所有工具(默认:54个工具)
hanzo-mcp serve
# 只启动核心工具(19个工具)
hanzo-mcp serve --core-only
# 禁用特定工具类别
hanzo-mcp serve --disable-ui # 排除UI工具
hanzo-mcp serve --disable-autogui # 排除AutoGUI工具
hanzo-mcp serve --disable-orchestration # 排除编排工具
# 列出所有可用工具(默认54个)
hanzo-mcp list-tools
# 在Claude桌面安装
hanzo-mcp install-desktop
使用--disable-ui标志禁用:
使用--disable-autogui标志禁用:
使用--disable-orchestration标志禁用:
# 启动所有工具(默认 - 54个工具)
hanzo-mcp serve
# 只启动核心工具(19个工具)
hanzo-mcp serve --core-only
# 禁用特定类别
hanzo-mcp serve --disable-ui --disable-autogui --disable-orchestration
# 自定义工具选择
hanzo-mcp serve --enable-categories files,ui --disable-tools bash,shell
# 按类别列出工具
hanzo-mcp list-tools --category ui
import { createMCPServer } from '@hanzo/mcp';
// 基本服务器,包含核心工具
const server = await createMCPServer();
// 启用了UI工具的服务器
const serverWithUI = await createMCPServer({
toolConfig: {
enableCore: true,
enableUI: true
}
});
// 自定义配置
const customServer = await createMCPServer({
name: 'my-mcp-server',
version: '1.0.0',
toolConfig: {
enableCore: true,
enableUI: true,
enableAutoGUI: true,
enableOrchestration: true,
disabledTools: ['bash'],
customTools: [/* 自定义工具 */]
}
});
添加到.mcp.json:
{
"mcpServers": {
"hanzo": {
"command": "npx",
"args": ["@hanzo/mcp", "serve"]
}
}
}
添加到.cursor/mcp.json:
{
"mcpServers": {
"hanzo": {
"command": "npx",
"args": ["@hanzo/mcp", "serve"]
}
}
}
MIT © Hanzo AI