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 theCHATTERMATE_TOKENenvironment variable. Long-lived and revocable. - JWT login —
chattermate loginstores access + refresh tokens in~/.chattermate/config.json(mode600) 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.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| chattermate_cli-0.6.0.tar.gz | 31.4 kB | Without provenance | Details for chattermate_cli-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| chattermate_cli-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for chattermate_cli-0.6.0-py3-none-any.whl |
Total release size: 70.8 kB
Release files / chattermate_cli-0.6.0.tar.gz
| Download URL | chattermate_cli-0.6.0.tar.gz |
|---|---|
| Size | 31.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f6fcb5ce889538d60ab7c19cd96fc05ce9ff4261d7995b7176a8bbeb9d8cb2f
|
|
BLAKE2b-256 checksum How to use checksums |
ef60de03cea00e4dc718dfcdee8594f5bb34f72021a009077d6779df89a02069
|
| 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.6.0-py3-none-any.whl
| Download URL | chattermate_cli-0.6.0-py3-none-any.whl |
|---|---|
| Size | 39.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb2e89163e2c5c945128f396c9c0072138ac460706a7c909b9afa503cec4884b
|
|
BLAKE2b-256 checksum How to use checksums |
7b5aa9e90c797b138ead41f84959a18a4018dcc78a915ce9eb7be672ac304ee4
|
| 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.6.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.