Skip to main content
Glama
README.md
<div align="center">

<img src="https://raw.githubusercontent.com/wiroai/Wiro-MCP/main/.github/assets/wiro-logo.png" alt="Wiro AI" width="240">

# Wiro MCP Server

Official MCP server for Wiro AI: run image, video, audio and LLM models, build and run workflows, and deploy and talk to AI agents from Cursor, Claude Code, Claude Desktop, Windsurf and any other MCP client.

[![npm](https://img.shields.io/npm/v/@wiro-ai/wiro-mcp?style=for-the-badge&color=111111)](https://www.npmjs.com/package/@wiro-ai/wiro-mcp) [![Node.js 20+](https://img.shields.io/badge/Node.js-20%2B-111111?style=for-the-badge&color=111111)](#quick-start) [![MCP server](https://img.shields.io/badge/MCP-server-111111?style=for-the-badge&color=111111)](https://modelcontextprotocol.io/) [![License: MIT](https://img.shields.io/badge/license-MIT-111111?style=for-the-badge&color=111111)](./LICENSE)

[Website](https://wiro.ai) · [Models](https://wiro.ai/models) · [Docs](https://wiro.ai/docs/wiro-mcp-server) · [Dashboard](https://wiro.ai/panel)

<img src="https://wiro.ai/images/koala/accent-heavy-koala.png" alt="Wiro AI koala mascot" width="60" />

</div>

`@wiro-ai/wiro-mcp` is a TypeScript [Model Context Protocol](https://modelcontextprotocol.io/) server that runs locally over stdio, with `npx` or [Docker](#docker). Its tools are grouped in four sets:

- **Models**: search the Wiro AI model catalog, read a model's parameters and price, run it and wait for the result, upload input files and browse past tasks.
- **Workflows**: build multi-step workflows that chain models, run them, resume failed runs, browse the public gallery, and design workflows together with the Workflow Agent.
- **Agents**: talk to Studio, the creative agent that runs models for you, and deploy, configure, run and message your own agents built from templates or from scratch, with the outside services they work with connected as connectors.
- **Controls**: see and change your workspace's Spend Limits and Model Access rules, the caps on what it spends and the rules on which models it runs, always after a change summary you confirm.

Playbooks explain each job step by step, so the assistant knows the order of calls, what costs money and what needs your approval. The hosted server at `https://mcp.wiro.ai/v1` serves the same tools with nothing to install.

## Quick Start

Local `npx` and library usage require Node.js 20 or later. The hosted MCP
endpoint and the [Docker image](#docker) do not require a local Node.js
installation.

### 1. Get API Keys

Sign up at [wiro.ai](https://wiro.ai/) and create a project at [wiro.ai/panel/project/new](https://wiro.ai/panel/project/new) to get your API key and secret.

### 2. Add to Your AI Assistant

**Cursor**: open MCP settings (`Cmd+Shift+P` → "Open MCP settings") and add:

```json
{
  "mcpServers": {
    "wiro": {
      "command": "npx",
      "args": ["-y", "@wiro-ai/wiro-mcp@latest"],
      "env": {
        "WIRO_API_KEY": "your-api-key",
        "WIRO_API_SECRET": "your-api-secret"
      }
    }
  }
}
```

**Claude Code:**

```bash
claude mcp add wiro -- npx -y @wiro-ai/wiro-mcp@latest
```

Then set environment variables `WIRO_API_KEY` and `WIRO_API_SECRET`.

**Claude Desktop**: add to `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "wiro": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@wiro-ai/wiro-mcp@latest"],
      "env": {
        "WIRO_API_KEY": "your-api-key",
        "WIRO_API_SECRET": "your-api-secret"
      }
    }
  }
}
```

**Windsurf**: add to MCP settings:

```json
{
  "mcpServers": {
    "wiro": {
      "command": "npx",
      "args": ["-y", "@wiro-ai/wiro-mcp@latest"],
      "env": {
        "WIRO_API_KEY": "your-api-key",
        "WIRO_API_SECRET": "your-api-secret"
      }
    }
  }
}
```

**OpenClaw**: configure a remote server under `mcp.servers`:

```json
{
  "mcp": {
    "servers": {
      "wiro": {
        "url": "https://mcp.wiro.ai/v1",
        "transport": "streamable-http",
        "connectionTimeoutMs": 10000,
        "headers": {
          "Authorization": "Bearer ${WIRO_MCP_AUTH}"
        }
      }
    }
  }
}
```

Set `WIRO_MCP_AUTH` in OpenClaw's environment to your API key, or to
`API_KEY:API_SECRET` for a project with signature-based auth. Then verify with
`openclaw mcp doctor wiro --probe`. On older OpenClaw releases without that
probe command, use `openclaw mcp show wiro`, restart OpenClaw, and run
`/tools verbose`.

**Hermes**: add to `~/.hermes/config.yaml`:

```yaml
mcp_servers:
  wiro:
    url: "https://mcp.wiro.ai/v1"
    headers:
      Authorization: "Bearer ${WIRO_MCP_AUTH}"
    timeout: 60
    connect_timeout: 10
```

Store `WIRO_MCP_AUTH` (your API key, or `API_KEY:API_SECRET`) in `~/.hermes/.env`, then run `/reload-mcp` and `/tools`.

### 3. Start Using

Ask your AI assistant:

**Models**

- *"Generate a photorealistic image of a mountain lake at sunset"*
- *"What video generation models are available on Wiro?"*
- *"Show me the parameters for google/veo3-1"*
- *"Create a 5-second video with Kling V3: a drone shot over mountains"*
- *"Check the status of my last task"*
- *"Show my latest productions and open the newest result"*

**Workflows**

- *"Build a workflow that turns a product photo into a short ad video, then run it on this photo"*
- *"Find a public workflow for podcast covers and run it with my show's name"*
- *"Ask the Workflow Agent to add an upscale step to my product ad workflow and save it"*
- *"Why did my last workflow run fail? Resume it if it can be resumed"*

**Agents**

- *"Ask Studio for three logo ideas for a coffee shop"*
- *"Which agent templates can manage Instagram? What does each plan cost?"*
- *"Deploy the Instagram manager agent on the Starter plan and tell me what it still needs"*
- *"Tell my support agent to summarise today's tickets"*

**Controls**

- *"Cap our whole team at $500 a month"*
- *"Stop Jane from using video models"*
- *"Why was my last run refused, and what would allow it?"*
- *"What did we spend this month, and who spent it?"*

## Docker

Every release is also published on Docker Hub as
[`wiroai/wiro-mcp`](https://hub.docker.com/r/wiroai/wiro-mcp), for
`linux/amd64` and `linux/arm64`. The image runs the same stdio server, so you
need Docker but not Node.js:

```bash
docker run -i --rm -e WIRO_API_KEY wiroai/wiro-mcp
```

`-e WIRO_API_KEY` hands the variable from your environment to the container.
For a project with signature-based auth, add `-e WIRO_API_SECRET` as well.
`WIRO_TOOLSETS` passes through the same way. Keep `-i`, since the server reads
its requests from stdin, and leave out `-t`.

In a client config, `docker` is the command and the credentials go in `env`.
This works in Cursor, Claude Desktop and Windsurf:

```json
{
  "mcpServers": {
    "wiro": {
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "WIRO_API_KEY", "-e", "WIRO_API_SECRET", "wiroai/wiro-mcp"],
      "env": {
        "WIRO_API_KEY": "your-api-key",
        "WIRO_API_SECRET": "your-api-secret"
      }
    }
  }
}
```

**Claude Code:**

```bash
claude mcp add wiro -e WIRO_API_KEY=your-api-key -e WIRO_API_SECRET=your-api-secret -- docker run -i --rm -e WIRO_API_KEY -e WIRO_API_SECRET wiroai/wiro-mcp
```

For an API Key Only project, leave out the `WIRO_API_SECRET` value. Docker only
passes variables that are set, so the `-e WIRO_API_SECRET` argument can stay.

Image tags follow the npm versions: `wiroai/wiro-mcp:<version>` pins a release
and `latest` is the newest one. A client does not fetch a newer `latest` by
itself, so run `docker pull wiroai/wiro-mcp` to update. Pulling once before the
first start also means the client does not wait for the download.

## Authentication

Wiro AI supports two authentication types, chosen when you create a project:

### Signature-Based (Recommended)

More secure. Requires both API key and API secret.

```
WIRO_API_KEY=your-api-key
WIRO_API_SECRET=your-api-secret
```

### API Key Only

Simpler. Only requires the API key. Omit `WIRO_API_SECRET` from your config.

```
WIRO_API_KEY=your-api-key
```

The hosted server takes the same credentials as a bearer token:
`Authorization: Bearer API_KEY:API_SECRET` for a signature-based project, or
`Authorization: Bearer API_KEY` for an API Key Only project.

## Available Tools

### Models

| Tool | Description |
|------|-------------|
| `search_models` | Search and browse AI models by keyword, category, or owner |
| `get_model_schema` | Get full parameter schema and pricing for any model, or the parameters and output ports of a workflow utility |
| `recommend_model` | Find models for a goal from two or three key words, best matches first |
| `explore` | Browse curated models grouped by category, no parameters needed |
| `run_model` | Run any model, waiting up to 45s by default (up to an hour with `timeout_seconds`) before it returns a recoverable task token |
| `wait_for_task` | Continue waiting for an existing task without submitting or billing a duplicate run |
| `get_task` | Check task status immediately or wait up to 45s with `wait_seconds` |
| `list_tasks` | Browse authenticated task history across conversations, then continue with `get_task` |
| `get_task_price` | Get the cost of a completed task |
| `cancel_task` | Cancel a queued task |
| `kill_task` | Stop a queued or running task |
| `upload_file` | Upload a file from a public http(s) URL (up to about 100 MB) for use as model input |

For long generations, `run_model` returns the existing task ID and token when its
wait budget expires. The assistant must continue with `wait_for_task`; retrying
`run_model` creates a separate billable task.

### Workflows

A workflow chains models and built-in utility steps into one graph with its own
inputs and outputs. Every model step is charged like a normal model run when it
finishes. Wiro fills a model input you leave out with the model's default, so the
save result lists what it filled, and a graph can be at most 40 KB of JSON.

| Tool | Description |
|------|-------------|
| `list_workflows` | List the workflows in your workspace, or search the public gallery by text, tag or model |
| `get_workflow` | Read a workflow's inputs, outputs and step graph |
| `create_workflow` | Save a new workflow from a step graph. Wiro checks it against the live model catalog and returns every problem it finds at once |
| `update_workflow` | Edit a workflow's title, description, tags or graph without overwriting newer changes; a new graph is saved only after you confirm a summary of the change |
| `clone_workflow` | Copy a public workflow into your workspace |
| `delete_workflow` | Delete a workflow, after your confirmation |
| `run_workflow` | Run a workflow and wait for its outputs; can stop after a chosen step to test the first steps |
| `wait_for_workflow_run` | Keep waiting on a run, read its outputs, or see why a step failed |
| `resume_workflow_run` | Continue a failed or stopped run without paying again for finished steps |
| `list_workflow_runs` | Browse past and current runs, including runs started on wiro.ai |
| `save_workflow_from_agent` | Save a workflow the Workflow Agent proposed, as a new workflow, or onto an existing one after you confirm a summary of the change |

The **Workflow Agent** designs workflows with you in plain language: talk to it
with `send_agent_message` and `agent: "workflow-agent"`, attach an existing
workflow to edit, then save its proposal with `save_workflow_from_agent`.
Conversations started through this server belong to the connected project and
are separate from your Workflow Agent chats on wiro.ai.

### Agents

Talk to any Wiro agent with one set of tools. `agent` is `"studio"`, `"workflow-agent"`
or the id of one of your own agents. Session names use letters, digits, dots, dashes,
underscores and colons, up to 128 characters (100 for the Workflow Agent), and cannot end in
"-r" followed by a number. Studio refuses a message under any other name; a session it has
under another name can be read and deleted, and to go on with it you start a new session.

| Tool | Description |
|------|-------------|
| `send_agent_message` | Send a message and wait for the reply, with any media, workflows or model runs it produced |
| `get_agent_message` | Keep waiting on a reply, or read one again |
| `get_agent_conversation` | List conversations, or read one conversation's history |
| `cancel_agent_message` | Stop a reply that is still being written |
| `delete_agent_session` | Delete a conversation and the agent's memory of it, after your confirmation |
| `list_studio_results` | List the images, videos and other results Studio generated for you |
| `answer_agent_approval` | Answer an action one of your agents asked to run, such as publishing a post: allow it once, always allow it (agent admins), or decline it. Shows the exact request first, then asks for your confirmation |

**Studio** is Wiro's creative agent: it picks and runs models for you and charges
your wallet after each reply. Your own agents run on a monthly plan that includes its own price
in AI usage each month; after that, they use your Wiro balance.

| Tool | Description |
|------|-------------|
| `list_agent_templates` | Browse ready-made agent templates and the three monthly plans |
| `get_agent_template` | Read a template's skills, plans, the connectors it suggests and the keys it needs |
| `list_agent_skills` | Browse the skills an agent can have, what each one needs to work and the connectors it works with |
| `list_agent_connectors` | Browse the connectors an agent can connect (ad accounts, stores, social accounts, mailboxes, data sources), what each one needs and the tools it gives the agent; with an agent, its connections |
| `deploy_agent` | Deploy an agent from a template or build one from skills, on the Starter, Pro or Max plan; shows the plan's price, the wallet it charges and the other plans' prices, and asks before charging |
| `list_my_agents` | List your agents with their status, plan, included AI usage and what they spent this month |
| `get_my_agent` | Read one agent's setup, plan, AI usage in dollars and the balance after it; can wait until it is running |
| `control_agent` | Start, stop or restart an agent |
| `update_agent` | Change an agent's name, description, time zone, models, chat commands and setup from chat |
| `apply_agent_skills` | Turn skills on or off; every plan includes every skill, so a change costs nothing |
| `set_agent_credentials` | Save an agent's chat channel keys (such as a Telegram bot token), Twilio Voice and settings |
| `connect_agent_connector` | Connect a connector to an agent: save its keys, or start its sign-in, which you approve in your browser. The Wiro AI Models connector (`wiro`), the agent's model and task tools, runs with the agent's own Wiro project: connecting it binds that project to the agent, after showing the project, what it replaces and its wallet |
| `set_agent_connector_accounts` | Choose the accounts a connected connector may act on, such as its ad accounts, pages or channels, or the advertisers a TikTok Ads sign-in reaches |
| `disconnect_agent_connector` | Disconnect a connector from an agent, after your confirmation |
| `get_agent_connector_permissions` | Read what an agent may do with a connector without asking: each group of actions (Read-only, Create and send, Change and delete) and each action in Chat and Autopilot, and the approvals still waiting |
| `set_agent_connector_permissions` | Change a connector's permissions for a group or one action; shows what changes for the agent, then asks for your confirmation |
| `list_projects` | List the projects of the connected project's workspace, to pick one for an agent; no keys are shown |
| `bind_agent_project` | Set the Wiro project an agent's video and voice skills run models with, with no key in the chat; shows the project first, then asks for your confirmation. The agent's model tools come from the Wiro AI Models connector (`wiro`), which runs with this same project and is connected with `connect_agent_connector` |
| `manage_agent_custom_skill` | Add, edit, schedule, restore or remove an agent's own instructions and scheduled tasks; turning off its approval policy or changing its rules needs your confirmation. A scheduled task that comes with the agent's template keeps the template's text: its schedule and on/off switch can change |
| `manage_agent_billing` | Subscribe, move to another plan, cancel or renew, paid from your Wiro balance, after your confirmation |
| `get_agent_activity` | Read what an agent spent and its ledger in dollars, and its activity logs, including who changed what on it |
| `delete_agent` | Delete an agent, after your confirmation |

A connector connects with a key typed on its Connect card, a sign-in you approve in your
browser, or a Wiro project. The Wiro AI Models connector (`wiro`) gives the agent only Wiro's
model, task and file upload tools, plus read-only docs search and playbooks. It always runs
with the agent's own Wiro project, so its calls count as the agent's own: the agent's spend
limits and Model Access rules apply, and account, agent and billing calls are refused.
Connecting it binds the project to the agent, as `bind_agent_project` does: a new project
turns on the scheduled tasks and custom skills that need one. While it is connected, binding
another project moves its tools there too.
Where a connector has account choices, the agent acts only on the accounts you choose, also
for a connector served by the service itself, such as TikTok Ads and its advertisers.
When an agent proposes a connection in its chat, a key goes in with `connect_agent_connector`,
never in a message, and a sign-in or a Wiro project is never connected by a reply.

Each connected connector's actions fall into three groups: Read-only, Create and send, and
Change and delete. Each group, and each action, has a permission in two columns: Chat, when
someone is talking to the agent (the Wiro web chat, a message sent with an API key or from this
server, or a Telegram, Slack or Discord chat), and Autopilot, its scheduled tasks and the work
before and after a voice call. Any other work it does on its own, such as sub-agents and work in
the background, takes the stricter of the two for each action. Allow runs the action, Ask waits
for a person's approval, and Block never runs it.
By default, read-only actions run, and Create and send and Change and delete ask in chat and run
in scheduled tasks. An action that asks does not run: the reply lists it under `approvals`
with its exact request, and `answer_agent_approval` answers it once you have decided. A reply of
only yes, always or no sent with `send_agent_message` while a card waits is answered by Wiro, not
the agent: the first yes gets Wiro's listing of the exact request, and only a later yes allows it
once; always from there allows it once. A yes or no typed in the agent's chat answers a card too.
After an approval the agent goes on in a new turn of the same chat, and its answer is that
session's next message. A card waits 24 hours. Approval cards that a scheduled task asked for are
in your chat on wiro.ai, or in the agent's `approvals` session, and
`get_agent_connector_permissions` lists them. A card asked in a Telegram, Slack or Discord chat
is answered there, by a reply in that chat; `answer_agent_approval` cannot answer it.

### Controls

Spend Limits cap what a workspace spends in a month or a day, in USD, and Model Access
rules allow or block models by category or one by one. Each covers the whole wallet, one
team member, one API key, one way in (the dashboard, the API, MCP, the LLM gateway, the
browser extensions, agents, Studio, the Workflow Agent or workflows) or one agent, and every
limit and rule that applies to a run must allow it. Work they refuse never runs and is never
charged: error code 93 for a spend limit, 92 for a Model Access rule. Studio's and the
Workflow Agent's chat model follows your rules too, like the models Studio runs, and an
agent's own rule also covers the chat model it answers with and its built-in voice. This
server names itself to Wiro, so the models a local install runs count as MCP, like the
hosted server's. Messages to Studio and the Workflow Agent count as Studio and the Workflow
Agent, with the models Studio runs for them, and workflow runs as workflows, whichever way
they come in.

| Tool | Description |
|------|-------------|
| `get_controls` | Show the workspace's spend limits with what each used, what running work holds, what is left and when it resets (UTC), its Model Access rules in plain words, who changed each limit and rule last, which of them cover this connection's own runs, and this month's or today's spending by way in, member, API key and agent |
| `check_model_access` | Check how the rules decide one model for one run, rule by rule, and get the change summary that would allow it; nothing runs |
| `manage_spend_limit` | Set, raise, lower or remove a monthly or daily spend limit, or change only its alert, after your confirmation |
| `manage_model_access` | Update, replace or remove a Model Access rule, after your confirmation |

Only the account owner, a team admin or the organization's owner can change them; other
team members can read them. Calls act as the person who created the connected project, so
with a team, connect a project you created as an admin. Every change shows a summary first
(what it covers, the value before and after, what was spent this period) and is made only
when the summary's own call is repeated with `confirm: true`. A confirm saves only the change
its summary showed: if the limit or rule changed in between, or the call asks for something
else, nothing is saved and you get a new summary. A Model Access summary also warns when a
wider rule still blocks a model the change allows.

When a spend limit or a Model Access rule refuses a `run_model` run or a `send_agent_message`
message, the tool error also carries Wiro's own error items in `_meta["ai.wiro/errors"]`,
such as `[{ "code": 93, "message": "..." }]` (92 for Model Access), with Wiro's sentence and
none of the server's note for the assistant. An app can tell the refusal by its code and show
people Wiro's sentence.

### Account and guides

| Tool | Description |
|------|-------------|
| `get_account` | Show which workspace the connected project belongs to, its wallet balance, its spend limits and, when you ask, the wallet's recent transactions |
| `get_playbook` | Step-by-step guides: getting started, models, workflows, workflow graphs, the Workflow Agent, Studio, agents, billing and controls |
| `search_docs` | Search the Wiro documentation for guides and API references |

The server also offers prompts for common jobs (`build_workflow`, `deploy_agent`,
`create_with_studio`, `talk_to_my_agent`). In clients that support MCP prompts
they appear as ready-made commands.

### Choosing tool groups

All groups are on by default. Some clients work best with fewer tools; set
`WIRO_TOOLSETS` to a comma-separated list of `models`, `workflows`, `agents`
and `controls` to load only those. `get_account`, `get_playbook` and `search_docs` are always
available, and `workflows` also brings the model search tools it needs. The
conversation tools for Studio and the Workflow Agent, with
`save_workflow_from_agent`, come with either `workflows` or `agents`, and each
prompt appears only when its tools are loaded. If a job needs a tool from a
group that is not loaded, the server instructions tell the assistant to say so.

```json
"env": {
  "WIRO_API_KEY": "your-api-key",
  "WIRO_TOOLSETS": "models,workflows"
}
```

### Paid and irreversible actions

Running a model or workflow, sending a message to Studio or the Workflow Agent,
and messages to your own agents (which use the AI usage their plan includes, then
your Wiro balance) cost money. Agent plans and moves to a larger plan are charged
to your Wiro balance, never by card: its deposits, store revenue and coupon credit
that is not limited to certain models count toward a plan, the automatic renewal
included, and toward an agent's AI usage after what its plan includes. Those tools
first return the price (for a move inside a billing period, the
amount Wiro works out for the time left) and only act when called again with
`confirm: true` and `confirm_charge_usd`, the approved amount, after you agree.
If the price changed in between, nothing is charged and you get a new quote.
Turning an agent's skills on or off costs nothing, and so does connecting its
connectors, since every plan includes every skill and connector. A move to a smaller plan
starts with the next renewal, with nothing charged or refunded, and waits for
`confirm: true` too. Deleting a workflow, an agent, a conversation or a
connector connection also waits for `confirm: true`, and so do replacing a
working connector connection, connecting an agent or a connector to a Wiro
project with `bind_agent_project` or `connect_agent_connector`, and
replacing a workflow's steps with `update_workflow` or
`save_workflow_from_agent`: you see a summary of the change first, with the old
and new value of each step input that changes. Changing a spend limit or a Model
Access rule also waits for `confirm: true`: you see the old and new values and
what was spent this period first. Answering an agent's approval card and changing
a connector's permissions wait for `confirm: true` too: you see the exact request, or
what changes for the agent, first. No tool adds
funds or takes a card payment: funds are added in the Wiro dashboard, and a
charge your balance cannot cover says how much to add, with nothing charged. The connected project
decides the workspace: a personal project uses your personal wallet, a team
project uses the team wallet.

### LLM-friendly responses

All tools publish typed MCP input and output schemas. Successful calls return
`structuredContent` for reliable chaining, concise text `content` for clients
that only render text, and MCP resource links for generated media.
Every tool that takes arguments refuses an argument it does not know and names
the right one where it can, such as `taskid` for `task_id`. The one exception is
a call that carries `toolCallId`, a key some clients add on their own: it reads
only the arguments the tool takes.
Model parameters remain catalog-driven: `json` and `json-array` fields are sent
as structured values in the same `run_model.params` object as all other inputs.
Use `get_model_schema` as the source of truth for continuation fields. A model
can continue a conversation only when its schema lists `session_id`: send the
same `session_id` on every turn, the first one included, with the next
`prompt`. A turn that ended with tool calls is continued with
`previousTaskToken`, that turn's task token, and `toolOutputs`, as the turn's
`nextAction` template shows.

LLM task outputs preserve the public Task Detail segment names and casing:
`thinking`, `answer`, `function_call`, and `custom_tool_call`, including
`call_id`, `finishreason`, and optional normalized token `usage`.
Only validated fields are projected into structured MCP output. When segments
are present, `response` is derived from ordered `answer` segments instead of
raw debug transport; tasks without a typed projection retain their normal
`debugoutput` response.

Completed tool calls return a continuation template in the existing
`nextAction`. Execute each call, replace the output placeholders, and pass the
same ordinary `run_model.params` object back:

```json
{
  "tool": "run_model",
  "arguments": {
    "model": "owner/model",
    "params": {
      "previousTaskToken": "task-token",
      "toolOutputs": [
        {
          "call_id": "call_01",
          "output": "<tool result>"
        }
      ],
      "session_id": "launch-taglines"
    }
  }
}
```

Function calls carry JSON-string `arguments`; custom tool calls carry free-form
`input`. Tool results are request values in `toolOutputs`, not response
segments.

Completed media responses also include an assistant-audience delivery
instruction. Some MCP clients expose a `resource_link` as tool metadata instead
of previewing it inside the tool card, so the assistant is explicitly told to
render images and preserve clickable media links in its user-facing response.
The standard resource link and full-resolution URL remain available to every
client; no base64 media payload is required. Only files on Wiro's own hosts are
returned this way. Other links in an agent's reply stay plain links in the text,
without the delivery instruction.

In the text of a result, an agent's reply, the file and link addresses taken from
it and a model's answer sit in fenced blocks under fixed labels, and the server's
own guidance (`**Next:**` lines and notes) stays outside them, so an assistant can
treat that text as content and act only on that guidance and `nextAction`.
`structuredContent` keeps the text unchanged in its own fields. A workflow run's
text outputs and step errors show the same way, each under a fixed label. A saved
workflow's title, description and input list are shown as data too, in every
result, since an agent or another person can have written them.

Task responses use the stable states `submitted`, `running`, `completed`,
`failed`, and `cancelled`. A task's `status` is Wiro's status code, for
programs, and `statusText` is the same status in words, such as `Completed`,
`Failed` or `Running: producing output`, as the text's Status line says it: an
assistant tells a person the words. When more work is required, the response
includes an executable `nextAction`:

```json
{
  "state": "running",
  "task": {
    "id": "123",
    "token": "task-token",
    "status": "task_start",
    "statusText": "Running"
  },
  "outputs": [],
  "nextAction": {
    "tool": "wait_for_task",
    "arguments": { "tasktoken": "task-token" },
    "reason": "Continue this exact task. Do not call run_model again."
  }
}
```

Generation chain:
`search_models → get_model_schema → run_model → wait_for_task`

Cross-conversation history:
`list_tasks → get_task`

Workflow chain:
`search_models → get_model_schema → create_workflow → run_workflow → wait_for_workflow_run`

Workflow Agent chain:
`send_agent_message (agent "workflow-agent") → get_agent_message → save_workflow_from_agent → run_workflow`

Agent chain:
`list_agent_templates → get_agent_template → deploy_agent → list_agent_connectors → connect_agent_connector / set_agent_credentials / bind_agent_project → control_agent → send_agent_message`

Controls chain:
`get_controls → manage_spend_limit or manage_model_access (change summary) → its nextAction, with confirm: true`

## Hosted MCP Server

Wiro AI also hosts the same tools at `https://mcp.wiro.ai/v1` over streamable HTTP, so nothing has to be installed locally. Send your credentials in the `Authorization` header as shown under [Authentication](#authentication). The [MCP Server documentation](https://wiro.ai/docs/wiro-mcp-server) has setup instructions for each client.

### Install as a plugin

[wiroai/Wiro-Plugin](https://github.com/wiroai/Wiro-Plugin) packages the hosted server as a plugin for Cursor, Claude Code, Gemini CLI and Devin. Its README has the install command for each of them.

## Documentation

- [MCP Server (Hosted)](https://wiro.ai/docs/wiro-mcp-server): setup guides for Cursor, Claude Code, Claude Desktop, Windsurf, Gemini CLI, Devin, OpenClaw, and Hermes
- [Self-Hosted MCP](https://wiro.ai/docs/mcp-self-hosted): run locally with npx, environment variables, library usage
- [Node.js Library](https://wiro.ai/docs/nodejs-library): use `WiroClient` from this package in your own Node.js or TypeScript code
- [Authentication](https://wiro.ai/docs/authentication): signature-based vs API Key Only
- [Run a Model](https://wiro.ai/docs/run-a-model): how the Run endpoint works
- [Tasks](https://wiro.ai/docs/tasks): task lifecycle, statuses, determining success
- [Concurrency Limits](https://wiro.ai/docs/concurrency-limits): concurrent task limits based on balance
- [Error Reference](https://wiro.ai/docs/error-reference): error codes and handling
- [Agents Overview](https://wiro.ai/docs/agent-overview): templates, plans and the AI usage they include, and the agent lifecycle
- [Agent Builder](https://wiro.ai/docs/agent-builder): build an agent from skills instead of a template
- [Agent Connectors](https://wiro.ai/docs/agent-connectors): the connector catalog, connecting with keys or a sign-in, account choices and disconnecting
- [Agent Skills](https://wiro.ai/docs/agent-skills) and [Agent Credentials](https://wiro.ai/docs/agent-credentials): what each skill needs, chat channels and the Wiro project
- [Agent Messaging](https://wiro.ai/docs/agent-messaging): conversations, sessions and replies

## Using as a Library

This package exports its core components for use in custom MCP servers:

```typescript
import { WiroClient } from '@wiro-ai/wiro-mcp/client';
import { createMcpServer } from '@wiro-ai/wiro-mcp/server';

const client = new WiroClient('your-api-key', 'your-api-secret');
const server = createMcpServer(client);
```

If a project uses signature-based auth and no API secret was given, tool errors say that the secret is missing. When your server takes credentials in its own way, tell users where the secret goes:

```typescript
const client = new WiroClient(apiKey, apiSecret, undefined, {
  missingSecretHint: 'This project uses signature-based auth. Enter API_KEY:API_SECRET as the API key.',
});
```

To send headers of your own with every API request, pass `requestHeaders`: a function that gets one object, `{ pathname, apiKey }`, for each request (`pathname` such as `/v1/Tool/List`) and returns a plain object of string values. The headers it returns are sent after the client's own. If they include `x-api-key`, `x-signature`, `x-nonce` or `Content-Type`, in any letter case, the request fails before it is sent.

### Exports

| Export | Description |
|--------|-------------|
| `createMcpServer(client, options?)` | Creates an McpServer with the tools, prompts and server instructions registered. `options.toolsets` picks tool groups and the prompts that use them; `options.instructions` replaces the instructions; `options.wrapTool(tool, handler)` returns the handler to register for each tool, for your own logging or permission checks; `options.maxToolInputElements` caps the array elements and object members one tool call may carry (default 10000, `Infinity` turns the check off) |
| `WiroClient` | API client with both auth types; `post(path, body)` calls any Wiro API endpoint with the same credentials, and `isOwnApiKey(value)` says whether a value is this client's key |
| `registerTools(server, client, options?)` | Registers the tools on an McpServer you already have, with the same `toolsets` and `wrapTool` options. That server then lists every tool schema, its own tools included, as JSON Schema 2020-12 |
| `advertiseJsonSchema2020_12(server)` | Makes an McpServer list its tool schemas as JSON Schema 2020-12. Call it when you register single tools from `@wiro-ai/wiro-mcp/tools` instead of using `registerTools` |
| `withJsonSchema2020_12(transport)` | The same for one transport: `await server.connect(withJsonSchema2020_12(transport))` |
| `parseToolsets(value)` | Parse a `WIRO_TOOLSETS`-style list such as `"models,agents"` |

```typescript
// Import specific components
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
import { WiroClient } from '@wiro-ai/wiro-mcp/client';
import { createMcpServer } from '@wiro-ai/wiro-mcp/server';
import { registerTools } from '@wiro-ai/wiro-mcp/tools';

const client = new WiroClient('your-api-key', 'your-api-secret');

// Only the model and workflow tools
const server = createMcpServer(client, { toolsets: ['models', 'workflows'] });

// Or add the model tools to an McpServer you already have
const myServer = new McpServer({ name: 'my-server', version: '1.0.0' });
registerTools(myServer, client, { toolsets: ['models'] });
```

## Environment Variables

| Variable | Required | Description |
|----------|----------|-------------|
| `WIRO_API_KEY` | Yes | Your Wiro project API key |
| `WIRO_API_SECRET` | No | Your Wiro project API secret (for signature auth) |
| `WIRO_API_BASE_URL` | No | Override API base URL (default: `https://api.wiro.ai/v1`) |
| `WIRO_TOOLSETS` | No | Comma-separated tool groups to load: `models`, `workflows`, `agents`, `controls` (default: all) |

## More from Wiro AI

| Repository | What it is |
| --- | --- |
| [Wiro-Plugin](https://github.com/wiroai/Wiro-Plugin) | Wiro AI plugin for Cursor, Claude Code, Gemini CLI, Devin, Antigravity and Kiro |
| [Wiro-Skills](https://github.com/wiroai/Wiro-Skills) | Agent skills for images, image edits, video, music, speech, transcripts, 3D and model search |
| [Wiro-Agent-Connectors](https://github.com/wiroai/Wiro-Agent-Connectors) | MCP connectors for Gmail, Shopify, YouTube, Notion and other services without an official MCP server, [`@wiro-ai/wiro-agent-connectors` on npm](https://www.npmjs.com/package/@wiro-ai/wiro-agent-connectors) |
| [Wiro-LLM](https://github.com/wiroai/Wiro-LLM) | Vercel AI SDK provider for chat, images, speech, transcription and video, [`@wiro-ai/wiro-llm` on npm](https://www.npmjs.com/package/@wiro-ai/wiro-llm) |
| [Wiro-Chromium-Extension](https://github.com/wiroai/Wiro-Chromium-Extension) | Wiro AI extension for Chrome, Edge, Opera and Brave |
| [Wiro-Firefox-Extension](https://github.com/wiroai/Wiro-Firefox-Extension) | Wiro AI add-on for Firefox |
| [Wiro-Safari-Extension](https://github.com/wiroai/Wiro-Safari-Extension) | Wiro AI extension for Safari on the Mac |
| [Swift-QuickStart](https://github.com/wiroai/Swift-QuickStart) | WiroKit, the Wiro AI SDK for iOS |
| [Kotlin-QuickStart](https://github.com/wiroai/Kotlin-QuickStart) | WiroKit, the Wiro AI SDK for Android |
| [Dart-QuickStart](https://github.com/wiroai/Dart-QuickStart) | Wiro AI SDK for Dart and Flutter, [`wiro` on pub.dev](https://pub.dev/packages/wiro) |
| [ReactNative-QuickStart](https://github.com/wiroai/ReactNative-QuickStart) | Wiro AI SDK for React Native and Expo, [`@wiro-ai/wiro-react-native` on npm](https://www.npmjs.com/package/@wiro-ai/wiro-react-native) |
| [Swift-Realtime](https://github.com/wiroai/Swift-Realtime) | Realtime voice AI example for iOS |
| [Kotlin-Realtime](https://github.com/wiroai/Kotlin-Realtime) | Realtime voice AI example for Android |
| [Dart-Realtime](https://github.com/wiroai/Dart-Realtime) | Realtime voice AI example for Flutter |
| [ReactNative-Realtime](https://github.com/wiroai/ReactNative-Realtime) | Realtime voice AI example for React Native |
| [n8n-nodes-wiro](https://github.com/wiroai/n8n-nodes-wiro) | One Wiro AI node for n8n with a searchable model picker, [`@wiro-ai/n8n-nodes-wiro` on npm](https://www.npmjs.com/package/@wiro-ai/n8n-nodes-wiro) |
| [Wiro-Dify-Plugin](https://github.com/wiroai/Wiro-Dify-Plugin) | Wiro AI plugins for Dify: the LLM gateway as a model provider, plus image, video, speech and music tools |
| [Wiro-ComfyUI](https://github.com/wiroai/Wiro-ComfyUI) | Wiro AI nodes for ComfyUI |
| [Wiro-Hermes](https://github.com/wiroai/Wiro-Hermes) | Wiro AI plugins for Hermes Agent: image, video, audio and 3D tools, plus the LLM gateway as a model provider |
| [Wiro-Zed](https://github.com/wiroai/Wiro-Zed) | Wiro AI MCP server extension for Zed |
| [Wiro-Action](https://github.com/wiroai/Wiro-Action) | GitHub Action for Wiro AI models and the LLM gateway, [on the GitHub Marketplace](https://github.com/marketplace/actions/wiro-ai-action) |
| [Wiro-Raycast](https://github.com/wiroai/Wiro-Raycast) | Wiro AI extension for Raycast: image and video generation, LLM chat and model search |
| [Wiro-WordPress](https://github.com/wiroai/Wiro-WordPress) | Wiro AI plugin for WordPress: featured images, image edits, alt text, narration and SEO suggestions |
| [Wiro-Obsidian](https://github.com/wiroai/Wiro-Obsidian) | Wiro AI plugin for Obsidian: images, video, speech, music, transcription and text tools |
| [Wiro-Blender](https://github.com/wiroai/Wiro-Blender) | Wiro AI add-on for Blender: text to 3D, image to 3D and textures |
| [Wiro-Figma](https://github.com/wiroai/Wiro-Figma) | Wiro AI plugin for Figma: images, vectors, image edits and text |
| [Wiro-Next-Starter](https://github.com/wiroai/Wiro-Next-Starter) | Next.js starter for Wiro AI: Playground, image, video and audio tools, and LLM chat, ready for Vercel and Railway |
| [Wiro-Docs](https://github.com/wiroai/Wiro-Docs) | Source of the Wiro AI API docs |
| [wiroai.github.io](https://wiroai.github.io) | Every open-source project from Wiro AI on one page, with a page for each repository |

[Website](https://wiro.ai) · [Models](https://wiro.ai/models) · [Docs](https://wiro.ai/docs) · [X](https://x.com/wiroai)

## License

MIT, see [LICENSE](./LICENSE).

TDQS

A3.8/5.0

Scored across 59 tools

Disambiguation3/5

Most tools target distinct resources and actions, and the long descriptions clarify boundaries. However, the large surface contains several adjacent tools that can be confused, especially model discovery tools (search_models, recommend_model, explore) and the many task/run status/wait/cancel tools.

Naming Consistency4/5

Names are consistently snake_case and mostly follow a verb_noun pattern with predictable prefixes such as get_, list_, manage_, set_, connect_, and delete_. The main minor deviation is the bare verb 'explore', plus some very long compound names, but the overall convention is clear.

Tool Count1/5

With 59 tools, the server is far beyond the typical well-scoped range of 3-15 tools and exceeds even the 25+ heavy threshold. Although Wiro is a broad platform, the tool surface is fragmented enough that selection burden is a serious issue.

Completeness4/5

Coverage is broad across models, tasks, workflows, agents, connectors, billing, controls, files, and docs, with strong lifecycle support for most resources. Minor gaps remain, such as no obvious workflow-run cancellation tool and limited project/file lifecycle operations beyond upload.

Maintenance

ActivityActive
ResponsivenessLimited data