Skip to main content

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

Install

pip install mcat-cli

Requires Python 3.11+.

Quick Start

  1. 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.

  1. Complete authorization and store token:
mcat auth continue --state auth.json -k token.json

If token.json already exists, add -o/--overwrite.

  1. Initialize an MCP session:
mcat init https://your-mcp-server.example/mcp -k token.json -o session.json
  1. Call MCP tools/resources:
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

KEY_REF Formats

-k/--key-ref accepts:

  • env://VAR
  • .env://path: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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcat_cli-0.1.1.tar.gz (31.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcat_cli-0.1.1-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

Details for the file mcat_cli-0.1.1.tar.gz.

File metadata

  • Download URL: mcat_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 31.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcat_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 865b06d207b0181324c5d50ee8766e9a4e7901902ae242b42455aecd980ebf88
MD5 cb416e269748ce7f69e815b566d4d846
BLAKE2b-256 1d0fdfd8a15066016a427900d09ff6b4938a93525fe68793ee9bb255ff44615a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcat_cli-0.1.1.tar.gz:

Publisher: publish.yml on briceyan/mcat-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcat_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mcat_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 25.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for mcat_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9df56a137b6159ca1775936408e1b1f1b0aef132d9976bcc44c8ae90bd958222
MD5 68698897461540fc03d38d9037d9081c
BLAKE2b-256 4dfd236b9a445e73ddb6e89d3875474b41661c36e6b16082385b3872b933f900

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcat_cli-0.1.1-py3-none-any.whl:

Publisher: publish.yml on briceyan/mcat-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page