Skip to main content

MCP Tools

Build AI agents that can browse, search, and purchase from online stores using MCP tools and the Colter HTTP server.

TL;DR: Start the MCP server with colter mcp, connect your MCP host, then call colter.agent.workflow or colter.check. Use colter serve when you need local HTTP protocol endpoints in addition to MCP.

Colter MCP tools return structured JSON designed for AI agents. Prefer the MCP surface when an agent needs deterministic tool calls instead of parsing prose docs.

Install

npm install -g @getcolter/cli
colter --version

MCP Setup

Claude Desktop example:

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

With admin tools enabled:

{
  "mcpServers": {
    "colter": {
      "command": "colter",
      "args": ["mcp", "--admin-tools"]
    }
  }
}

Manual launch:

colter mcp

Tool Families

Agent Commerce

Call colter.agent.workflow first, then follow the recommended sequence.

ToolPurpose
colter.agent.workflowReturn the recommended call sequence
colter.agent.discoverDiscover store capabilities and protocols
colter.agent.products.searchSearch the product catalog
colter.agent.cart.createCreate a cart
colter.agent.cart.addAdd items to a cart
colter.agent.cart.quotePrice the current cart
colter.agent.checkout.initiateStart checkout
colter.agent.checkout.completeComplete or cancel checkout
colter.agent.receipt.getFetch the receipt

Verification

ToolPurpose
colter.checkFast readiness scan
colter.fixGenerate a fix plan
colter.testRun persona-based interaction tests
colter.verify.runFull conformance plus Evidence Pack
colter.verify.readinessReadiness-only verification
colter.verify.reportRender a human-readable pack summary
colter.verify.diffCompare two packs
colter.replay.runReplay a pack
colter.pack.createCreate a pack without the full suite

Admin

These require --admin-tools.

ToolPurpose
colter.scoutDetect platform details and generate config
colter.configureUpdate configuration
colter.config.getRead config values
colter.config.schemaInspect valid keys and types
colter.validateValidate configuration
colter.infoPrint diagnostics

Local HTTP Runtime

Start both HTTP and MCP:

colter serve

HTTP only:

colter serve --http-only

MCP only:

colter serve --mcp-only

Custom port:

colter serve --port 8080

Typical Agent Flow

workflow -> discover -> search -> cart.create -> cart.add -> cart.quote -> checkout.initiate -> checkout.complete -> receipt.get

Security Notes

  • Payment credentials are not stored in the docs flow.
  • Admin tools stay behind --admin-tools.
  • Evidence Packs redact sensitive values automatically.

Next Steps