Endpoint: https://agentstack.tech/mcp
Tools: agentstack.execute (alias agentstack_execute on tools/call) and read-only agentstack.read (same batch body; wire schema points at execute for option keys; mutate steps are rejected)
Catalog: GET /mcp/actions (catalog_etag in JSON; ETag / If-None-Match / ?since_etag= → 304; ?delta=1 for partial refresh)
MCP is the primary integration channel for AI agents. One JSON-RPC tool runs batched steps; each step uses a canonical action id from the live catalog.
| Method | Header |
|---|---|
| API key | X-API-Key: <key> |
| OAuth / Device Code | Authorization: Bearer <token> |
Optional tenant scope: X-Project-ID: <id> (not ecosystem 1 for tenant work).
Anonymous bootstrap (no key): JSON-RPC tools/call with action projects.create_project_anonymous in the first step, or REST shim POST /mcp/tools/projects.create_project_anonymous.
Response includes top-level user_api_key, session_token, project_id, user_id, and neutral bootstrap metadata (field names only — no imperative AI blocks). See CONTEXT_FOR_AI_MCP.md § Anonymous bootstrap.
POST https://agentstack.tech/mcp
Content-Type: application/json
X-API-Key: your_key
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "agentstack.execute",
"arguments": {
"steps": [
{ "id": "s1", "action": "discovery.list", "params": {} }
],
"options": { "stopOnError": true }
}
},
"id": 1
}Direct REST batch (same semantics): POST /mcp with body { "steps": [...], "options": {...} }.
GPT Actions use { "tool": "<action>", "params": {} } — normalized to steps server-side.
Per-action wire matches MCP discovery.describe projection (not legacy to_dict()).
| Endpoint | Purpose |
|---|---|
GET /mcp/actions/{action_name} |
Single action schema; query density / descriptor / detail (slim|default|full; summary→slim); optional expand=, action_params= (JSON) |
GET /mcp/tools/{tool_name} |
Same as above for canonical MCP actions; agentstack.execute uses density=full for fat execute schemas |
GET /mcp/organs |
Organ-level capability descriptors (core.composition.organ_descriptor.gen1) |
Density: slim — minimal params + effect for cold agents; default — params_compact + effect + capability slice; full — instruction slice, errors map, examples. Invalid mode returns HTTP 400 contract with allowed_detail (parity with MCP discovery.describe). Typos are not coerced to default.
| Endpoint | Purpose |
|---|---|
GET /mcp |
Root pointers + onboarding metadata |
GET /mcp/actions |
Action catalog; ?schemas=none|public|hot|all; filters domain, q, effect_kind; body includes catalog_etag |
GET /mcp/actions?since_etag=<etag> |
304 when catalog unchanged (header ETag or query param) |
GET /mcp/actions?since_etag=<stale>&delta=1 |
Partial delta when prior revision known; else full catalog + delta_fallback: revision_unknown |
GET /mcp/actions/summary |
Count only |
GET /mcp/discovery |
Protocol + execute tool schema |
GET /mcp/health |
Health + protocol_versions_supported, manifest_url |
GET /mcp/manifest |
Registry publish manifest |
POST /mcp/discover/by_intent?intent=... |
Intent matches + confidence, example_params |
GET /mcp/prompts/get?name=... |
Onboarding prompts (agentstack_execute_budget, agentstack_write_modes, …) |
tools/call returns MCP content (JSON text) plus optional structuredContent when the step result is a dict. Errors include recovery_hint codes (auth_required, service_cap_denied, action_not_found, …).
- Sync batch deadline: 60s total; at most one heavy LLM action per sync execute — see prompt
agentstack_execute_budget. - 8DNA writes:
projects.patch_datawithwrite_mode— see promptagentstack_write_modesandWRITE_MODES.md.
See MCP_CLIENT_COMPATIBILITY_MATRIX.md for Cursor, Claude, VS Code, GPT, Gemini, and CLI setup.
- MCP_QUICKSTART.md — lean
mcp.json - architecture/API_CHANNELS.md — MCP vs REST vs Protein
- plugins/README.md — plugin entry for integrators