The model-context access tool for agents and humans
Project description
mcat-cli
The model-context access tool for agents and humans.
mcat is a concise CLI for:
- OAuth authorization against MCP servers
- MCP session initialization
- tool listing/calling
- resource listing/reading
- prompt listing/fetching
Install
pip install mcat-cli
Requires Python 3.11+.
Quick Start
- Start OAuth authorization:
mcat auth start https://your-mcp-server.example/mcp \
-k token.json \
--state auth.json
This returns a pending result with action details (URL/code).
Use --wait if you want to block until completion.
- Complete authorization and store token:
mcat auth continue --state auth.json -k token.json
If token.json already exists, add -o/--overwrite.
- Initialize an MCP session:
mcat init https://your-mcp-server.example/mcp -k token.json -o session.json
- Call MCP tools/resources/prompts:
mcat tool list -s session.json
mcat tool call my_tool -i '{"foo":"bar"}' -s session.json
mcat resource list -s session.json
mcat resource list-template -s session.json
mcat resource read my://resource -s session.json
mcat prompt list -s session.json
mcat prompt get summarize -i '{"topic":"release notes"}' -s session.json
KEY_REF Formats
-k/--key-ref accepts:
env://VAR.env://path:VAR.env://:VAR(shortcut for.env://.env:VAR)json://path- bare file path (same as
json://path)
For auth flows, token output is written back to --key-ref.
- Missing destination is allowed (first-time auth).
- Existing destination requires
-o/--overwrite.
Output Contract
Most commands write compact JSON to stdout:
{"ok":true,"result":{}}
{"ok":false,"error":"message"}
Exception: mcat resource read ... -o - writes decoded bytes to stdout.
Logging
Logs are opt-in:
mcat --log auth --log-stderr auth start ...
mcat --log app --log mcp --log-file mcat.log tool list -s session.json
Project details
Release history Release notifications | RSS feed
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 mcat_cli-0.1.4.tar.gz.
File metadata
- Download URL: mcat_cli-0.1.4.tar.gz
- Upload date:
- Size: 33.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b8fe21b58b74261281a83d9a7e10313b41f404faebdbd948257c167d1bec176
|
|
| MD5 |
5ce8195b3902ca43beda53ae6c35d47f
|
|
| BLAKE2b-256 |
70b59b5b44db66db26fd70a0ce04d3e8d160cf971db6dfddf15913ceaa342790
|
Provenance
The following attestation bundles were made for mcat_cli-0.1.4.tar.gz:
Publisher:
publish.yml on briceyan/mcat-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcat_cli-0.1.4.tar.gz -
Subject digest:
9b8fe21b58b74261281a83d9a7e10313b41f404faebdbd948257c167d1bec176 - Sigstore transparency entry: 1003359929
- Sigstore integration time:
-
Permalink:
briceyan/mcat-cli@c02edcb033cfb8af0beb49e5ed100bd563a794f7 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/briceyan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c02edcb033cfb8af0beb49e5ed100bd563a794f7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mcat_cli-0.1.4-py3-none-any.whl.
File metadata
- Download URL: mcat_cli-0.1.4-py3-none-any.whl
- Upload date:
- Size: 26.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2066c611452efa5b0f47240142b0b1edf0fceee2cf27dd7e1a8483b0c076fbdf
|
|
| MD5 |
1ffd11554d41d5036df8e42218f5493a
|
|
| BLAKE2b-256 |
8dc2a49de55f6a7f5c506bec76bec587bda27574e1cadfc2f5af0b296a87db87
|
Provenance
The following attestation bundles were made for mcat_cli-0.1.4-py3-none-any.whl:
Publisher:
publish.yml on briceyan/mcat-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcat_cli-0.1.4-py3-none-any.whl -
Subject digest:
2066c611452efa5b0f47240142b0b1edf0fceee2cf27dd7e1a8483b0c076fbdf - Sigstore transparency entry: 1003359944
- Sigstore integration time:
-
Permalink:
briceyan/mcat-cli@c02edcb033cfb8af0beb49e5ed100bd563a794f7 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/briceyan
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@c02edcb033cfb8af0beb49e5ed100bd563a794f7 -
Trigger Event:
push
-
Statement type: