Skip to content

Self-hosted MCP — nền tảng Gommo (preview) ​

Sắp có trên nền tảng Gommo

Self-hosted MCP wrap URL gateway của bạn. Đa số user nên dùng Gommo remote MCP. Agent tooling chính thức sẽ ship trên Gommo.

→ Roadmap nền tảng Gommo

Gommo Developer MCP server là MCP stdio tùy chọn, wrap self-host deploy (/gateway/*). Chỉ dùng khi agent IDE phải gọi URL API của bạn thay vì Gommo remote MCP.

npm alias

Trên npm: @ai-gateway/mcp-server. Key config Cursor "ai-gateway" bên dưới là nhãn legacy — có thể đổi tên key; giữ args như mẫu.

Đa số user Cursor nên dùng Gommo MCP — đơn giản, không npx, không GATEWAY_URL.

Khi nào dùng ​

Dùng self-hostedDùng Gommo MCP
White-label: IDE gọi api.yourdomain.comMặc định cho user nền tảng Gommo
Cần middleware gateway (log, routing)Workflow Cursor hàng ngày
Test tích hợp gateway MCP khi devDùng IDE bình thường

Cấu hình ​

Package publish ​

json
{
  "mcpServers": {
    "ai-gateway": {
      "command": "npx",
      "args": ["-y", "@ai-gateway/mcp-server"],
      "env": {
        "GATEWAY_URL": "https://api.yourdomain.com",
        "GATEWAY_ACCESS_TOKEN": "<từ /vi/app/token/>"
      }
    }
  }
}

Dev local: GATEWAY_URL = http://localhost:3001, chạy npm run dev.

Monorepo ​

bash
npm run mcp:build
json
{
  "mcpServers": {
    "ai-gateway": {
      "command": "node",
      "args": ["C:/path/to/ai-gateway/packages/mcp-server/dist/index.js"],
      "env": {
        "GATEWAY_URL": "http://localhost:3001",
        "GATEWAY_ACCESS_TOKEN": "TOKEN"
      }
    }
  }
}

Biến môi trường ​

BiếnMặc địnhMô tả
GATEWAY_URLhttp://localhost:3001URL gateway
GATEWAY_ACCESS_TOKEN(bắt buộc)Token /vi/app/token/
GATEWAY_DOMAIN<registration-domain>Domain /vi/ai/me

Tiếp theo ​

→ Gommo MCP · Tools