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.5.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.5.0
File Size Uploaded Provenance Actions
chattermate_cli-0.5.0.tar.gz 24.7 kB Without provenance Details for chattermate_cli-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 57.1 kB

Release files / chattermate_cli-0.5.0.tar.gz

Download URL chattermate_cli-0.5.0.tar.gz
Size 24.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9127d1708869a3178899ebb34f902fc8d7493d64c23996765c717333f6b0e7aa
BLAKE2b-256 checksum
How to use checksums
b5cbbce6b6fa513d1728087d46573553aed98b29026a20f0b65041a3a146da9b
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.5.0-py3-none-any.whl

Download URL chattermate_cli-0.5.0-py3-none-any.whl
Size 32.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c18a630b0489fe8ff27052394f594472cac288f6a578b121e23f52a0913a69ad
BLAKE2b-256 checksum
How to use checksums
0d80e398acdb820bf6d77d00cb5d914e9b075c691dbdaed8602bd96692c7ce5e
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.5.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