Drive Mitey from AI (MCP server)

Expose your workspace to a local AI agent as MCP tools it can list, inspect, and run.

New to this? Start with AI agents & your secrets: what an agent can and can’t do with your credentials, and a five-minute walkthrough.

Mitey can act as an MCP server: a local AI agent (Claude Desktop, Claude Code, Cursor, GitHub Copilot — any MCP host) connects and gets a small set of tools to browse your workspace, inspect a request, and run one against its API — using the same engine and resolution the app uses.

This is the mirror image of the MCP client page (where Mitey connects to other MCP servers). Here, Mitey is the server.

Read-only and safe by default. The agent can list and run your saved requests, but Mitey never gives it a secret value, scripts never run, and it can’t reach outside the workspace. Requests you approve can use your secrets on its behalf. See Letting an agent use secrets and Security.

How it works

The AI host launches mitey mcp on demand and talks MCP to it over stdio. There’s no network port.

  • While Mitey is open, mitey mcp is a thin relay to the app. The app serves the agent itself, so you can watch and cut off its sessions live (see Agent access and activity). The relay connects over a private channel that only your user account can reach: a socket on macOS and Linux, a named pipe on Windows. If that channel is held by another user’s process, mitey mcp refuses to start instead of talking to it, and the refusal shows in Activity.
  • While Mitey is closed, mitey mcp serves the workspace itself as a headless process, with the same tools and the same safeguards.

The tools it exposes:

  • list_workspace — the request tree + environments.
  • get_request — one request’s definition (URL, headers, body, auth, variables), with {{templates}} shown as authored and secrets redacted.
  • list_environments — environments and globals (secret values omitted).
  • run_request — resolve a request (variables + folder inheritance) and send it, returning the response.
  • get_history — recent run summaries.

By default the agent can only read and run. Enabling editing (see below) adds a few additive authoring tools: create_request, create_folder, create_environment, and set_environment_value.

Setup

The quickest way: click Connect MCP in the status bar (bottom-right). It opens the Agents tab at Connect, which gives you a ready-to-paste config with the real binary path filled in, a Copy button for both the JSON and the claude mcp add one-liner, a Pin this workspace toggle, the clear-on-exit setting, and hints for the MCP hosts it detects on your machine. Detected hosts with a config file we can write — Claude Desktop, Claude Code, Cursor — get a one-click Add to … button; it merges the entry in, leaving your other servers alone and saving a .mitey-bak backup first. The sections below are the same config, for reference.

You need the mitey binary path. On macOS it’s inside the app bundle: /Applications/Mitey.app/Contents/MacOS/mitey (not on PATH by default — use the full path, or symlink it: ln -s … /usr/local/bin/mitey). On Windows: C:\Program Files\Mitey\mitey.exe. On Linux it’s /usr/bin/mitey for the .deb/.rpm, or the .AppImage file itself (wherever you keep it — it takes the same mcp arguments).

Keep the workspace open in Mitey and the config needs no workspace path — the server targets whatever you have open (see Active workspace).

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (Windows: %APPDATA%\Claude\claude_desktop_config.json; Linux: ~/.config/Claude/claude_desktop_config.json):

{ "mcpServers": { "mitey": {
  "command": "/Applications/Mitey.app/Contents/MacOS/mitey",
  "args": ["mcp"]
}}}

Restart Claude Desktop, then ask: “List the requests in my Mitey workspace, then run ‘Login’ against the Local environment and show me the status.”

Servers added this way are listed under Settings → Developer, not Settings → Connectors (that page is for remote connectors and packaged extensions); their tools show up in the chat composer’s tools menu, grouped under mitey.

Claude Code

claude mcp add mitey --scope user -- /Applications/Mitey.app/Contents/MacOS/mitey mcp

Verify with claude mcp list; inside a session /mcp shows the tools.

Don’t drop --scope user. Without it claude mcp add defaults to local scope, which registers the server only for the directory you happened to run the command in — /mcp then shows nothing in every other project, even though ~/.claude.json clearly contains the entry (nested under projects.<dir>.mcpServers). If you’ve already hit this, re-run the command with --scope user; local-scope entries win for their own directory, so delete those too with claude mcp remove mitey from inside that directory.

This is also the config that the Claude desktop app’s Claude Code sessions read — they use ~/.claude.json, not claude_desktop_config.json. Adding the server for Claude Desktop’s chat does not make it appear in a Claude Code session, and vice versa. MCP servers are resolved when a session starts, so open a new session after adding.

Cursor / VS Code (Copilot)

Cursor — ~/.cursor/mcp.json:

{ "mcpServers": { "mitey": { "command": "mitey", "args": ["mcp"] } } }

VS Code (Copilot agent mode) — <project>/.vscode/mcp.json (note the servers key and explicit type):

{ "servers": { "mitey": { "type": "stdio", "command": "mitey", "args": ["mcp"] } } }

Active workspace

With no --workspace, the server drives whatever workspace you currently have open in Mitey — the app records a small pointer while it’s running, so the same static config follows you as you switch workspaces (reconnect the agent to pick up a switch).

By default the pointer is cleared when you quit Mitey, so the agent can only connect while the app is open. To target a fixed workspace instead (e.g. for a background agent), pin it explicitly:

{ "mcpServers": { "mitey": {
  "command": "mitey",
  "args": ["mcp", "--workspace", "/Users/me/Documents/my-workspace"]
}}}

Agent access and activity

The status bar shows Agent connected while an agent is talking to the app. Click it to open the Agents tab. It’s an ordinary tab, so you can keep working on requests while it’s open, and it updates live:

  • Connected: every agent talking to the app right now, with its name and version, whether it can edit (--allow-write) or only read and run, whether it’s pinned to a workspace, and how long it’s been connected. An agent running headless (started while Mitey was closed) isn’t a live session, so it’s listed by its last call in the past 15 minutes instead. Disconnect ends one agent’s session and logs it under Activity (disconnect · ended); its host may start it again, so use Agent access to keep agents out for good.

  • Agent access: the master switch. Off ends every live agent session, including ones that connected directly while Mitey was closed (those stop within a second), and mitey mcp refuses to start, even while Mitey is closed. The status bar then reads Agents off.

  • Activity: every tool call an agent made, newest first. Each entry shows the client’s name, the request and status, how long it took, and which secrets were withheld. Refused connections are listed too, and so is a session that turning Agent access off ended (shown as disconnect · ended). No bodies or credentials are stored. Calls made while Mitey was closed appear after Refresh.

The client name is whatever the AI host reports about itself; Mitey can’t verify it.

Letting an agent use secrets

By default an agent’s requests go out without your vault secrets. You can let a request use them, while Mitey still never gives the agent a value:

  1. The agent runs a request that needs a secret. It goes out without it. The agent is told why, and that you can approve it, and the status bar shows Approval needed.
  2. Open Agents → Secrets (clicking Approval needed goes straight there). The waiting request shows its method and URL, where it would go, and exactly which secrets it would send and where (Bearer token in auth, {{apiKey}} in a header…).
  3. Approve it. Each of those secrets is now allowed to go to that destination, and this request is approved as it stands. The agent’s next run sends them.

The rules Mitey enforces on every run:

  • Only to the origins you approved. A secret goes only to the scheme://host:port you allowed. A redirect anywhere else is refused before anything is sent there. An agent’s variables can’t change where the request goes: not its host, and not the path or query around the value it fills in.
  • Only where you approved it. Auth, headers and the TLS handshake are allowed by default. The query string, URL path and body need an extra confirmation, because servers often echo them back. A secret that would form part of the hostname can’t be approved at all.
  • Only the request you approved. An approval covers the request exactly as it was. If it’s edited (by you, or by an agent with file access), or a folder’s settings above it change, or an environment points a variable at a different secret, it needs approval again.
  • Only through the app. Secrets are only sent while Mitey is open. An agent connected while the app is closed always runs without them.
  • Never shown. Responses are scrubbed of every secret the request carried, in raw and encoded forms, before the agent reads them.

Login requests and tokens

Some requests return a credential: a login that answers with an access token, or a session header. Two settings under the request’s Settings → AI agents keep those away from the agent too:

  • Hide the response from agents. The agent gets the status and the response’s shape (JSON keys and value types, header names), never its values.
  • Save from the response. Pick a value (a JSON pointer such as /access_token, or a header name) and a secret variable in the active environment, such as {{token}}. When an agent runs the request, Mitey stores the value in the vault. Later requests use {{token}} like any secret: approved, bound to their origins, never shown.

Saving needs the request approved (it shows up under Waiting for approval with what it would save), and only happens while Mitey is open. The approval is for the server the request goes to: if it’s pointed at another one (say the environment’s base URL changes), nothing is saved until you approve it again. A login is usually a POST, so Write requests asks about it too: answer Always allow once. A saved value is also masked from anything the agent does see. These rules apply to agent runs only; sending the request yourself is unaffected.

Approved requests and Secret bindings on the same tab list what you’ve allowed; revoke or remove anything at any time. These settings live in Mitey’s app data, not in your workspace, so a shared or agent-edited workspace can’t grant itself access.

Workflows

list_workflows lists the workspace’s workflows with their steps and own variables, and run_workflow runs one (path, optional environment and variables). Every step is checked exactly like a run_request: write requests follow your write settings, secrets are sent only for requests you approved (approving a request covers it inside workflows too), and scripts don’t run. The agent gets each step’s outcome and the variables the run produced. Values from a response hidden from agents, and values marked secret, are masked, even where an error message would quote them. Like run_request’s, variables can’t replace a secret or change where a request goes.

Write requests

An agent running a request that changes something (POST, PUT, PATCH, DELETE: anything but GET, HEAD and OPTIONS) can be held for your answer. Reads always run.

While Mitey is open, it asks by default. A dialog shows who’s asking, the request, where it goes, its body with the agent’s values filled in, and the values the agent chose. You can answer:

  • Allow once or Deny.
  • Allow for this session: this request, with any values, until that agent disconnects.
  • Always allow or Always deny: remembered for this request until it’s edited.

What runs is what the dialog showed. If the request’s file changes while the dialog is open, the version you saw is the one sent.

No answer within a minute counts as Deny, and the agent is told to check with you. Pressing Escape denies. No button is focused by default, so a stray Enter can’t approve anything.

Set what happens under Agents → Writes:

SettingOptionsDefault
While Mitey is openAsk me each time · Allow · DenyAsk me each time
When Mitey can’t ask (the app is closed, or the agent connects without it)Allow · Only requests marked “Always allow” · DenyAllow

Remembered “always” answers are listed on the same tab, where you can forget them. A write refused because Mitey couldn’t ask shows up in Activity with an Always allow this request button, which is how you pre-approve requests for when the app is closed.

Letting the AI edit

Editing is off by default. To let the agent create requests, folders, and environments, tick Let the AI edit the workspace under Agents → Connect (it adds --allow-write to the config) — or add the flag by hand: args: ["mcp", "--allow-write"].

The authoring tools are deliberately additive: there’s no delete, rename, or move, no full request overwrite, and secret variables can’t be set over MCP (a headless process can’t safely store them in your vault). Everything else stays read-only.

Security

The AI is treated as an untrusted caller and gets Mitey’s conservative defaults:

  • Path-jailed to the workspace — request handles are workspace-relative; anything that escapes the root is rejected. So is a request whose body sends a file from outside the workspace, through .., a symlink or a hard link.
  • Secrets withheld unless approved — Mitey never gives the agent a secret value. A request you haven’t approved goes out without its vault secrets: secret variables resolve empty (redactedVars), a vault-stored auth credential is dropped (redactedAuth), a vault-held client key or passphrase isn’t used (redactedTls), and secretsWithheld says why, so a resulting 401 is explained rather than mysterious. An approved request lists what it sent in secretsSent, by name only. The variables argument can’t override a secret variable or change where the request goes (passing a variable the value it already has is always fine). Secret values never appear in get_request / list_environments output.
  • Credentials masked in responses: any credential a request carries (an approved secret, or one typed inline in the workspace) is masked as *** wherever it echoes back: the response body, headers, final URL, or an error message. Mitey also catches the forms servers commonly reflect it in: base64 (including inside an echoed Authorization: Basic header or a larger encoded blob), URL-encoding, and JSON string escaping however it’s mixed (\/, \u002B, or every character escaped). It decodes one level of escaping: a secret escaped twice (JSON inside a JSON string) isn’t recognised.
  • Its own cookies — each agent session starts with an empty cookie jar. It never sends the cookies your requests in the app collected, and cookies it receives stay out of the app.
  • Scripts never run — pre/post-request scripts are skipped (with a note), and ƒx value scripts resolve empty.
  • Writes held for you — requests that change something wait for your answer while Mitey is open (configurable, see Write requests).
  • Read + run by default — authoring is opt-in (--allow-write), additive only, and never deletes.