Field notes

An open-source MCP connector holds the account the protocol left out

MCP says nothing about whose account a tool call runs as. Kortix is open source and pins each connector call to a named account under a rule in your repo.

The Kortix Team
Kortix··6 min read

MCP says nothing about whose account a tool call runs as. Kortix is open source and pins each connector call to a named account under a rule in your repo.

Every open-source MCP connector has to answer a question the protocol never asks: whose account a tool call runs as. An MCP server publishes tools. The client-side entry that holds the account for those tools, and the rule for when they may run, is the connector. Kortix is the open-source CompanyOS, and its connectors follow a rule written in the project.

Two teams can install the same MCP server this afternoon and end up with different exposure tonight. The server never decides whose account a call uses. The client does, and Claude's setup form makes that visible: an owner chooses between signing in now, when a tool needs it, or never, and an API key typed into the request headers rides on every call. Anthropic's connector setup guide says a shared credential "gives everyone who uses it that credential's access."

What the protocol settles

MCP gives a client one call to list tools and one to run them. tools/list returns each tool's name and the JSON Schema for its input; tools/call invokes one with arguments the model wrote. The tools specification is plain about the interaction: "Tools in MCP are designed to be model-controlled." The model finds a tool and invokes it; what a person sees first is what the client chose to render.

Authorization is thinner than a sign-in screen suggests. "Authorization is OPTIONAL for MCP implementations," the specification says. It defines a token exchange at the transport: metadata discovery, client registration, an OAuth flow. The tools chapter hands duties to both sides: servers validate inputs and enforce access control, clients confirm sensitive operations with a person.

Both lists are instructions to an implementer. Neither answers the two questions a security review asks: which person's account the call acts as, and which rule decides that a write may proceed. Those belong to the client.

Three questions a connector has to answer

Which servers an agent may reach. A project can hold a dozen connectors while an agent should reach two. Kortix answers with a grant per agent: agents.<name>.connectors lists connector slugs, or all; omitted means none. A release agent can hold a repository connector while a support agent holds an inbox.

Whose account each call runs as. An MCP server sees a token, not a person. Kortix keeps an account object per connector. Each account carries a label, and whether it is shared with the project or private to one person is the authorization_strategy. A call resolves to one account by a stated rule, and the transcript records which ran.

What holds a write. Some actions should run whenever the agent asks, some should wait for a person, a few should never run. Kortix keeps that decision in the connector's file; policy rules match an action name or its arguments.

What the manifest holds, and what lives in the platform

The connectors, the per-agent grants and the policies are in kortix.yaml, in the project repository. The account is not: it is a live connection on the connector, made in the web app under Customize → Connectors by selecting Install on the app and choosing Who can use it, where Only you is selected by default and Everyone in the project shares it (Connectors), then pinned as the default with p.connectors.connections.setDefault(…) and renamed with p.connectors.connections.rename(…) (SDK reference). Its label and default pin live in the platform. The starter manifest Kortix ships, at packages/starter/templates/base/kortix.yaml in Kortix on GitHub, declares one worker agent and grants it connectors: all, secrets: all and kortix_permissions: all. A grant an agent leaves out still resolves to none, so an agent that should reach one connector names that one.

A connector entry is short: slug, provider, URL, transport, rules.

connectors:
  - slug: linear
    provider: mcp
    url: https://mcp.linear.app/mcp/readonly
    transport: http
    policies:
      - match: "*"
        action: always_run
agents:
  triage:
    connectors: [linear]

provider: mcp tells Kortix to call a server it does not host; transport says how it gets there, http or sse, defaulting to http, and the kortix.yaml reference lists every field. The URL is Linear's read-only endpoint, which Linear's docs say exposes read tools and nothing else; Kortix names a server added from its URL after the domain, which is where linear comes from. The rule matches every action that endpoint offers and lets each run; a policy is only as narrow as the surface behind it. A second entry pointing at the read-write URL would carry sensitive: true, so unnamed actions would wait for a person.

The last two lines are the grant people forget. Erase connectors: [linear] and the connector stays installed and unreachable. Actions are addressed as <slug>.<action>. Kortix connects 3,000+ apps in a click, plus MCP, OpenAPI, Postman, GraphQL and raw HTTP. The manifest never holds a credential, which makes keeping secrets out of the sandbox the other half of this story.

Whose account the call runs as

An account is the identity a call carries, and one field decides how far it reaches: authorization_strategy. It takes two values. project, the default, means the connector's accounts belong to the project, so every member and every agent whose grant lists the connector can use them, triggers included; it can be narrowed to people, groups or agents. user means each person connects their own account, and that account works only inside that person's private sessions. A cron trigger or a service-account key has nobody behind it, so Kortix will not route that call through a private account. Work that has to run while nobody is watching needs an account shared with the whole project.

Naming an account is optional, and the default is strict. Leave the field out, or write me or project, and Kortix resolves the call only when the answer is unambiguous: one account is reachable, or several are and exactly one is the default. Nothing is substituted, so a missing login fails the call.

The result names the account that ran it: connection id and label. Read the label with care. A label is whatever someone typed at setup, so a shared account can carry a person's name and serve every scheduled run. A private account on scheduled work means a wrong policy; an unattended run never uses one.

Where the rule lives

Five layers can answer for a call, and the first rule that matches decides. The project's policies: list goes first. The calling agent's policy set on that connector (agents.<name>.policy_sets) comes second, and a set the connector does not define blocks every call of that agent on it. The connector's own policies:, its base rules, come third. A sensitive connector holds whatever no rule named, reads included, and policy.default_mode answers what is left. A base rule cannot loosen a project rule, and a set can loosen a base rule for its own agent.

A rule ends in one of three verbs. always_run sends the call, require_approval parks it, block refuses it, and the Tools tab shows them as Allow, Ask and Block. A parked call pauses the agent's turn until a person answers. One approval answers a single request as it was made; an argument that changed afterwards needs a fresh decision.

A project that leaves policy.default_mode at allow_all runs everything that reaches it, so it is the first line to change on a project that can reach money, mail or production. risk runs reads and parks writes and destructive actions for a person; narrower rules trim from there. A rule can test arguments too, so a message to one domain runs while others wait.

Every action is recorded. Reading, exporting and streaming the audit log depend on the plan. A project account's label tells you less than its scope does.

The other direction of the same protocol

A provider: mcp connector is Kortix calling someone else's server. Kortix is also an MCP server, at https://api.kortix.com/v1/mcp. A client like Claude, Cursor or Codex can call Kortix and reach every account and project you can open, acting as you with your permissions. A connector action that a policy holds comes back pending, with a link for a person to approve. The MCP server documentation covers the client setup.

Both directions end at the same question: if you cannot say which account a tool call will use before it runs, you do not know what your agent can do.

Put the rule in a file you own, and name the account the call runs as.

Free to start, free to self-host.

Get started

Own your company’s AI.Start today, in our cloud or yours.

Start for free

Open source · SOC 2 Type I · SAML SSO and SCIM · Any model, your keys