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.0.tar.gz (31.1 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.0-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcat_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 31.1 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.0.tar.gz
Algorithm Hash digest
SHA256 c1b0f2b42525ec21f5489f96bdc6f24b8151a84e15668795cfd6e4c0fdf0cbc7
MD5 f131289466ca9dc5ae8cd6ff653ada9c
BLAKE2b-256 89896910f996fd233f44b324df572ced5429a75cf92cbf8aa1dffb44bbaa55c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcat_cli-0.1.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: mcat_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 95d567316bed0daa1e3942e7dbac22f46293e61554f6981664e755138878a78f
MD5 4c01099da2e234b9bcd1eaaa50907a28
BLAKE2b-256 5d502d70d6df6a267c72995f19350fbc9f5a193d771a74856a9026a51da95e11

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcat_cli-0.1.0-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