{
  "name": "setoku",
  "title": "Setoku",
  "description": "Self-hosted MCP knowledge server: a read-only, audited view of one operator's own data (a company's, a household's, or one person's), plus the curated context needed to use it correctly.",
  "version": "0.22.0",
  "license": "Apache-2.0",
  "repository": {
    "url": "https://github.com/Hedgy-Labs/setoku",
    "source": "github"
  },
  "documentation": "https://setoku.com/docs",
  "when_to_use": {
    "summary": "Reach for Setoku when the answer lives in data its operator connected (a company's, a household's, or one person's) and depends on their own definitions, not public knowledge.",
    "who_its_for": [
      "Companies: give agents team-by-team access to revenue, logs, and deploys, for debugging and analysis. Definitions like “active customer” get written down once.",
      "Families: shared accounts and calendars, so the partner who doesn’t write SQL gets the same answers.",
      "Just you: your own accounts and repos, queryable from your phone and the web as well as your desktop."
    ],
    "use_when": [
      "The question is about the operator's own revenue, deploys, spending, mail, or repos. The data lives in their database, Slack, GitHub, email, or bank.",
      "The data keeps changing (a bank, an inbox, an issue tracker), so an export is stale on arrival.",
      "You need the operator's definition of a term first: what counts as an active customer, which account is the joint one, which charges were reimbursed.",
      "A naive query would be wrong in a way only an insider knows: soft-deleted rows, a test tenant, a transfer between your own accounts counted as income. You want that caveat before you run SQL.",
      "You want a dashboard on a link someone else can open, on live data, not a screenshot.",
      "An agent will read untrusted text (mail, logs, chat) in the same session. That session can't rewrite what Setoku knows, so an injected instruction can't become a remembered fact.",
      "You want the answer to be auditable later: every query and knowledge change is logged on your box."
    ],
    "do_not_use_when": [
      "The question is general knowledge or public data. Setoku only knows the data its operator connected.",
      "The data is a static file on your disk. Query it locally. Setoku is for data that lives in other services and keeps changing.",
      "You need to write to the operator's database. Every data path is read-only, enforced by database role. There is no write tool and no escape hatch.",
      "You want a hosted API to sign up for. There is none. Setoku is self-hosted, and the endpoint you call is the operator's own box.",
      "You want a model to run server-side. Setoku runs no inference."
    ],
    "how_to_call": [
      "Connect to the box's MCP endpoint (Streamable HTTP) at `https://<their-box>/mcp` with the person's bearer token, or paste `https://<their-box>/mcp/<token>` into a connector dialog that has no header field.",
      "Call find_context FIRST, every time. It returns the curated notes for the question, including which tables to trust and which to avoid.",
      "Then get_schema, then run_query.",
      "If the context is wrong, call report_correction. It lands as a proposal for a human to accept. An agent session can't commit knowledge by itself."
    ]
  },
  "remotes": [
    {
      "type": "streamable-http",
      "url": "https://{host}/mcp",
      "description": "Your own Setoku box. `host` is the hostname you deployed to; there is no hosted service.",
      "headers": [
        {
          "name": "Authorization",
          "description": "Bearer <your connector token>, issued and revoked from the box's console.",
          "is_required": true,
          "is_secret": true
        }
      ]
    },
    {
      "type": "streamable-http",
      "url": "https://demo.setoku.com/mcp/85315b4240ff6ded111072f950ac6f14167d920fdb765144",
      "description": "Public demo box (synthetic pro-sports-club dataset). The token is public on purpose, read-only, and carries the analyst role. Callable right now, no signup."
    }
  ],
  "auth": {
    "type": "bearer",
    "oauth2": false,
    "accepted_in": [
      "authorization-header",
      "url-path"
    ]
  },
  "tools": [
    {
      "name": "find_context",
      "title": "Find context for this connector's data",
      "role": "analyst",
      "readOnly": true
    },
    {
      "name": "list_entities",
      "title": "List everything in the knowledge store",
      "role": "analyst",
      "readOnly": true
    },
    {
      "name": "describe_entity",
      "title": "Full context doc for one entity",
      "role": "analyst",
      "readOnly": true
    },
    {
      "name": "get_metric",
      "title": "Canonical metric definition",
      "role": "analyst",
      "readOnly": true
    },
    {
      "name": "report_correction",
      "title": "Record a context correction / clarification",
      "role": "analyst",
      "readOnly": false
    },
    {
      "name": "list_corrections",
      "title": "List pending knowledge corrections",
      "role": "analyst",
      "readOnly": true
    },
    {
      "name": "resolve_correction",
      "title": "Resolve a pending correction",
      "role": "curator",
      "readOnly": false
    },
    {
      "name": "upsert_context",
      "title": "Create or update a knowledge doc",
      "role": "curator",
      "readOnly": false
    },
    {
      "name": "draft_correction",
      "title": "Attach a drafted doc-edit to a pending correction",
      "role": "janitor",
      "readOnly": false
    },
    {
      "name": "reject_correction",
      "title": "Auto-reject a pending correction",
      "role": "janitor",
      "readOnly": false
    },
    {
      "name": "list_sources",
      "title": "List connected data sources",
      "role": "analyst",
      "readOnly": true
    },
    {
      "name": "get_schema",
      "title": "Every table and column you can query",
      "role": "analyst",
      "readOnly": true
    },
    {
      "name": "run_query",
      "title": "Run a read-only SQL query",
      "role": "analyst",
      "readOnly": true
    },
    {
      "name": "app_guide",
      "title": "How to build a Setoku app",
      "role": "analyst",
      "readOnly": true
    },
    {
      "name": "publish_app",
      "title": "Publish a live app to the box",
      "role": "analyst",
      "readOnly": false
    },
    {
      "name": "update_app",
      "title": "Edit an app you published",
      "role": "analyst",
      "readOnly": false
    },
    {
      "name": "list_apps",
      "title": "List apps published to the box",
      "role": "analyst",
      "readOnly": true
    },
    {
      "name": "get_app",
      "title": "Inspect an app — its full template and panels",
      "role": "analyst",
      "readOnly": true
    },
    {
      "name": "unpublish_app",
      "title": "Archive a published app",
      "role": "analyst",
      "readOnly": false
    },
    {
      "name": "publish_file",
      "title": "Share a file to the box",
      "role": "analyst",
      "readOnly": false
    }
  ],
  "tool_catalog": "https://setoku.com/api/tools.json",
  "openapi": "https://setoku.com/openapi.json",
  "note": "Generated by scripts/build-site-api.ts from the Setoku source tree — do not edit by hand."
}
