添加到 .cursor/mcp.json 或 Settings > Tools > MCP Servers:
{ "mcpServers": { "heroui-pro": { "type": "stdio", "command": "npx", "args": [ "-y", "hpmcp@latest", "react", "HEROUI_PERSONAL_TOKEN" ] } }}
在 Settings > Tools & MCPs 中启用连接。
添加到 settings.json(Cmd-,):
{ "mcpServers": { "heroui-pro": { "type": "stdio", "command": "npx", "args": [ "-y", "hpmcp@latest", "react", "HEROUI_PERSONAL_TOKEN" ] } }}
重启后检查 Agent Panel 中的绿色连接指示器。
添加到 ~/.codex/config.toml(或项目级 .codex/config.toml):
[mcp_servers.heroui-pro]type = "stdio"command = "npx"args = ["-y", "hpmcp@latest", "react", "HEROUI_PERSONAL_TOKEN"]
重启 Codex 后运行 /mcp 确认。