Skip to main content

ChatterMate CLI & MCP server

chattermate-cli provides a command-line client and an MCP (Model Context Protocol) server for ChatterMate. A human can sign up, log in and configure agents, workflows and knowledge from the terminal; an AI agent can do the same through the MCP server.

This is an enterprise feature and depends on the enterprise backend's Personal Access Tokens (PATs).

Install

pip install -e .            # from this directory, for development
# or, once published:
pipx install chattermate-cli

Console scripts installed: chattermate (alias cmate) and chattermate-mcp.

Configure the API endpoint

By default the CLI talks to the hosted API at https://api.chattermate.chat. To target a local or self-hosted backend, set CHATTERMATE_API_URL=http://localhost:8000 (or pass --api-url). Resolution order: --api-url flag → CHATTERMATE_API_URL env → stored config → https://api.chattermate.chat.

Quick start (human)

# Create an organization + admin (community signup), or log in to an existing one
chattermate signup
chattermate login --email you@acme.com

chattermate whoami

# Mint a long-lived Personal Access Token for CI / AI agents (shown once!)
chattermate token create laptop-cli
chattermate token list
chattermate token revoke <token-id>

# Configure resources
chattermate agent list
chattermate agent create --name "Support" --type CUSTOMER_SUPPORT -i "Be concise"
chattermate workflow get <agent-id>
chattermate workflow create --agent-id <agent-id> --name "Onboarding"
chattermate knowledge add-url --website https://docs.acme.com --agent-id <agent-id>
chattermate knowledge status <queue-id>

Every command accepts --json for machine-readable output.

Authentication

Two credentials are supported:

  • Personal Access Token (cmat_...) — preferred for non-interactive use. Pass it via the CHATTERMATE_TOKEN environment variable. Long-lived and revocable.
  • JWT login — chattermate login stores access + refresh tokens in ~/.chattermate/config.json (mode 600) and refreshes automatically.

MCP server (AI agents)

chattermate-mcp is a stdio MCP server. Point your MCP client at it with a PAT:

{
  "mcpServers": {
    "chattermate": {
      "command": "uvx",
      "args": ["--from", "chattermate-cli", "chattermate-mcp"],
      "env": {
        "CHATTERMATE_TOKEN": "cmat_...",
        "CHATTERMATE_API_URL": "https://your-chattermate-host"
      }
    }
  }
}

chattermate token create prints a ready-to-paste version of this snippet.

Tools

Read-only: whoami, list_agents, get_agent, get_workflow, get_workflow_nodes, list_knowledge, get_ingestion_status.

Mutating: create_agent, update_agent, create_workflow, update_workflow, update_workflow_nodes, add_knowledge_url, link_knowledge, unlink_knowledge.

Tests

pip install -e ".[test]"
pytest tests/

Metadata

Release files for chattermate-cli 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chattermate-cli 0.4.0
File Size Uploaded Provenance Actions
chattermate_cli-0.4.0.tar.gz 22.5 kB Without provenance Details for chattermate_cli-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chattermate-cli 0.4.0
File Interpreter ABI Platform Actions
chattermate_cli-0.4.0-py3-none-any.whl Python 3 none any Details for chattermate_cli-0.4.0-py3-none-any.whl

Total release size: 52.0 kB

Release files / chattermate_cli-0.4.0.tar.gz

Download URL chattermate_cli-0.4.0.tar.gz
Size 22.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6494ac1c6cf055f9a08681f39b0d1737adf54cd4990f28330aad30d43901374b
BLAKE2b-256 checksum
How to use checksums
1ea9cbfb572eeb23164e61f54d9c15eb49c259552b1372f60427852e7935b761
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Release files / chattermate_cli-0.4.0-py3-none-any.whl

Download URL chattermate_cli-0.4.0-py3-none-any.whl
Size 29.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
59bd5a71677939f90d921588a0439014210b83d207ec821516f67dbd17c76ea2
BLAKE2b-256 checksum
How to use checksums
486a4d7e24bf1b10ca0a44c0f5657c47bf730647cf02fffe6cfb55aba899d9de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.9

Security for chattermate-cli 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page