Skip to main content
Glama
sheepit-mcp

sheepit-mcp

Official
by sheepit-ai

@sheepit-ai/mcp

Let Claude, Cursor, and Codex drive your Sheepit project from the IDE.

npm version CI license

A Model Context Protocol server that gives your AI coding assistant direct control of your Sheepit project — campaigns, flags, experiments, dashboards, releases, and insights queries — without leaving the editor.

Why it exists

Sheepit holds your flags, experiments, growth campaigns, and product analytics. Acting on any of it normally means switching to the dashboard, clicking through forms, and copying values back to your code. This server removes that round-trip: the assistant already in your IDE reads and writes Sheepit for you. One sheepit login authenticates both the CLI and this MCP server, so there is no second key to manage and every action the assistant takes is auditable.

Related MCP server: meta-ads-mcp

Example

After installing (below), restart your IDE and ask your assistant in plain language:

You: Launch the "Fall Promo" email campaign, but show me a preview first.

The assistant calls campaign_preview, shows you the rendered subject and body plus the audience size, and waits. The preview returns a single-use token; campaign_launch requires that token, so the assistant physically cannot send a campaign you have not seen.

You: Did signups dip yesterday?

The assistant calls insights_query against your event stream and answers with the number, no dashboard needed.

You: Roll out the new-checkout flag to 10% of users.

The assistant calls flag_get to read the current state, then flag_update to set the rollout.

How it works

  1. sheepit login runs a PKCE OAuth flow in your browser and writes ~/.sheepit/credentials.json.

  2. sheepit-mcp install writes an MCP server entry into your IDE's config file (backing up the existing file first).

  3. You restart your IDE. It launches sheepit-mcp serve over stdio.

  4. The server reads ~/.sheepit/credentials.json (or SHEEPIT_API_KEY from the environment) and authenticates to the Sheepit API.

  5. The assistant calls tools/list and discovers every available tool. New sessions should call sheepit_help first for an overview.

  6. When you ask for something, the assistant calls the matching tool. Every input is validated with Zod at request time, so an out-of-date client gets a structured error instead of silent drift.

Install

Three commands. The first two are real, published packages (@sheepit-ai/cli, @sheepit-ai/mcp).

# 1. One-time OAuth login (opens your browser)
npx @sheepit-ai/cli login

# 2. Write the MCP entry into your IDE config.
#    The first command is a dry run; the second applies it.
npx @sheepit-ai/mcp install
npx @sheepit-ai/mcp install --yes

# 3. Restart your IDE, then ask: "what can I do with Sheepit?"

install auto-detects your client. To target one explicitly:

npx @sheepit-ai/mcp install --yes --client=claude-desktop   # Claude Desktop
npx @sheepit-ai/mcp install --yes --client=cursor           # Cursor
npx @sheepit-ai/mcp install --yes --client=codex            # Codex

install is idempotent (re-running with the entry already present is a no-op), backs up the existing config to <path>.bak.<unix-ms>.<pid>.<rand> (mode 0600) before writing, writes atomically via tmp+rename, and refuses to follow symlinks. Upgrading from a pre-1.0 @goatech/mcp install replaces the old mcpServers.goatech entry with mcpServers.sheepit in place.

CLI reference

sheepit-mcp serve                              # default — stdio MCP server
sheepit-mcp install                            # dry run: show what would change
sheepit-mcp install --yes                      # apply
sheepit-mcp install --force                    # overwrite an existing entry
sheepit-mcp install --client=claude-desktop    # (or cursor | codex)
sheepit-mcp version
sheepit-mcp help

Tools

49 tools across 10 surfaces. The count is generated from the source at build time (src/generated/build-meta.ts), so it does not drift from the registry.

Surface

Count

Tools

Discovery

2

sheepit_help, sheepit_quickstart

Event catalog

1

event_catalog_canonical

Groups

4

group_list, group_create, group_add_member, group_remove_member

Campaigns

11

campaign_list / get / create / update / preview / launch / pause / resume / complete / archive / results

Destinations

7

destination_catalog / list / get / create / update / delete / test

Dashboards

12

dashboard_list / get / create / update / delete / template_list / template_get / materialize, widget_create / update / delete, insights_query

Experiments

4

experiment_list, experiment_get, experiment_create, experiment_update

Flags

4

flag_list, flag_get, flag_create, flag_update

Releases

3

release_list, release_health, release_regressions

Feedback

1

feedback_submit

Start with sheepit_help for a guided overview, or sheepit_quickstart with one of send_email_campaign, create_dashboard, analyze_signups, ship_feedback, wire_webhook_destination for a concrete step-by-step recipe.

Two extra meta-tools (search_tools, load_tool) appear only in on-demand loading mode (below) and are excluded from the count.

On-demand tool loading (experimental, opt-in)

By default the server advertises all tools, so their schemas load into your assistant's context every session. Set SHEEPIT_MCP_LAZY_TOOLS=1 to advertise only a small core set plus two discovery tools (search_tools, load_tool); the rest stay callable but load their schemas on demand, which cuts upfront tool-schema context substantially. When the assistant needs a tool that is not listed, it calls search_tools to find it and load_tool to fetch its schema, then calls it by name.

SHEEPIT_MCP_LAZY_TOOLS=1   # advertise core + discovery tools only (default: off)

This is off by default while both modes are measured (the $mcp_tools_listed event carries lazy, advertised_count, and schema_bytes).

Telemetry and opt-out

The server emits coarse, non-PII usage events ($mcp_session_started, $mcp_tools_listed, $mcp_tool_invoked, $mcp_session_ended) to your own project so you can see how the MCP is used and where it fails. Events carry the tool name, success or failure, duration, and a coarse error code only. They never carry your tool arguments, query bodies, or any customer data.

To turn telemetry off, set either of these in the environment the server runs in (your IDE's mcpServers.sheepit.env, or your shell):

DO_NOT_TRACK=1          # the cross-vendor consoledonottrack.com convention
SHEEPIT_TELEMETRY=0     # Sheepit-specific switch (also accepts =false)

When either is set, the emit short-circuits to a no-op. Telemetry already never throws and never blocks your tool calls; the opt-out stops the emit entirely.

FAQ

Is this published? Yes. @sheepit-ai/mcp is on npm (latest 1.0.1, MIT-licensed). The npx commands above resolve against the real package.

Which clients are supported? Claude Desktop, Cursor, and Codex out of the box. The server speaks standard MCP over stdio, so any MCP-compatible client can run sheepit-mcp serve with a manual config entry.

Do I need a Sheepit account? Yes. sheepit login authenticates against your Sheepit project. The same credentials file powers both the CLI and this server.

Does it send my data anywhere? Only coarse, non-PII usage events to your own project, and you can turn those off (see Telemetry and opt-out). Tool arguments and query results are never included.

I'm on @goatech/mcp. How do I upgrade? See Upgrading from @goatech/mcp below.

Where's the source? github.com/sheepit-ai/sheepit-mcp.

Upgrading from @goatech/mcp

1.0.0 renamed the package from @goatech/mcp to @sheepit-ai/mcp as part of the Sheepit product rebrand. The legal entity (GoaTech AI LLC) is unchanged; the npm scope is the customer-facing brand. This is a hard cutover with no legacy fallback:

Was

Now

Package @goatech/mcp

@sheepit-ai/mcp

Binary goatech-mcp

sheepit-mcp

Credentials ~/.goatech/credentials.json

~/.sheepit/credentials.json

Env GOATECH_API_KEY / GOATECH_PROFILE / GOATECH_API_URL

SHEEPIT_API_KEY / SHEEPIT_PROFILE / SHEEPIT_API_URL

Tools goatech_help / goatech_quickstart

sheepit_help / sheepit_quickstart

Config key mcpServers.goatech

mcpServers.sheepit

To migrate:

  1. Update your IDE config + any npx invocations to @sheepit-ai/mcp. Running sheepit-mcp install --yes detects and migrates the old mcpServers.goatech key automatically.

  2. Move your credentials: mv ~/.goatech/credentials.json ~/.sheepit/credentials.json, or just re-run sheepit login.

  3. Rename any GOATECH_* env vars to SHEEPIT_*. The old names are not honored as fallbacks.

Restarting your IDE re-discovers the new tool names from tools/list, so no further client change is needed.

What did not change: the API URL (api.goatech.ai), the API key prefix (lp_pub_* / lp_sec_*, which scopes production data and customer .env files), and the legal entity name (GoaTech AI LLC, used on invoices and contracts).

Versioning

This package follows Sheepit product releases. A major-version bump signals either the MCP protocol moving or a breaking change to the API surface the tools wrap (as in 1.0.0, an npm-scope rename). Tool inputs are validated with Zod at request time, so an out-of-date client gets a structured error rather than silent drift.

License

MIT. Copyright (c) 2026 GoaTech AI LLC. See LICENSE.

Available Tools

40 tools
campaign_archiveArchive a campaignA

Archive a completed (or never-launched draft) campaign. Removes it from the default list view but keeps history.

Inputs: id (required).

campaign_completeMark a campaign as completedA

Move a scheduled / running / paused campaign to completed. Terminal — only archive follows.

Inputs: id (required), reason.

campaign_createCreate a campaign (draft)C

Create a new campaign in draft status. The campaign isn't running until you call campaign_preview followed by campaign_launch. Channels: each entry needs a kind (email|meta|google|tiktok|linkedin|webhook). Audience: array of RuleCondition {field, op, values[]}. Success metric: {event_name, window_seconds?} — defaults to a 7-day conversion window.

Inputs: key (required), name (required), description, goal, +10 more.

campaign_getRead a campaignA

Fetch a single campaign by id with full audience / channels / creative / metric / budget / schedule / status.

Inputs: id (required).

campaign_launchLaunch a previewed campaignA

Move a campaign from draft|paused → scheduled|running. REQUIRES a fresh preview_token from campaign_preview. The token is single-use and snapshot-bound — if anything changed since preview, re-run campaign_preview to get a new token.

Inputs: preview_token (required), id (required), launch_now.

campaign_listList campaignsB

List campaigns in the current project. Supports cursor pagination, status filter, free-text search across name/key/goal.

Inputs: status, search, include_archived, cursor, +1 more.

campaign_pausePause a running campaignC

Pause a scheduled or running campaign. Pause is reversible via campaign_resume.

Inputs: id (required), reason.

campaign_previewPreview & validate a campaign before launchingA

Dry-run the campaign and return the launch plan + a single-use preview_token. The token is bound to the current state of audience/channels/creative/metric/budget/schedule and ALL of these must be present and valid for the token to be returned. Pass the token to campaign_launch within 5 minutes — editing the campaign in between invalidates it.

Inputs: id (required).

campaign_resultsRead latest campaign resultsA

Fetch the latest results snapshot for a campaign. v1 only stores the latest aggregate (impressions, clicks, conversions, by_channel, by_variant); time-series snapshots land with the destinations framework.

Inputs: id (required).

campaign_resumeResume a paused campaignA

Resume a paused campaign (paused → running). Re-validates launchability — empty audience / channels / creative / metric will reject.

Inputs: id (required).

campaign_updateUpdate a campaign (draft|paused only)A

Patch a campaign. ALLOWED only in draft or paused state. Trinary semantics for nullable fields: omit a field to PRESERVE its current value, send null to CLEAR, send a value to SET. Editing audience / channels / creative will INVALIDATE any outstanding preview_token (re-preview to get a fresh one).

Inputs: id (required), name, description, goal, +9 more.

dashboard_createCreate a new (empty) dashboardA

Create an empty dashboard with name and optional description. Returns the new id. Use widget_create afterward to add widgets, or use dashboard_template_get + a script of widget_create calls to materialize a template manually. If you want a fully-populated starter, use dashboard_template_list to see what's available, then dashboard_template_get to get the widget specs.

Inputs: name (required), description, layout.

dashboard_deleteSoft-delete (archive) a dashboardA

Soft-delete a dashboard — it stops appearing in dashboard_list but its history is retained. Templates can't be deleted.

Inputs: id (required).

dashboard_getRead one dashboard with its widgetsA

Fetch a single dashboard by id, including the full widget list (each with its query, viz, and position). Use this to understand what's on a dashboard before editing it.

Inputs: id (required).

dashboard_listList dashboards in the current projectA

List every dashboard installed in the current project (excludes archived). Returns id / name / description / created_at per row. Use dashboard_get for the full widget list.

Inputs: no named parameters.

dashboard_template_getGet the full widget specs for a templateA

Returns the full blueprint for a template (id, name, description, icon, full widgets array with each query + viz + position). Use this to fetch the recipe, then call dashboard_create + a widget_create per item to materialize it. Returns 404 if the template id is unknown.

Inputs: template_id (required).

dashboard_template_listList built-in dashboard templatesA

Read-only enumeration of every starter dashboard the platform ships with. Returns id / name / tagline / description / icon / widget_count per template. Use dashboard_template_get(id) to retrieve the full widget specs, then materialize via dashboard_create + widget_create calls.

Inputs: no named parameters.

dashboard_updateUpdate an existing dashboardA

Update name / description / layout of an existing dashboard. Trinary semantics for nullable fields: omit = preserve, send null to clear, send a value to overwrite. Templates (is_template = true) can't be edited via this tool — they're read-only.

Inputs: id (required), name, description, layout.

destination_catalogList available destination adaptersA

Read-only enumeration of every destination adapter the server currently knows about (webhook, resend, etc.). Use this to discover which connector_id values are valid for destination_create. Returns id / version / category / title / description per adapter.

Inputs: no named parameters.

destination_createInstall a new destinationA

Install a destination adapter into the current project. connector_id must come from destination_catalog (e.g. "webhook", "resend"). config is per-adapter — the server validates it against the adapter's own schema and 400s on shape errors. Webhook config: { url: "https://...", signing_secret?: string, timeout_ms?: number }. Resend config: { from: "Name <addr@domain>", reply_to?: string, audience_limit?: number, batch_size?: number }. Returns the destination id — pass it as channel.destination_config_id on a Campaign to bind explicitly.

Inputs: connector_id (required), name (required), environment_id, config, +1 more.

destination_deleteSoft-delete (archive) a destinationA

Soft-delete a destination — it stops being eligible for campaign dispatch but its history (audit log of past deliveries) is retained.

Inputs: id (required).

destination_getRead one destination configA

Fetch a single destination config by id with the full saved config + filters + last delivery state.

Inputs: id (required).

destination_listList installed destinationsA

List destination configs installed in the current project. Filter by connector_id (e.g. only Resend installs) or status (active|paused|failed).

Inputs: connector_id, status, include_archived, cursor, +1 more.

destination_testTest a destination's saved configA

Run the adapter's connection check against the saved config. For webhooks: GETs the URL to verify it's reachable. For Resend: lists domains with the API key to verify auth. Does NOT send a real campaign payload.

Inputs: id (required).

destination_updateUpdate an installed destinationA

Update name / config / filters / status of an existing destination. Status transitions allowed: active ↔ paused (the "failed" state is system-set after consecutive delivery errors and cannot be set manually). Trinary semantics for nullable fields: omit = preserve, send a new value to overwrite.

Inputs: id (required), name, config, filters, +1 more.

event_catalog_canonicalGoaTech canonical event catalogA

Returns the events GoaTech understands out of the box (so they appear in pre-built dashboards / templates without manual rework) merged with the project's own registered custom events. Call this BEFORE writing any new track() / client.track() / useTrack() callsite — if a canonical event covers what you're about to emit, use the canonical name (e.g. signup_completed, not UserSignedUp or signup_done). Customers also benefit: their custom events show up under customer_events so you can match the convention they've already established. Filter to one category with category to avoid context bloat.

Inputs: category, include_customer_events.

feedback_submitSubmit feedback to the Sheepit teamA

File a bug report, feature request, or general note for the Sheepit team. The friction barrier between 'this is annoying' and 'report filed' is one tool call — use it. Call this proactively when the user expresses frustration ('this is confusing', 'I wish I could…', 'it should…'), when a tool returns a confusing error, or when you hit an obvious gap (a missing connector, a missing widget type, an unclear field name). Always confirm with the user before calling — quote their words back so the message is their voice, not yours. Returns the feedback id and createdAt timestamp. The MCP auto-stamps source/version metadata; you only supply type + message.

Inputs: type (required), message (required).

group_add_memberAdd a user to a groupA

Add a user to a user group, by user UUID OR email. Provide exactly ONE of user_id / email — the server resolves email to user_id and 4xxs if no user has that email. Returns the membership row id. Idempotency: re-adding the same user returns 409 ALREADY_MEMBER. Adding to an archived group returns 409 GROUP_ARCHIVED.

Inputs: id (required), user_id, email.

group_createCreate a user groupA

Create a new user group in the current project. Group keys are snake_case slugs unique per project. After creating, add members with group_add_member, then reference the group from a flag rule via {field: 'user_group', op: 'in', values: ['<key>']}. Example use cases: 'dogfooders' (early testers see new dashboards), 'beta_users' (cohort of opted-in feature testers), 'internal' (team members + advisors), 'banned' (denylist for kill-switches).

Inputs: key (required), name (required), description.

group_listList user groupsA

List user groups in the current project. Cursor-paginated, with optional free-text search across key and name. Use this BEFORE group_create to confirm the group doesn't already exist.

Inputs: search, include_archived, cursor, limit.

group_remove_memberRemove a user from a groupA

Remove a user from a group by group id + user id. Returns 404 if the user wasn't a member. Idempotent in spirit — caller can treat 404 here as 'already gone' rather than an error.

Inputs: id (required), user_id (required).

insights_queryRun an arbitrary timeseries query against your eventsA

Execute a one-shot InsightsQuery without saving it as a widget. Use this to answer questions like 'how many signups yesterday?' / 'errors-per-hour by app version this week?' / 'which utm_source converted best in the last 30 days?'. Input envelope: { environment_id?: uuid, query: { kind, event, interval, range, filters?, breakdownProperty?, aggregation? } }. query.kind is always 'timeseries' (the v1 surface). query.event is an event name from event_catalog_canonical. query.interval is one of 'minute'|'hour'|'day'|'week'. query.range is either {kind: 'relative', last: '1h'|'24h'|'7d'|'30d'|'90d'} or {kind: 'absolute', fromIso: iso, toIso: iso} (note: the absolute keys are fromIso/toIso, both full ISO-8601 datetimes). query.filters is an array of {field, op, value}; field names are dot-paths under event_properties / event_context (e.g. 'event_properties.course_slug'). query.breakdownProperty is a single property path that splits the series (caps at 20 distinct values). query.aggregation is {kind: 'count'} (default) or {kind: 'count_distinct', field: 'user_id'}. Returns gap-filled buckets; a missing time bucket is rendered as 0.

Inputs: query (required), environment_id.

release_healthFull health verdict + four signals for one releaseA

Return the full pre-computed health verdict and all four signals (crash-free, error rate, p95 latency, conversion) for ONE release, plus code context (commit SHA, PR number, PR title, branch, commit count) and the delta vs the prior release. health_status and health_score are authoritative — narrate them, never derive your own verdict from the individual rates. conversion_rate may be null when business metrics are not instrumented for this project; do not treat null as 0%.

Inputs: release_id (required), environment_id, window_minutes.

release_listList releases with current health verdictsA

List releases newest-first with each release's CURRENT pre-computed health verdict (healthy/degraded/critical/unknown) and crash-free + error + latency rates. The verdict is computed server-side — read health_status, do not recompute it from the rates. Filter by platform, channel, or status (status='active' means deployed to production). Supports cursor pagination: pass cursor from pagination.cursor to fetch the next page. Use release_health for the full four-signal breakdown of one release, and release_regressions to find releases that got WORSE.

Inputs: environment_id, platform, channel, status, +2 more.

release_regressionsList releases that regressedA

List releases that REGRESSED (crash-free rate dropped past the server's significance gate), newest-first, optionally since a timestamp. kind='release' means the release degraded vs the prior release; kind='change' means it degraded right after a specific flag/config change (see change_entity_key). The drop is detected server-side — report crash_free_delta as given, do not recompute it. crash_free_delta of 0 on a kind='change' entry may mean the delta was not computable — check pre/post_crash_free_rate to confirm before treating 0 as a true no-change reading. Use release_health(release_id) to investigate a specific regression in depth.

Inputs: since, environment_id, limit.

sheepit_helpSheepit help — what can I do?A

Returns a curated overview of what this MCP server can do, or a deep-dive on a specific area. Call this WITHOUT a topic when the user asks 'what can I do?' / 'how do I get started?' / 'what is Sheepit?' (or the Spanish equivalents — '¿qué es sheepit?' / '¿qué puedo hacer?' / '¿qué herramientas tiene sheepit?'). Call WITH a topic when the user asks about a specific area (campaigns, destinations, dashboards, insights, feedback, credentials). Pass language: 'es' when the user is writing in Spanish so the returned content matches their language.

Inputs: topic, language.

sheepit_quickstartSheepit quickstart — concrete recipe for a goalA

Returns a step-by-step recipe naming the exact tool calls to chain for a specific goal. Use when the user has a clear intent ('send a marketing email', 'analyze the signup funnel', 'wire a webhook' — or in Spanish 'enviar un email de marketing', 'analizar el funnel de signups', etc.). Pass language: 'es' when the user is writing in Spanish.

Inputs: recipe (required), language.

widget_createAdd a widget to a dashboardA

Create a new widget on the given dashboard. type is a widget type (V1: 'timeseries' only). query is an InsightsQuery — a discriminated union on kind (V1: 'timeseries' only). viz controls presentation (chartType: 'line' | 'bar' | 'area' | 'stacked_bar' | 'single_metric'). position defaults to a sensible {x,y,w,h} if omitted. Templates can't have widgets added via this tool.

Inputs: type (required), name (required), query (required), dashboard_id (required), +3 more.

widget_deleteRemove a widget from a dashboardA

Hard-delete a widget. The dashboard remains; only this single widget is removed.

Inputs: dashboard_id (required), widget_id (required).

widget_updateUpdate an existing widgetB

Update name / description / position / query / viz of a single widget. Trinary semantics for nullable fields. For bulk position changes (drag/drop save), prefer the dashboard layout endpoint at the API level — this tool is for one-widget edits.

Inputs: dashboard_id (required), widget_id (required), name, description, +3 more.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 40 tools

    Disambiguation5/5

    Each tool has a clear, distinct purpose within its domain. Campaign tools cover separate lifecycle actions (create, update, preview, launch, pause, resume, archive, complete), and other domains (dashboards, destinations, groups, releases) are similarly well-separated, leaving no ambiguity.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern with domain prefixes (e.g., campaign_*, dashboard_*, destination_*). The snake_case naming is uniform and predictable, making the tool surface easy to navigate.

    Tool Count2/5

    With 40 tools, the count is well above the recommended 3-15 range. While the server covers multiple domains, many tools (e.g., sheepit_help, sheepit_quickstart, feedback_submit) are meta or support functions, contributing to a heavy surface that could be streamlined.

    Completeness4/5

    The tool set covers core CRUD and lifecycle operations for campaigns, dashboards, destinations, groups, and releases. Minor gaps exist: campaigns lack a delete tool (only archive/complete), and event management is limited to a catalog lookup. Overall, most workflows are supported.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server for querying StackAdapt's GraphQL API. Gives AI assistants like Claude direct access to your campaign data, delivery metrics, advertisers, and more.
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server to manage Meta Ads (Facebook/Instagram) campaigns, ad sets, insights, and audiences from Claude Code using natural language.
      9
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server that enables AI agents (Claude Code) to manage Criteo campaigns, ad sets, creatives, audiences, and reports via natural language.
      -
    • F
      license
      B
      quality
      D
      maintenance
      A platform-agnostic MCP server that connects Claude to campaign data, institutional knowledge, and historical performance for paid media teams, enabling automated analysis, reporting, and debugging.
      73
      -