Hermes
This quickstart shows how to connect Hermes to Swytchcode using the CLI and MCP setup.
Step-by-step setup
Step 1: Install the Swytchcode CLI
npm install -g swytchcodeirm https://cli.swytchcode.com/install.ps1 | iexcurl -fsSL https://cli.swytchcode.com/install.sh | shUse swy as a shorter alias for swytchcode.
Step 2: Initialize Swytchcode for Hermes
cd /path/to/your/projectswy init --editor=hermes --mode=sandboxThis creates:
.swytchcode/withtooling.json— the trust boundary that lists exactly which tools Hermes is allowed to callAGENTS.mdin the repo root — the agent contract file describing available tools and conventions for Hermes to follow~/.hermes/config.yamlwith the MCP server configuration
Step 3: Fetch an integration
Search for available integrations (or browse the full list at swytchcode.com/apis):
swy searchFetch one, such as Stripe:
swy get stripeStep 4: Add tools to the trust boundary (tooling.json)
Add a specific method:
swy add method stripe.charge.createAdd a workflow:
swy add workflow stripe.checkoutOr add everything from a project:
swy add method --all stripeVerify the added tools:
swy list toolingNote: Hermes supports separate add method and add workflow commands, and these are also exposed as MCP tools such as swytchcode_add and swytchcode_add_workflow.
Step 5: Start the MCP server
The MCP server starts automatically when Hermes connects through the config written during initialization. If you want to start it manually:
swy mcp serveStep 6: Use Hermes
Open your project in Hermes. The agent now has access to the Swytchcode MCP tools, including workflow-aware tooling.
You can ask prompts such as:
List all available Stripe methods and create a charge.Hermes will:
- call
swytchcode_listwith thetoolingfilter to confirm enabled tools - call
swytchcode_infoto inspect schemas - generate runtime code that uses
swy exec