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.5.tar.gz (35.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.5-py3-none-any.whl (28.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mcat_cli-0.1.5.tar.gz
  • Upload date:
  • Size: 35.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.5.tar.gz
Algorithm Hash digest
SHA256 2faecf0c69e66718d650dcfdf1b171ae3a866bcefa537e0ff72ab9fd7dce288f
MD5 41e63bd54e5d33a28a9fa4681acfe284
BLAKE2b-256 cf11539cff0b24a2ad38768c879b72968bc46e6d869e3d4e1b51897085cde0bd

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: mcat_cli-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 28.0 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 270ffe345ef75498f5a9fedfd9bb52ff881c344c016adc110cd374b351013e4c
MD5 a36b8fcc1a112ec74f6443b3f1eccc33
BLAKE2b-256 127de86e9dd05f4123f9a79952ce5d29a78d89613e08aeef16f957f94f8430fc

See more details on using hashes here.

Provenance

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