Skip to content

MCP Overview

Sprigr Teams supports the Model Context Protocol (MCP), an open standard that lets AI applications connect to external tools and data sources. With MCP enabled, you can manage your entire Sprigr Teams platform - agents, workflows, knowledge bases, marketplace apps, schedules, websites, and more - directly from tools like Claude Code, Cursor, VS Code, and any other MCP-compatible client.

This is not just a chatbot bridge. The MCP server exposes 104 tools that give you full read and write access to the platform, so your external AI client becomes a complete management interface for your Sprigr Teams workspace.

The Model Context Protocol is an open standard for connecting AI assistants to external systems. Think of it like a universal adapter: instead of building custom integrations for every AI tool, MCP provides a single protocol that any compatible client can use to discover and call tools from any compatible server.

Sprigr Teams acts as an MCP server, exposing your agents, knowledge bases, workflows, apps, and platform management capabilities as tools that external AI clients can use.

When you connect an MCP client (like Claude Code or Cursor) to your Sprigr Teams workspace:

  1. The client discovers every tool your API key’s scope allows (read tools, write tools, or both)
  2. You can invoke those tools from within the client’s interface
  3. Almost all tools call the Sprigr Teams API directly - no AI tokens consumed, no latency from agent processing
  4. Only send_message routes through an agent (because that is the one operation where you want the agent to think and respond)
  5. Results are returned to the client and incorporated into the conversation

This architecture means you can list agents, create workflows, search knowledge bases, manage apps, and configure schedules without any agent token cost. The MCP client itself is the intelligence - it reads data through Sprigr Teams, decides what to do, and writes changes back directly.

MCP Client → MCP Worker → Provisioning API → Database
(direct - no agent involved, no tokens used)
MCP Client → MCP Worker → Gateway → Agent → AI Response
(only for send_message - uses agent tokens)

Sprigr Teams works with any application that supports the MCP standard via Streamable HTTP transport. Popular clients include:

  • Claude Code — Anthropic’s CLI tool for developers (recommended - supports remote HTTP servers natively)
  • Claude Desktop — Anthropic’s desktop application
  • Cursor — The AI-powered code editor
  • VS Code — With MCP-compatible extensions
  • Any MCP client — Any application that implements the MCP Streamable HTTP client specification

Sprigr Teams exposes 104 tools through MCP: 30 read tools and 74 write tools. Which tools are available depends on the API key’s scope — a read-only key sees the read tools, a write-only key sees the write tools, and a read & write key sees everything.

Read tools fetch data from your platform without consuming any agent tokens.

Agents, teams, and people

ToolDescription
list_agentsList all agents with name, slug, status, and role. Use the slugs from this list to call other tools.
get_agent_infoGet detailed agent configuration including persona, model tier, and integrations.
list_teamsList all agent teams in the company.
get_teamGet team details including members and routing rules.
list_usersList all team members.

Workflows and executions

ToolDescription
list_workflowsList all workflows, optionally filtered by project or mode (DAG workflows, code-first Scripts, or both).
get_workflowGet workflow details including steps and configuration.
list_executionsList recent workflow executions across all workflows, with optional status filtering.
get_executionGet full detail for a single execution, including per-step status, output, error, and timing.
list_failed_executionsList recent failed executions with the failing step and error for each — the debugging entry point.
list_workflow_versionsList published versions of a workflow with the active version pointer and per-version notes.

Apps, webhooks, and integrations

ToolDescription
list_appsList all marketplace apps available to the company.
get_appGet app details including versions and installation status.
list_webhooksList all configured webhooks.
list_integrationsList all connected integrations (Gmail, Gorgias, GitHub, etc.).

Company overview

ToolDescription
get_usageGet company usage statistics (messages, tokens, costs).
get_planGet current subscription plan and limits.
get_dashboardGet dashboard overview: active agents, messages today, monthly spend, escalations.
list_schedulesList all scheduled tasks.

Knowledge and conversations

ToolDescription
search_knowledgeSearch an agent’s knowledge base using natural language. Each agent has its own knowledge index.
list_knowledgeList knowledge base entries.
list_conversationsList recent conversations for a specific agent. User-bound keys see their own conversations; admin/service keys see every conversation for the agent.
list_threadsList inbox threads (support tickets, customer conversations). User-bound keys see threads they have access to.

Write approvals

ToolDescription
list_mcp_write_approvalsList pending platform-write access requests filed by deep-task specialist agents. Mirrors the portal Approvals page.
decide_mcp_write_approvalApprove or reject a pending write access request (owner/admin only).

Websites (tenant hosting)

ToolDescription
website_statusGet a website’s status, active deployment, and recent builds.
get_build_logFetch the captured stdout/stderr from a build, for diagnosing failures.
get_build_sourceRecover the source files a build was deployed from.
get_website_logsFetch recent platform-side log events for a website (4xx/5xx responses, deploy events).
query_website_dbRun a read-only SELECT against a website’s per-site database.

Write tools create, update, and manage platform resources.

Messaging

ToolDescription
send_messageSend a message to an agent and receive its AI response. This is the only tool that consumes agent tokens.
poll_messageFetch the reply to a send_message that was still processing when it returned. Free and bounded.

Agents, teams, and people

ToolDescription
create_agentCreate a new AI agent with name, slug, persona, and model tier.
update_agentUpdate an existing agent’s configuration (persona, status, model tier, etc.).
create_teamCreate a new agent team for collaborative task routing, optionally with an orchestrator agent.
add_team_memberAdd an agent to a team.
remove_team_memberRemove an agent from a team.
invite_userInvite a new team member to the company.
notify_chatPost a message into team chat as an agent — a direct message to a person or a post into a group or channel.
create_team_roomCreate a team-chat group or channel as an agent.

Workflows, scripts, and projects

ToolDescription
create_workflowCreate a multi-step workflow with agent assignments, code steps, approval gates, and manual, event, or schedule triggers.
update_workflowUpdate an existing workflow’s steps or configuration.
update_workflow_stepPatch one step of a workflow in place without resupplying the others.
delete_workflowPermanently delete a workflow and its executions.
start_workflowStart a workflow execution with optional input data.
approve_executionApprove or reject a workflow step that requires human approval.
publish_workflow_versionPublish the current draft as a new immutable workflow version and make it live.
rollback_workflow_versionSwap the active version back to a previously published one.
create_scriptSave reusable, re-runnable code as a Script (a workflow with one code step).
list_scriptsList saved Scripts.
list_projectsList the company’s projects (feature containers grouping related workflows).
get_projectGet one project with its member workflows and how they interact.
create_projectCreate a project.
update_projectUpdate a project’s name, description, colour, or status.
delete_projectDelete a project (member workflows detach rather than being deleted).

Marketplace apps

ToolDescription
create_appCreate a new marketplace app with code that runs in a V8 isolate sandbox.
install_appInstall a marketplace app with specific scopes and agent restrictions.
uninstall_appRemove a marketplace app from the company.
configure_app_installReconfigure an existing install in place: agent scoping, config, and per-install secrets.
upgrade_appUpgrade the company’s install of an app to the latest approved version.
force_install_upgradeForce an install upgrade when the automatic publish fan-out missed it.
delete_appPermanently delete an app the company publishes, across all tenants (publisher only).
publish_versionPublish a new version of an existing marketplace app.
publish_app_listingMake an app you publish available to every tenant in the marketplace.
share_appGenerate an invite/share link for an app you publish.
unshare_appRevoke an app’s share link.

Cross-tenant grants

ToolDescription
list_pending_grantsList cross-tenant grants awaiting a decision from your company.
approve_cross_tenant_grantApprove a pending grant so the capability becomes live.
reject_cross_tenant_grantReject a pending grant.
confirm_cross_tenant_grant_revocationConfirm a publisher’s intent to drop a grant.
keep_cross_tenant_grant_on_revocationKeep a grant live even though the publisher dropped it.
pause_cross_tenant_grantTemporarily pause an active grant without revoking it.
resume_cross_tenant_grantResume a paused grant.

Webhooks

ToolDescription
create_webhookCreate a webhook endpoint. Incoming webhooks route to an agent, workflow, code, or index; outgoing webhooks fire on events.
update_webhookUpdate a webhook’s destination, auth, transform, or status without changing its URL.
delete_webhookPermanently delete a webhook and its URL.

Knowledge and search indexes

ToolDescription
write_knowledgeWrite or update entries in the target agent’s private knowledge index (the same index search_knowledge reads).
create_knowledgeCreate a new knowledge base entry (document, FAQ, etc.).
sprigr_create_indexCreate a new index with private, company, or public scope.
sprigr_attach_indexRegister an existing index in the company metadata table.
sprigr_list_my_indexesList indexes registered for the company, with 30-day usage stats.
sprigr_delete_indexDelete an index (creator only); associated read keys are revoked.
sprigr_create_public_keyMint a read or write API key on a public-scoped index.
sprigr_list_keysList active keys for an index (metadata only, never the secret).
sprigr_rotate_keyRotate an index key — new secret, same access, old key revoked.
sprigr_revoke_keyRevoke an index key immediately.
sprigr_update_key_labelRename an index key.

Collections (structured records)

ToolDescription
collection_defineDeclare a typed, faceted collection for structured records (asset registers, inventories, contacts, catalogues).
collection_ingestUpsert a batch of typed records, validated against the schema and deduplicated by key.
collection_ingest_from_tableIngest parsed spreadsheet/CSV rows via a declarative column-to-field mapping.
collection_queryQuery records with full-text search, facet filters, facet counts, sort, and pagination.
collection_reconcileRead-only diff of a collection against another source: added, removed, changed, unchanged.
collection_describeIntrospect a collection’s schema, object count, and facet values.
collection_historyRead the append-only change history for a collection.

Schedules

ToolDescription
create_scheduleCreate a scheduled task — message, reminder, pipe, or script — on a cron or a one-off timestamp.
update_scheduleUpdate or toggle a scheduled task.
delete_scheduleRemove a scheduled task.

Websites (tenant hosting)

ToolDescription
create_websiteProvision a new website with a live starter page on a *.sites.sprigr.com URL.
delete_websiteSoft-delete a website (kept for 30 days before purge).
enable_wordpressConvert a website into a live WordPress + WooCommerce store.
start_buildEnqueue a build for a website from a files map.
rollback_deploymentFlip a website back to a previous deployment.
add_domainAttach a custom hostname to a website.
set_website_envSet or rotate an environment variable or secret for a website.

Every MCP API key has a scope — Read only, Write only, or Read & Write — which controls which of the tool groups above the client can see and call.

Keys created in the portal are also linked to the user who created them. The key carries that user’s identity and role on every request:

  • User-bound keys see their own conversations and inbox threads through list_conversations and list_threads — the same view that user has in the portal.
  • Admin and owner keys see all conversations, threads, and company data.
  • A few sensitive tools, such as decide_mcp_write_approval, are enforced server-side as owner/admin only.

The user’s role is looked up on every request, so a role change (for example, a member promoted to admin) takes effect on the key automatically. MCP access never exceeds what the user can do through the web portal — you cannot gain broader access by using MCP instead of the dashboard.

Use your own AI tokens to build infrastructure

Section titled “Use your own AI tokens to build infrastructure”

This is one of the most powerful aspects of the MCP integration: when you connect Claude Code, Cursor, or Claude Desktop to Sprigr Teams, the AI reasoning happens on your side using your own Claude tokens (from your Anthropic subscription or IDE licence). Sprigr Teams just serves as the data layer.

Here is why that matters:

  • Every tool except send_message is a free API call. When Claude Code calls list_agents, create_workflow, or install_app, it hits the Sprigr provisioning API directly. No Sprigr agent is involved. No Sprigr tokens are consumed. The intelligence is your Claude session - it reads data, reasons about it, and writes changes back.
  • Only send_message uses Sprigr agent tokens. This is the one tool where you deliberately want a Sprigr agent to think and respond - for example, asking your Gorgias agent to check for urgent tickets. Everything else is a direct database operation.
  • Your AI client does the heavy lifting. When you ask Claude Code to “set up a new agent team with three specialists and a workflow”, Claude plans the work, calls create_agent three times, calls create_team, calls add_team_member three times, and calls create_workflow - all using your Claude tokens for the reasoning and Sprigr’s free API for the execution.

This means you can use the most capable AI models available to you (Claude Opus, Sonnet, or whatever your IDE provides) to orchestrate complex platform setup - without worrying about Sprigr token costs for the planning and decision-making.

Example: Setting up a new department from your IDE

Section titled “Example: Setting up a new department from your IDE”

Imagine you are onboarding a new finance department. In Claude Code, you say:

“Set up our finance department. Create three agents - an Accounts Payable agent, an Accounts Receivable agent, and a Financial Reporting agent. Put them in a team called ‘finance-team’. Give the AP agent a persona focused on invoice processing and supplier management. Give the AR agent a persona for customer invoicing and collections. Give the reporting agent a persona for generating P&L summaries and expense reports. Then create a workflow called ‘Monthly Close’ with steps for each agent to compile their data and a final approval gate for the CFO.”

Claude Code reads the instruction, plans the work, and executes it using MCP tools:

  1. create_agent × 3 - creates each agent with tailored personas (free)
  2. create_team - creates the finance-team (free)
  3. add_team_member × 3 - adds each agent to the team (free)
  4. create_workflow - creates the Monthly Close workflow with steps and an approval gate (free)

Total Sprigr token cost: zero. All the reasoning was done by your Claude Code session using your own Anthropic tokens. Sprigr just processed the API calls.

Example: Building and deploying a custom app

Section titled “Example: Building and deploying a custom app”

“Create a marketplace app called ‘invoice_status’ that connects to our Xero API and returns the status of an invoice by number. It should accept an invoice number as input and return the invoice status, amount, due date, and whether it’s overdue. Declare Xero as a required dependency. Use the domain api.xero.com in the allowlist.”

Claude Code writes the handler code, defines the input schema, and calls create_app - all in one shot. Your Claude tokens handle the code generation. Sprigr stores and deploys the app for free.

“Create a website dashboard that shows our team’s daily metrics - active conversations, messages processed today, pending escalations, and monthly spend. Use get_dashboard to pull the data and create a clean HTML page with auto-refresh.”

Claude Code calls get_dashboard to understand the data shape, then calls create_website and start_build to deploy the dashboard - all from your terminal.

When you do need an agent’s intelligence - its persona, integrations, and domain knowledge - use send_message:

“Ask the gorgias-support agent if there are any urgent tickets and have it notify Harry about the status.”

This is the one operation that uses Sprigr agent tokens, because you want the Gorgias agent to actually check Gorgias, apply its customer support expertise, and compose a notification. The cost is one agent conversation turn - the same as if you had typed the message in the portal chat. If the agent is still working when send_message returns, it hands back a message id you can check with poll_message (free) until the reply is ready.

Full platform management

Manage your entire Sprigr Teams workspace from your IDE. Create agents, configure workflows, install apps, and invite users - all without opening the portal or spending agent tokens.

Build apps from your IDE

Write custom marketplace apps in Claude Code or Cursor. Your AI writes the handler code, defines the schema, and deploys it to Sprigr - all using your own Claude tokens for the code generation.

Automated workflows

Build and trigger complex workflows from your terminal. Create a workflow, assign agents to steps, start an execution, and approve results - all through MCP tools with zero Sprigr token cost.

Knowledge management

Write to and search knowledge bases from your external AI client. Push documentation, ingest structured records into collections, and keep your agents’ knowledge up to date without opening the portal.

Websites and hosting

Provision websites, deploy builds, attach custom domains, and even spin up WordPress stores - straight from your MCP client.

Agent conversations

Send messages to any agent and get AI-powered responses. Check urgent support tickets, ask your accounting agent for invoice status, or have your scheduling agent find available slots - the only operation that uses Sprigr tokens.

To connect an MCP client to your Sprigr Teams workspace, you will need:

  1. An API key — Generated from the MCP page in the Sprigr Teams portal. See API Keys for instructions.
  2. The server URLhttps://mcp.team.sprigr.com/mcp
  3. Client configuration — Depends on your client. See the API Keys page for setup instructions for Claude Code, Claude Desktop, and other clients.
  • API Keys — Create and manage API keys for MCP access.
  • Knowledge Bases — Set up knowledge bases that MCP clients can search.
  • Creating Agents — Create agents that MCP clients can interact with.
  • Marketplace Apps — Build and install custom tools that agents can use.