了解你的 agent 實際呼叫了什麼
何時使用: 你需要對整個組織的 MCP 工具使用情況進行真實稽核。
步驟
-
連接 Gram設定客戶端透過 Gram 路由。✓ 已複製→ 遙測資料流動
-
檢查開啟 Gram 儀表板;依工具/使用者篩選。✓ 已複製→ 模式浮現
結果: agent 工具使用情況的真實圖景。
作者 speakeasy-api · speakeasy-api/gram
Speakeasy 建置的控制平面——agent/MCP/skill 的可觀測性、政策和 registry,深植 API 優先的根基。
Gram 來自 Speakeasy(API SDK 專家)。它是一個控制平面:觀測跨 agent 的工具呼叫、執行政策、管理 MCP 伺服器,並將 skills 作為可部署的產物管理。專為將 agent 視為服務的組織設計。
%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"gram-mcp": {
"command": "npx",
"args": [
"-y",
"@speakeasy/gram"
]
}
}
}
開啟 Claude Desktop → Settings → Developer → Edit Config。儲存後重啟應用。
{
"mcpServers": {
"gram-mcp": {
"command": "npx",
"args": [
"-y",
"@speakeasy/gram"
]
}
}
}
Cursor 使用與 Claude Desktop 相同的 mcpServers 格式。專案級設定優先於全域。
{
"mcpServers": {
"gram-mcp": {
"command": "npx",
"args": [
"-y",
"@speakeasy/gram"
]
}
}
}
點擊 Cline 側欄中的 MCP Servers 圖示,然後選 "Edit Configuration"。
{
"mcpServers": {
"gram-mcp": {
"command": "npx",
"args": [
"-y",
"@speakeasy/gram"
]
}
}
}
格式與 Claude Desktop 相同。重啟 Windsurf 生效。
{
"mcpServers": [
{
"name": "gram-mcp",
"command": "npx",
"args": [
"-y",
"@speakeasy/gram"
]
}
]
}
Continue 使用伺服器物件陣列,而非映射。
{
"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 移除。
何時使用: 你需要對整個組織的 MCP 工具使用情況進行真實稽核。
結果: agent 工具使用情況的真實圖景。
使用 Gram 作為控制平面;agentgateway 作為高效能資料平面
| 工具 | 輸入參數 | 何時呼叫 | 成本 |
|---|---|---|---|
| control-plane | (詳見文件) | 無可呼叫的工具——位於 agent 旁側 | 1 次呼叫 |
追蹤資料缺失確認客戶端已設定發送;檢查取樣率
| 替代方案 | 何時用它替代 | 權衡 |
|---|---|---|
| archestra | 你只需要純 registry | 可觀測性較少 |