Skip to content

Latest commit

 

History

History
74 lines (56 loc) · 2.53 KB

File metadata and controls

74 lines (56 loc) · 2.53 KB

MCP Quick start — Cursor plugin

Endpoint: https://agentstack.tech/mcp
Tool: agentstack.execute (Cursor may show agentstack_execute; underscore alias still works on tools/call)
Live catalog: GET https://agentstack.tech/mcp/actions
Version: 0.4.18+

Install plugin (dev)

node scripts/install-local.mjs
# Cursor → Developer: Reload Window → /agentstack-init

See LOCAL_INSTALL.md.

Auth (primary)

OAuth 2.1 Device Code via /agentstack-authorize (or /agentstack-init) → Bearer in ~/.cursor/mcp.json.

Requires Node.js on PATH. Fallback: API key header X-API-Key: ask_… from https://agentstack.tech/me/keys.

Plugin 0.4.18 ships URL-only plugins/agentstack/mcp.json (plugin.json mcpServers: "./mcp.json"). After Reload Window, AgentStack MCP appears in the plugin panel — click Connect (G-A174). Do not put ${AGENTSTACK_ACCESS_TOKEN} in that file (G-A162). Device Code (/agentstack-authorize) still writes ~/.cursor/mcp.json (user-agentstack) for hooks.

Lean ~/.cursor/mcp.json shape

{
  "mcpServers": {
    "agentstack": {
      "type": "streamable-http",
      "url": "https://agentstack.tech/mcp",
      "headers": {
        "Content-Type": "application/json",
        "Authorization": "Bearer YOUR_TOKEN"
      }
    }
  }
}

No per-tool tools{} map — actions come from GET /mcp/actions.

Call shape

Prefer JSON-RPC tools/call with batched steps:

{
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "name": "agentstack.execute",
    "arguments": {
      "steps": [{ "id": "d1", "action": "discovery.list", "params": {} }],
      "options": { "stopOnError": true }
    }
  },
  "id": 1
}

Default batches stay fail-closed (stopOnError: true) — money and mutations. For a read-only bootstrap (profile, stats, limits, quota) use named recipe mcp_read_bootstrap / prompt agentstack_read_bootstrap with "continueOnError": true. Do not include apikeys.list unless the token has L1 api_keys / apikeys.read; that step is what aborted the Ф16 6-pack after buffs.

Diagnose

Command Purpose
/agentstack-status Auth + profile + pin (everyday)
/agentstack-diagnose Token, discovery, MCP surface
node scripts/diagnose-local.mjs Offline + live tools/list probe
node scripts/verify-mcp-surface-e2e.mjs Single-tool + Postel alias contract

Flow diagram: FLOW.md. Monorepo hub (if present): docs/MCP_QUICKSTART.md.