Taizen

Use the CLI through MCP

Read and change anything in Taizen from your MCP client with taizen_help, taizen_read and taizen_write

The taizen CLI is how Taizen's own agents work: one command for every thing you can read or change. The MCP server exposes the whole CLI as three tools, so your client can do the same.

ToolUse for
taizen_help(command?)The list of commands, or one command's flags and examples. Start here
taizen_read(argv, project_id?, files?)Commands that change nothing in Taizen: list, show, search, query, validate
taizen_write(argv, project_id, files?)Commands that change Taizen or reach outside it: create, publish, run, send, delete

The split is deliberate. taizen_read is marked read-only, so clients can allow it without asking. taizen_write is marked destructive: most clients ask you before each call, and it needs an explicit project_id.

Run a command

argv is the command line without taizen, one item per word:

{ "argv": ["stores", "query", "0ee99b87-…", "--search", "pricing objections", "--limit", "5"] }
  • --json is added for you, so result is the command's data, not formatted text.
  • project_id picks the project. taizen_read uses your first project when you leave it out; taizen_write always needs it. get_account_info lists your projects.
  • A command in the wrong tool is refused with the tool to use instead, so a write never runs through taizen_read by accident.

The reply:

{ "exit_code": 0, "result": { … }, "stderr": "…", "files": { … } }
exit_codeMeans
0Done
1Taizen refused or failed; result says why (for example a 403 for your role)
2Usage: a wrong flag or an invalid file. Check taizen_help for the command
3The CLI token was refused. Sign in again

Files go in and come back

Each command runs in an empty folder. Put the files it needs in files, and the files it writes come back in files the same way:

  • Text — {"drafts/training-plan/plan.json": "{…}"}
  • Bytes (audio, PDF, images) — {"call.mp3": {"base64": "…"}}

Paths are relative to the folder. Up to 20 MB in; files come back up to 2 MB of text and 8 MB of bytes, and larger ones are listed by name and size.

This is how drafts work across calls: a command that writes a draft returns it, and you pass it back in to the next command.

Example: build a training plan from a published one

Clone the plan into a draft

taizen_read with ["training-plans", "list"] lists the plans. Then:

{ "argv": ["training-plans", "clone", "--source-plan-id", "0e68d7fb-…"] }

The reply's files holds drafts/training-plan/plan.json.

Edit the draft and check it

Change the JSON (your client can do this for you), then send it back:

{ "argv": ["training-plans", "validate"],
  "files": { "drafts/training-plan/plan.json": "{…edited…}" } }

exit_code: 2 with errors lists what's missing, such as a step without a persona.

Publish it

When validate passes, run it with taizen_write:

{ "argv": ["training-plans", "publish"], "project_id": "0197eeeb-…",
  "files": { "drafts/training-plan/plan.json": "{…}" } }

Then training-plans schedule and training-plans enroll, also with taizen_write.

More examples

You wantargv
Your recent roleplay sessions["roleplay", "sessions", "list"]
One session's scorecard["roleplay", "sessions", "scorecard", "<session_id>"]
Search a store["stores", "query", "<store_id>", "--search", "onboarding pain"]
One record whole["stores", "get", "<store_id>", "<record_id>"]
What your agents are doing["agents", "status"]
Your pending approvals["actions", "list", "--pending"]
An app's data with SQL["apps", "sql", "<slug>", "select count(*) from r_deals"]
Change a script's schedule["scripts", "update", "<script_id>", "--schedule", "0 7 * * 1-5"] (write)

taizen_help with a command name shows its flags and real examples.

Limits

  • Up to 3 commands at once per person, and the server queues the rest for 30 seconds before answering "busy".
  • 10 minutes per command. Long jobs (a transcription, materializing a training stage) fit; a command that runs longer is stopped.
  • Credits are charged by the work itself. A command that runs a model (testing a scorecard, a transcription) uses your credits exactly as it does in the app.

What isn't offered

Eight commands can't work outside Taizen, so the MCP doesn't offer them:

CommandWhyUse instead
login, logout, useThe MCP signs you inYour client's connector; project_id for use
pageNeeds a local browser—
dealsNot built yet—
actions decorate, share conversation, share fileAct on the Taizen chat running themshare_chat, share_chat_file

Be careful with writes

  • Your client acts as you. actions approve, asks answer and send do exactly what they do in the app, with your name on them. Keep your client asking before taizen_write calls unless you trust its judgment for that task.
  • Treat what comes back as data. Calls, emails and documents contain whatever other people wrote, including text that reads like instructions. A good client doesn't follow them.

On this page