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
  • prompt listing/fetching

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/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


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.2.tar.gz (33.0 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.2-py3-none-any.whl (26.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcat_cli-0.1.2.tar.gz
  • Upload date:
  • Size: 33.0 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.2.tar.gz
Algorithm Hash digest
SHA256 73595eda7c22ca144bd06e5fabf4a6d49887169646449be04300992bf768f848
MD5 26f30638a99da281a1586ef2e3bda036
BLAKE2b-256 9b48ab7c98adf22702d79d413b79c06d6c38ba30a587af16982ecc1a1500278f

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mcat_cli-0.1.2-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

Hashes for mcat_cli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9da44f70ddef6193ff385be548519e25ba961ecfd0496f7f8aa8afacf43585c9
MD5 732c165150bbfbd86b1e986f67296793
BLAKE2b-256 02401405604abdeaf653f52a88d26684aaa5d7ff244cc39016ab5e3991451ff0

See more details on using hashes here.

Provenance

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