/ 目錄 / 演練場 / Gram
● 官方 speakeasy-api ⚡ 即開即用

Gram

作者 speakeasy-api · speakeasy-api/gram

Speakeasy 建置的控制平面——agent/MCP/skill 的可觀測性、政策和 registry,深植 API 優先的根基。

Gram 來自 Speakeasy(API SDK 專家)。它是一個控制平面:觀測跨 agent 的工具呼叫、執行政策、管理 MCP 伺服器,並將 skills 作為可部署的產物管理。專為將 agent 視為服務的組織設計。

為什麼要用

核心特性

即時演示

實際使用效果

就緒

安裝

選擇你的客戶端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "gram-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@speakeasy/gram"
      ]
    }
  }
}

開啟 Claude Desktop → Settings → Developer → Edit Config。儲存後重啟應用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "gram-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@speakeasy/gram"
      ]
    }
  }
}

Cursor 使用與 Claude Desktop 相同的 mcpServers 格式。專案級設定優先於全域。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "gram-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@speakeasy/gram"
      ]
    }
  }
}

點擊 Cline 側欄中的 MCP Servers 圖示,然後選 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "gram-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@speakeasy/gram"
      ]
    }
  }
}

格式與 Claude Desktop 相同。重啟 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "gram-mcp",
      "command": "npx",
      "args": [
        "-y",
        "@speakeasy/gram"
      ]
    }
  ]
}

Continue 使用伺服器物件陣列,而非映射。

~/.config/zed/settings.json
{
  "context_servers": {
    "gram-mcp": {
      "command": {
        "path": "npx",
        "args": [
          "-y",
          "@speakeasy/gram"
        ]
      }
    }
  }
}

加入 context_servers。Zed 儲存後熱重載。

claude mcp add gram-mcp -- npx -y @speakeasy/gram

一行命令搞定。用 claude mcp list 驗證,claude mcp remove 移除。

使用場景

實戰用法: Gram

了解你的 agent 實際呼叫了什麼

👤 開發者 ⏱ ~15 min intermediate

何時使用: 你需要對整個組織的 MCP 工具使用情況進行真實稽核。

步驟
  1. 連接 Gram
    設定客戶端透過 Gram 路由。✓ 已複製
    → 遙測資料流動
  2. 檢查
    開啟 Gram 儀表板;依工具/使用者篩選。✓ 已複製
    → 模式浮現

結果: agent 工具使用情況的真實圖景。

組合

與其他 MCP 搭配,撬動十倍槓桿

gram-mcp + agentgateway

使用 Gram 作為控制平面;agentgateway 作為高效能資料平面

結合 gram-mcp 與 agentgateway:Gram 作為控制平面;agentgateway 作為高效能資料平面✓ 已複製

工具

此 MCP 暴露的能力

工具輸入參數何時呼叫成本
control-plane (詳見文件) 無可呼叫的工具——位於 agent 旁側 1 次呼叫

成本與限制

運行它的成本

API 配額
依方案而定
每次呼叫 Token 數
不適用
費用
免費方案;組織功能需付費
提示
啟用追蹤取樣——完整追蹤成本較高

安全

權限、密鑰、影響範圍

憑證儲存: OAuth + 組織 token
資料出站: Speakeasy SaaS 或自架

故障排查

常見錯誤與修復

追蹤資料缺失

確認客戶端已設定發送;檢查取樣率

替代方案

Gram 對比其他方案

替代方案何時用它替代權衡
archestra你只需要純 registry可觀測性較少

更多

資源

📖 閱讀 GitHub 上的官方 README

🐙 查看未解決的 issue

🔍 瀏覽全部 400+ MCP 伺服器和 Skills