AgentStack MCP
OfficialServer Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| AGENTSTACK_API_KEY | No | API key (ask_…), sent as X-API-Key | |
| AGENTSTACK_MCP_URL | No | Override the endpoint (HTTPS; http://localhost allowed for testing) | https://agentstack.tech/mcp |
| AGENTSTACK_MCP_DEBUG | No | Set to 1 to log transport events to stderr (never secrets) | |
| AGENTSTACK_ACCESS_TOKEN | No | OAuth / Device Code token, sent as Authorization: Bearer (wins over the API key) |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
AgentStack MCP — one tool: agentstack.execute (POST /mcp). Bound project: agents.work_next (recipe mcp_work_loop_v1) before catalog search. discovery.search is fallback only. Authenticate first: GET /mcp/connect → /mcp/.well-known/oauth-authorize (PKCE), IDE Device Code POST /api/oauth2/device/authorize, or MCP auth.login. If this client cannot complete OAuth, use the user's API key: header X-API-Key or Authorization: Bearer from the profile. Session probe: auth.get_profile (alias auth.me). Bind context.project_id, then agents.work_next. Packs session.v1/batch.v1: discovery.list exposes execute_budget.packs. Work Graph skill: /mcp/prompts/get?name=agentstack_work_graph (agentstack://instructions/work-graph). If session_ready or mutation_allowed, do not log in again and do not switch_project. discovery.search only when packet.next_action is absent. discovery.describe for one action. preflight.check before writes. Empty lists are valid. Diagnose before repair. A timeout retries the same idempotency key. Do not call a heavy_llm action only to read state. A page at /s/{id}/ uses the hosted cookie, not operator MCP auth.login. Playbook: /mcp/prompts/get?name=agentstack_session_setup. When discovery.search returns response_mode=workflow, run that step. Do not treat catalog_page as the command. OAuth often binds ecosystem project_id=1 — override with tenant id.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tasks | {
"cancel": {},
"requests": {
"tools": {
"call": {}
}
}
} |
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {} |
| resources | {} |
| completions | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| agentstack.executeB | AUTH-FIRST: auth.get_profile before mutate. IDE: Connect; no auth.login in chat. Unauth: auth_choices; skip work_next. Mutate: OAuth/PAT (mcp:execute). Anon: bootstrap_ack+create_project_anonymous. Spine: plan_get->work_next->plan_claim->plan_execute. WG: work_next->plan_claim->plan_execute; follow packet.next_action. Prompts: session_setup, execute_budget. |
| agentstack.readA | Read-only AgentStack MCP batch — only actions with effect read/evaluate. Same {steps, options, context} body as agentstack.execute. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| create_logic_rule | Create a backend logic rule from natural language description |
| manage_project_users | Manage users in a project (add, remove, update roles) |
| create_scheduled_task | Create a scheduled task that runs on a schedule |
| handle_validation_error | Guide for handling validation errors |
| execute_logic_command | Execute a logic rule immediately |
| use_processor_in_logic | Use a processor in a logic rule |
| batch_operations | Execute multiple commands in batch |
| find_entity_by_field | Find any entity by any field using DNA CRUD |
| agentstack_agent_social_participant | How to participate in AgentSocial chats and graph via MCP social.* (delegated operator token, polling, contracts). |
| agentstack_system_instructions | System instructions for AgentStack: when to use which tools, projects, users, and resources (agentstack://me, agentstack://projects/{id}). Use tools for actions; use resources for context. |
| agentstack_session_setup | Mandatory session ladder: authenticate, bind context.project_id, then agents.work_next (recipe mcp_work_loop_v1). Catalog search is fallback. |
| agentstack_stackscript | StackScript TS subset → SSBC via MCP script.* (not Logic JSON rules). |
| agentstack_work_graph | Work Graph skill: agents.work_next, plan_get, claim, when blocked, viewer_urls. Same loop for every MCP protocol version. |
| agentstack_closed_loop_autonomy | Work Graph after session: agents.work_next → follow packet.next_action (often plan_claim → plan_execute when mcp_write). Read keys: work_next without claim. Catalog only if no packet. |
| agentstack_commerce_flows | Commerce: MCP payments/assets/wallets vs REST marketplace and exchange; canonical action names and typical chains. |
| agentstack_project_setup | Step-by-step guide for bootstrapping a complete project with economy, RBAC, logic, scheduler, and API keys |
| agentstack_platform_subscription_grant | Platform owner: grant personal Premium/VIP to a user or Launch/Business/Scale to a project via buffs |
| agentstack_tenant_subscription_monetization | Tenant project sells subscription SKUs to end users — buff templates, assets, checkout, grant |
| agentstack_tenant_buff_grant | Tenant operator grants subscription buff or inventory to an end user in their project |
| agentstack_project_member_ops | Add or promote a project member (admin/member/read) — operator and owner paths |
| agentstack_generation_canary | Deprecated alias — use agentstack_tenant_8dna_supply for tenant 8DNA generation supply. |
| agentstack_showcase_ops | Ecosystem /showcase gallery catalog on project_id=1 — read, drift, upsert cards, probe health. |
| agentstack_showcase_vps_ops | Platform proof showcase (1438–1443): VPS sources sync, hosting.site.build, republish, verify. |
| agentstack_plan_graph | Project plan graph (8DNA task_list v2): read, merge, focus run, affinities, F1 promote |
| agentstack_plan_backlog_ops | Plan backlog safe cycle: goal-route → plan_process_backlog (preview) → review → plan_apply_proposal (CAS). Telegram/Copilot/MCP parity. |
| agentstack_inverse_orchestrator_playbook | Inverse orchestrator for external MCP clients: instruction_packet allowed_actions, advance_run_inverse cursor, wave_xix_atoms on agents.* steps |
| agentstack_safe_project_cycle | Master safe cycle: session → preflight → domain mutate in sandbox → verify → diff → gates → promote. All tenant domains via MCP. |
| agentstack_tenant_8dna_supply | Tenant 8DNA supply chain: auto-fork, diff vs prod, gates, promote, realign, deploy boundary. |
| agentstack_tenant_ops_mcp_first | MCP-first tenant heal: mentor bots, sandbox verify, promote — no local code unless MCP blocked. |
| agentstack_grants_os_content | Grant OS content plane: catalog, CRM, earning lanes, anchor/W0 — MCP write paths (ecosystem owner). |
| agentstack_business_organism | Business organism MCP: head project, organ children, tariff, command snapshot. |
| agentstack_tenant_business_assistant | End-to-end tenant business assistant via MCP recipe (head, CRM organ, operator, Telegram). |
| agentstack_business_flows | Quick reference for 12 real business scenarios with tool synergies and cross-flow patterns |
| agentstack_api_key_safety | Guide for creating and using API keys safely with service_caps restrictions |
| agentstack_paradigm_shift | Paradigm shift: buffs as timers, users as containers, projects as shared state |
| agentstack_execute_budget | Sync 60s mcp_batch vs heavy LLM steps; async jobs and discovery.job_status |
| agentstack_write_modes | How to edit text and collections: prefer search_replace / unified_diff; merge lists by key; never paste a truncated window as the full body |
| agentstack_text_editor | Cross-surface text edit ladder: search_replace and fuzzy unified_diff (same engine as App Studio). Prefer over full-body replace. |
| agentstack_read_bootstrap | Read-only MCP bootstrap with continueOnError; omit apikeys.list without api_keys cap |
| agentstack_social_messenger | Complete AI guide for using the built-in messenger and social network via MCP (social.chat.*, social.channels.*, social.friends.*, social.public.*) |
| agentstack_channel_setup | Unified Channel Plane: enroll delivery sources, category prefs, notifications.deliver, and channels.* MCP tools |
| agentstack_agents_fleet | Agents Fleet: configure, enqueue, orchestrate. |
| agentstack_integrations_hub | Integration Hub: recipes, connections, webhooks, diagnostics. |
| agentstack_crm_workspace | CRM workspace: contacts, deals, pipeline, import. |
| agentstack_hosted_vertical | Hosted vertical SaaS: EDITFLOW wire, bootstrap, tenant UI facades. |
| agentstack_key2unity_site | Key2Unity auth portal /s/1444/key2unity/: persona, bucket, dual bot identity, publish. |
| agentstack_hosting_storefront | Hosted shop: create products, list them for sale, publish /s/, take checkout. |
| agentstack_hosting_edit_site | Change an already published /s/ site with snapshot and release promote (not quickstart). |
| agentstack_hosting_static_landing | Publish a single HTML landing page to hosted /s/ (agent recipe). |
| agentstack_hosting_workspace_build | Build static or node_vite site from bucket workspace sources. |
| agentstack_showcase_arcanestack_ops | ArcaneStack pid 1438: git journal push ladder + optional showcase.arcanestack.ensure_rules. |
| agentstack_hosting_git_journal | Per-bucket git journal: init, push dev/main, poll builds, preview and prod URLs. |
| agentstack_deploy_surface | Resolve deploy surface (site vs app vs shop vs service) before mutating. |
| agentstack_hosting_react_dist | Upload React/Vite dist ZIP or let import_archive build sources on the worker. |
| agentstack_hosting_file_edit | Edit one UTF-8 file in hosted bucket working tree via patch. |
| agentstack_bots_studio | Bots Fleet studio: templates, brain, handoff, broadcast. |
| agentstack_bot_message_bus | Agent-to-agent messaging on bot message bus (@handle, webhook push, inbox poll). |
| agentstack_support_staff | Project support staff inbox and AI binding. |
| agentstack_knowledge_mentor | Knowledge platform: config leaf, KB ingest, playground (heavy), heal index. |
| agentstack_knowledge_answer_tune | Tune mentor prompt → playground → promote (UF_KNOWLEDGE_PROMPT_TUNE). |
| agentstack_knowledge_safety_tune | Safety playbook overlay → safety.evaluate → promote. |
| agentstack_context_lanes | Pick a context lane, ingest task docs, and tune caps in 8DNA. |
| agentstack_guidance_compass | Platform Compass playbooks: guidance.list, match_playbook, start_path, complete_step. |
| agentstack_app_studio | Headless React app studio. Same verbs for an external agent and the project orchestrator. |
| agentstack_project_orchestrator | Project AI orchestrator — workspace vs messenger vs bots, generation F1, RAG memory. |
| agentstack_rag_memory_orchestrator | KB vs episodic memory disambiguation for orchestrator agents. |
| agentstack_project_treasury | Project wallet treasury vs personal wallets vs AgentNet. |
| agentstack_use_case_game | Build games with player management, game logic, and monetization |
| agentstack_use_case_saas | Build SaaS with trials, subscriptions, and usage tracking |
| agentstack_use_case_ecommerce | Build online stores with products, cart, and payments |
| agentstack_use_case_social | AgentSocial: messenger, friends graph, PAS, public index via social.* MCP actions |
| agentstack_use_case_backend_api | Build REST APIs with CRUD, webhooks, and automation |
| agentstack_use_case_project_setup | Bootstrap complete projects: economy, RBAC, logic rules battery, scheduler, FAP, API keys, RAG |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Platform planes | Project config, storage, hosting, knowledge, CRM, agents, bots, integrations, logic, generation, release |
| MCP catalog summary | Lightweight action totals, catalog etag, registry dimensions |
| Session setup ladder | Mandatory auth → project → context.project_id order (instruction plane SoT) |
| Work graph ladder | Closed-loop plan graph spine — work_next before catalog shopping |
TDQS
Scored across 2 tools
The read/execute split gives a clear high-level boundary (side-effect-free vs mutating), so an agent can pick a tool by intent. However, the execute tool bundles auth, planning, work-packet, and bootstrap flows into one opaque surface, and its description is a dense stream of internal jargon (work_next, plan_claim, spine, WG) that makes it hard to know which tool actually performs a given action.
Both tools follow a consistent namespace.verb pattern (agentstack.read, agentstack.execute), which is predictable and readable. The only minor deviation is that the two verbs encode effect class rather than a resource action, but that is intentional and consistent.
Two tools is very thin for a surface that claims to cover authentication, profile lookup, plan lifecycle, work packets, budgets, and prompts. The batch/multiplexer design pushes all that scope into two overloaded entry points, leaving no granular tools for discovery or targeted operations.
Coverage is nominally broad because each tool is a batch wrapper over many actions (read/evaluate and all mutations), so most workflows are reachable in principle. But there is no introspection tool to enumerate valid actions or schemas, and the referenced prompts (session_setup, execute_budget) have no corresponding tool, leaving an agent to guess the vocabulary.