Claude Code Plugin
The Jetty plugin for Claude Code gives you two slash commands — /jetty-setup for first-time onboarding and /jetty for managing workflows with natural language.
Install
claude plugin marketplace add jettyio/agent-skill
claude plugin install jetty@jetty
First-Time Setup (/jetty-setup)
Run /jetty-setup and the plugin will walk you through:
- Account — Sign up or log in at flows.jetty.io
- API token — Create a token at Settings → API Tokens and paste it in
- Provider API key — Choose OpenAI or Google Gemini and store the key in your collection
- Demo workflow — Deploys and runs the "Cute Feline Detector" (image generation + LLM-as-judge)
The setup takes about 3–5 minutes and leaves you with a working collection and a deployed workflow.
Where the Token Goes
The plugin stores your token in your project's CLAUDE.md:
I have a production jetty api token mlc_xxxxxxxxxxxxx
This lets the agent use the token automatically in future sessions.
If your CLAUDE.md is checked into git, add it to .gitignore or use a project-level .claude/settings.json instead. API tokens should not be committed to version control.
Managing Workflows (/jetty)
After setup, use /jetty followed by what you want to do:
/jetty list my tasks
/jetty create a workflow that compares GPT-4o and Claude on summarization
/jetty run cute-feline-detector with prompt "a penguin wearing a top hat"
/jetty show me the last 5 runs of cute-feline-detector
/jetty what step templates are available for image generation?
The /jetty command has access to all 14 MCP tools under the hood — it can create tasks, run workflows, inspect trajectories, add labels, and more.
Tips
- Token inline: The agent always inlines the token in
curlcommands (TOKEN="mlc_..."then$TOKEN). Environment variables don't persist across shell invocations in Claude Code. - Two APIs: The agent routes to the right API automatically —
dock.jetty.iofor collections/tasks,flows-api.jetty.iofor running workflows and viewing results. - Batch scripts: For complex multi-step bash commands, the agent writes to
/tmp/script.shand runs it — this avoids zsh escaping issues. - Polling: Workflows take 30–45 seconds. The agent waits, then polls trajectories for results.
What's Happening Under the Hood
The plugin uses Jetty's MCP server, which provides these tools:
| Tool | Purpose |
|---|---|
list-collections | List your collections |
list-tasks / get-task | Browse and inspect tasks |
create-task / update-task | Create or modify workflow definitions |
run-workflow / run-workflow-sync | Execute workflows (async or sync) |
list-trajectories / get-trajectory | View workflow run results |
get-stats | Execution statistics |
add-label | Tag trajectories with labels |
list-step-templates / get-step-template | Browse available activities |
For details on each tool, see the MCP Server page.
Next Steps
- Agent Recipes — Copy-paste workflows to try
- Common Gotchas — Parameter mismatches and API quirks
- Step Library — All available workflow activities