media-context (mctx)

v0.1.2
io.github.mollymogi/media-context Checked 4 days ago Published 17 days ago

Keep images, video & audio out of coding agent contexts — local FFmpeg + zero extra API cost.

Values you need

VariableWhat it is
MCTX_FALLBACK_CHAINoptional Optional comma-separated fallback chain, e.g. agy:gemini-4-neon-medium,claude:sonnet,codex
MCTX_COOLDOWN_SECONDSoptional Cooldown duration in seconds after quota/capacity failures (default: 300)

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add media-context -- uvx --from media-context==0.1.2 mctx mcp
Add to claude_desktop_config.json
{
  "mcpServers": {
    "media-context": {
      "args": [
        "--from",
        "media-context==0.1.2",
        "mctx",
        "mcp"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "media-context": {
      "args": [
        "--from",
        "media-context==0.1.2",
        "mctx",
        "mcp"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "media-context": {
      "args": [
        "--from",
        "media-context==0.1.2",
        "mctx",
        "mcp"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.media-context]
command = "uvx"
args = ["--from", "media-context==0.1.2", "mctx", "mcp"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: media_probe, media_sheet, media_shrink, media_inspect, media_transcribe, media_stats.
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json