Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
AGENTSTACK_API_KEYNoAPI key (ask_…), sent as X-API-Key
AGENTSTACK_MCP_URLNoOverride the endpoint (HTTPS; http://localhost allowed for testing)https://agentstack.tech/mcp
AGENTSTACK_MCP_DEBUGNoSet to 1 to log transport events to stderr (never secrets)
AGENTSTACK_ACCESS_TOKENNoOAuth / 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

CapabilityDetails
tasks
{
  "cancel": {},
  "requests": {
    "tools": {
      "call": {}
    }
  }
}
tools
{
  "listChanged": true
}
logging
{}
prompts
{}
resources
{}
completions
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription
create_logic_ruleCreate a backend logic rule from natural language description
manage_project_usersManage users in a project (add, remove, update roles)
create_scheduled_taskCreate a scheduled task that runs on a schedule
handle_validation_errorGuide for handling validation errors
execute_logic_commandExecute a logic rule immediately
use_processor_in_logicUse a processor in a logic rule
batch_operationsExecute multiple commands in batch
find_entity_by_fieldFind any entity by any field using DNA CRUD
agentstack_agent_social_participantHow to participate in AgentSocial chats and graph via MCP social.* (delegated operator token, polling, contracts).
agentstack_system_instructionsSystem 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_setupMandatory session ladder: authenticate, bind context.project_id, then agents.work_next (recipe mcp_work_loop_v1). Catalog search is fallback.
agentstack_stackscriptStackScript TS subset → SSBC via MCP script.* (not Logic JSON rules).
agentstack_work_graphWork Graph skill: agents.work_next, plan_get, claim, when blocked, viewer_urls. Same loop for every MCP protocol version.
agentstack_closed_loop_autonomyWork 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_flowsCommerce: MCP payments/assets/wallets vs REST marketplace and exchange; canonical action names and typical chains.
agentstack_project_setupStep-by-step guide for bootstrapping a complete project with economy, RBAC, logic, scheduler, and API keys
agentstack_platform_subscription_grantPlatform owner: grant personal Premium/VIP to a user or Launch/Business/Scale to a project via buffs
agentstack_tenant_subscription_monetizationTenant project sells subscription SKUs to end users — buff templates, assets, checkout, grant
agentstack_tenant_buff_grantTenant operator grants subscription buff or inventory to an end user in their project
agentstack_project_member_opsAdd or promote a project member (admin/member/read) — operator and owner paths
agentstack_generation_canaryDeprecated alias — use agentstack_tenant_8dna_supply for tenant 8DNA generation supply.
agentstack_showcase_opsEcosystem /showcase gallery catalog on project_id=1 — read, drift, upsert cards, probe health.
agentstack_showcase_vps_opsPlatform proof showcase (1438–1443): VPS sources sync, hosting.site.build, republish, verify.
agentstack_plan_graphProject plan graph (8DNA task_list v2): read, merge, focus run, affinities, F1 promote
agentstack_plan_backlog_opsPlan backlog safe cycle: goal-route → plan_process_backlog (preview) → review → plan_apply_proposal (CAS). Telegram/Copilot/MCP parity.
agentstack_inverse_orchestrator_playbookInverse orchestrator for external MCP clients: instruction_packet allowed_actions, advance_run_inverse cursor, wave_xix_atoms on agents.* steps
agentstack_safe_project_cycleMaster safe cycle: session → preflight → domain mutate in sandbox → verify → diff → gates → promote. All tenant domains via MCP.
agentstack_tenant_8dna_supplyTenant 8DNA supply chain: auto-fork, diff vs prod, gates, promote, realign, deploy boundary.
agentstack_tenant_ops_mcp_firstMCP-first tenant heal: mentor bots, sandbox verify, promote — no local code unless MCP blocked.
agentstack_grants_os_contentGrant OS content plane: catalog, CRM, earning lanes, anchor/W0 — MCP write paths (ecosystem owner).
agentstack_business_organismBusiness organism MCP: head project, organ children, tariff, command snapshot.
agentstack_tenant_business_assistantEnd-to-end tenant business assistant via MCP recipe (head, CRM organ, operator, Telegram).
agentstack_business_flowsQuick reference for 12 real business scenarios with tool synergies and cross-flow patterns
agentstack_api_key_safetyGuide for creating and using API keys safely with service_caps restrictions
agentstack_paradigm_shiftParadigm shift: buffs as timers, users as containers, projects as shared state
agentstack_execute_budgetSync 60s mcp_batch vs heavy LLM steps; async jobs and discovery.job_status
agentstack_write_modesHow 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_editorCross-surface text edit ladder: search_replace and fuzzy unified_diff (same engine as App Studio). Prefer over full-body replace.
agentstack_read_bootstrapRead-only MCP bootstrap with continueOnError; omit apikeys.list without api_keys cap
agentstack_social_messengerComplete AI guide for using the built-in messenger and social network via MCP (social.chat.*, social.channels.*, social.friends.*, social.public.*)
agentstack_channel_setupUnified Channel Plane: enroll delivery sources, category prefs, notifications.deliver, and channels.* MCP tools
agentstack_agents_fleetAgents Fleet: configure, enqueue, orchestrate.
agentstack_integrations_hubIntegration Hub: recipes, connections, webhooks, diagnostics.
agentstack_crm_workspaceCRM workspace: contacts, deals, pipeline, import.
agentstack_hosted_verticalHosted vertical SaaS: EDITFLOW wire, bootstrap, tenant UI facades.
agentstack_key2unity_siteKey2Unity auth portal /s/1444/key2unity/: persona, bucket, dual bot identity, publish.
agentstack_hosting_storefrontHosted shop: create products, list them for sale, publish /s/, take checkout.
agentstack_hosting_edit_siteChange an already published /s/ site with snapshot and release promote (not quickstart).
agentstack_hosting_static_landingPublish a single HTML landing page to hosted /s/ (agent recipe).
agentstack_hosting_workspace_buildBuild static or node_vite site from bucket workspace sources.
agentstack_showcase_arcanestack_opsArcaneStack pid 1438: git journal push ladder + optional showcase.arcanestack.ensure_rules.
agentstack_hosting_git_journalPer-bucket git journal: init, push dev/main, poll builds, preview and prod URLs.
agentstack_deploy_surfaceResolve deploy surface (site vs app vs shop vs service) before mutating.
agentstack_hosting_react_distUpload React/Vite dist ZIP or let import_archive build sources on the worker.
agentstack_hosting_file_editEdit one UTF-8 file in hosted bucket working tree via patch.
agentstack_bots_studioBots Fleet studio: templates, brain, handoff, broadcast.
agentstack_bot_message_busAgent-to-agent messaging on bot message bus (@handle, webhook push, inbox poll).
agentstack_support_staffProject support staff inbox and AI binding.
agentstack_knowledge_mentorKnowledge platform: config leaf, KB ingest, playground (heavy), heal index.
agentstack_knowledge_answer_tuneTune mentor prompt → playground → promote (UF_KNOWLEDGE_PROMPT_TUNE).
agentstack_knowledge_safety_tuneSafety playbook overlay → safety.evaluate → promote.
agentstack_context_lanesPick a context lane, ingest task docs, and tune caps in 8DNA.
agentstack_guidance_compassPlatform Compass playbooks: guidance.list, match_playbook, start_path, complete_step.
agentstack_app_studioHeadless React app studio. Same verbs for an external agent and the project orchestrator.
agentstack_project_orchestratorProject AI orchestrator — workspace vs messenger vs bots, generation F1, RAG memory.
agentstack_rag_memory_orchestratorKB vs episodic memory disambiguation for orchestrator agents.
agentstack_project_treasuryProject wallet treasury vs personal wallets vs AgentNet.
agentstack_use_case_gameBuild games with player management, game logic, and monetization
agentstack_use_case_saasBuild SaaS with trials, subscriptions, and usage tracking
agentstack_use_case_ecommerceBuild online stores with products, cart, and payments
agentstack_use_case_socialAgentSocial: messenger, friends graph, PAS, public index via social.* MCP actions
agentstack_use_case_backend_apiBuild REST APIs with CRUD, webhooks, and automation
agentstack_use_case_project_setupBootstrap complete projects: economy, RBAC, logic rules battery, scheduler, FAP, API keys, RAG

Resources

Contextual data attached and managed by the client

NameDescription
Platform planesProject config, storage, hosting, knowledge, CRM, agents, bots, integrations, logic, generation, release
MCP catalog summaryLightweight action totals, catalog etag, registry dimensions
Session setup ladderMandatory auth → project → context.project_id order (instruction plane SoT)
Work graph ladderClosed-loop plan graph spine — work_next before catalog shopping

TDQS

B3.4/5.0

Scored across 2 tools

Disambiguation3/5

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.

Naming Consistency4/5

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.

Tool Count2/5

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.

Completeness3/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues