ChatterMate CLI and MCP server — sign up, authenticate, and configure agents, workflows and knowledge from the terminal or an AI agent.
Project description
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/
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file chattermate_cli-0.2.4.tar.gz.
File metadata
- Download URL: chattermate_cli-0.2.4.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9019b6398a4b44090960aa46ce791d51944f2faea83790d243bb31c4d5f78d8
|
|
| MD5 |
f52c428454af35d716959937dbd2fbeb
|
|
| BLAKE2b-256 |
9b3a4d091826ee3c5f3ea331648b9c8501761bc6d681e4d5dff9c9979f32b3a5
|
File details
Details for the file chattermate_cli-0.2.4-py3-none-any.whl.
File metadata
- Download URL: chattermate_cli-0.2.4-py3-none-any.whl
- Upload date:
- Size: 22.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c62f7fb3030639319398657d69aa7c80edc231ada4cbcb1f2ff226547b0209d
|
|
| MD5 |
097e357d47c770c6ea2be9c53a24fb2d
|
|
| BLAKE2b-256 |
7f90c31b3593e76ad23976f584f796bd368052f8bda4541a18aafbca94eddcf4
|