# mcpc command reference Complete `--help` output for every `mcpc` command, in the order the commands are listed by `mcpc --help`. It is generated from the CLI itself, so it always matches the installed version — run `mcpc help ` to get the same text in your terminal. New to mcpc? Start with the [README](../README.md), or run `mcpc help --skill` for the agent guide. - [`mcpc connect`](#mcpc-connect) - [`mcpc close`](#mcpc-close) - [`mcpc restart`](#mcpc-restart) - [`mcpc login`](#mcpc-login) - [`mcpc logout`](#mcpc-logout) - [`mcpc clean`](#mcpc-clean) - [`mcpc grep`](#mcpc-grep) - [`mcpc x402`](#mcpc-x402) - [`mcpc x402 init`](#mcpc-x402-init) - [`mcpc x402 import`](#mcpc-x402-import) - [`mcpc x402 remove`](#mcpc-x402-remove) - [`mcpc x402 sign`](#mcpc-x402-sign) - [`mcpc help`](#mcpc-help) - [`mcpc @`](#mcpc-session) - [`mcpc @ close`](#mcpc-session-close) - [`mcpc @ restart`](#mcpc-session-restart) - [`mcpc @ grep`](#mcpc-session-grep) - [`mcpc @ tools-list`](#mcpc-session-tools-list) - [`mcpc @ tools-get`](#mcpc-session-tools-get) - [`mcpc @ tools-call`](#mcpc-session-tools-call) - [`mcpc @ tasks-list`](#mcpc-session-tasks-list) - [`mcpc @ tasks-get`](#mcpc-session-tasks-get) - [`mcpc @ tasks-result`](#mcpc-session-tasks-result) - [`mcpc @ tasks-cancel`](#mcpc-session-tasks-cancel) - [`mcpc @ prompts-list`](#mcpc-session-prompts-list) - [`mcpc @ prompts-get`](#mcpc-session-prompts-get) - [`mcpc @ completion-complete`](#mcpc-session-completion-complete) - [`mcpc @ resources-list`](#mcpc-session-resources-list) - [`mcpc @ resources-read`](#mcpc-session-resources-read) - [`mcpc @ resources-subscribe`](#mcpc-session-resources-subscribe) - [`mcpc @ resources-unsubscribe`](#mcpc-session-resources-unsubscribe) - [`mcpc @ resources-templates-list`](#mcpc-session-resources-templates-list) - [`mcpc @ resources-directory-read`](#mcpc-session-resources-directory-read) - [`mcpc @ skills-list`](#mcpc-session-skills-list) - [`mcpc @ skills-get`](#mcpc-session-skills-get) - [`mcpc @ logging-set-level`](#mcpc-session-logging-set-level) - [`mcpc @ ping`](#mcpc-session-ping) - [`mcpc @ server-discover`](#mcpc-session-server-discover) - [`mcpc @ logs`](#mcpc-session-logs) ## `mcpc` ```text Usage: mcpc [<@session>] [] [options] Universal command-line client for the Model Context Protocol (MCP). Commands: connect [] [@session] Connect to an MCP server and start a new named @session close <@session> Close a session restart <@session> Restart a session (losing all state) login Log in to a server and save an OAuth profile logout Delete an OAuth profile for a server clean [resources...] Clean up mcpc data (sessions, profiles, logs, all) grep Search tools and instructions across all active sessions x402 [subcommand] [args...] Configure an x402 payment wallet (EXPERIMENTAL) help [command] [subcommand] Show help for a command Options: --json Output in JSON format for scripting --verbose Enable debug logging --profile OAuth profile for the server ("default" if not provided) --timeout Request timeout in seconds (default: 60) --max-chars Truncate output to n characters (ignored in --json mode) --insecure Skip TLS certificate verification (for self-signed certs) -v, --version Output the version number -h, --help Display help MCP session commands (after connecting): <@session> Show MCP server info, capabilities, and tools overview <@session> grep Search tools and instructions <@session> tools-list List all server tools <@session> tools-get Get tool details and schema <@session> tools-call [arg:=val ... | | tasks-list <@session> tasks-get <@session> tasks-result <@session> tasks-cancel <@session> prompts-list <@session> prompts-get [arg:=val ... | | completion-complete prompt|resource | <@session> resources-list <@session> resources-read [-o | --raw] <@session> resources-subscribe <@session> resources-unsubscribe <@session> resources-templates-list <@session> resources-directory-read <@session> skills-list <@session> skills-get [file] [--raw] <@session> logging-set-level <@session> ping <@session> server-discover <@session> logs [-n N] [--follow] [--since 1h] Run "mcpc" without arguments to show active sessions and OAuth profiles. Run "mcpc --json" to get the same data as `{ sessions: [...], profiles: [...] }`. Agent guide: mcpc help --skill ``` ## `mcpc connect` ```text Usage: mcpc connect [] [@session] [options] Connect to an MCP server and start a new named @session Options: -H, --header
HTTP header (can be repeated) --profile OAuth profile to use ("default" if skipped) --no-profile Skip OAuth profile (connect anonymously) --proxy <[host:]port> Start proxy MCP server for session --proxy-bearer-token Require authentication for access to proxy server --stdio Launch all local stdio servers from selected config files --protocol-version Pin the MCP protocol version (see below) --x402 [scheme] Enable x402 auto-payment (see below) --x402-budget Most the session may pay with x402 (see below) --json Output in JSON format Server formats: mcp.apify.com Remote HTTP server (https:// auto-added) ~/.vscode/mcp.json:puppeteer Config file entry (file:entry) ~/.vscode/mcp.json Config file — bulk connect every entry (no server) Auto-discover configs and connect everything Stdio entries run a local command on connect, so only use configs you trust. Bulk connects skip them; pass --stdio to include them. Auto-discovery: Without , mcpc finds MCP config files in ./ and ~ and bulk connects every entry: .mcp.json, mcp.json, mcp_config.json, .cursor/mcp.json, .vscode/mcp.json, .kiro/settings/mcp.json, ~/.claude.json, ~/.codeium/windsurf/mcp_config.json, plus VS Code & Claude Desktop configs. For security, configs in ./ are untrusted: entries that reference ${VAR} are skipped and -H is refused. To connect those: mcpc connect ./.mcp.json Session name: Omit @session to auto-generate from the server (mcp.apify.com → @apify) or config entry. Matching sessions (same server, profile, header keys) are reused. Bulk connects don't accept @session. A name stays bound to its server: to connect another server under an existing name, close that session first (mcpc @session close). Protocol version: mcpc negotiates the newest MCP version both sides support, from 2026-07-28 down to 2024-10-07. Pass --protocol-version to pin one exact version instead — the connection fails if the server does not offer it. x402 payments (experimental): --x402 pays for paid tool calls from the wallet set up with: mcpc x402 Schemes: auto (default, prefers upto), upto, exact. The session pays at most --x402-budget in total (default: $10), in USDC only, and only for tool calls. Not available with config auto-discovery. For more info, run: mcpc help x402 Output: For a single server, shows session, server info, capabilities, and tools. Bulk connects list every session with its state, then a summary. JSON output (--json): Array of `InitializeResult` or `DiscoverResult` objects extended with `toolNames` and `_mcpc`: `[{ protocolVersion?, supportedVersions?, capabilities?, serverInfo?, instructions?, _meta?, toolNames?, _mcpc: { ... } }]` Schema: https://modelcontextprotocol.io/specification/2025-11-25/schema#initializeresult https://modelcontextprotocol.io/specification/2026-07-28/schema#discoverresult ``` ## `mcpc close` ```text Usage: mcpc close <@session> [options] Close a session Options: --json Output in JSON format JSON output (--json): `{ sessionName, closed: true }` ``` ## `mcpc restart` ```text Usage: mcpc restart <@session> [options] Restart a session (losing all state) Options: --json Output in JSON format Output: After restarting, shows session, server info, capabilities, and tools. JSON output (--json): `InitializeResult` or `DiscoverResult` object extended with `toolNames` and `_mcpc`: `{ protocolVersion?, supportedVersions?, capabilities?, serverInfo?, instructions?, _meta?, toolNames?, _mcpc: { ... } }` Schema: https://modelcontextprotocol.io/specification/2025-11-25/schema#initializeresult https://modelcontextprotocol.io/specification/2026-07-28/schema#discoverresult ``` ## `mcpc login` ```text Usage: mcpc login [options] Log in to a server and save an OAuth profile Options: --profile Profile name (default: "default") --scope OAuth scopes to request (e.g. --scope "read write") --grant Grant: authorization-code (default), client-credentials, id-jag --client-metadata-url HTTPS URL of an OAuth CIMD (default: mcpc CIMD) --no-client-metadata-url Disable CIMD; force DCR on CIMD-capable servers --client-name Client name to register with DCR (default: mcpc) --client-id Pre-registered OAuth client ID (skips CIMD and DCR) --client-secret Pre-registered OAuth client secret (requires --client-id) --client-key Private key (PEM path or literal) for private_key_jwt auth --client-key-alg JWT signing algorithm for --client-key (default: RS256) --token-endpoint OAuth token endpoint (client-credentials only, auto-discovered) --idp Enterprise IdP issuer URL (id-jag only) --idp-client-id Client ID pre-registered at the enterprise IdP (id-jag only) --idp-client-secret Client secret for the enterprise IdP (id-jag only) --idp-scope OIDC scopes for the IdP SSO (id-jag only, see below) --callback-port Loopback port for OAuth callback (default: 13316/31613/16133) --callback-host OAuth callback host: 127.0.0.1 (default) or localhost --json Output in JSON format Interactive login: By default, the command opens your browser to authorize the server, then saves the credentials as a reusable profile any session can use: default profile: mcpc login mcp.apify.com named profile: mcpc login mcp.apify.com --profile work then connect: mcpc connect mcp.apify.com @app --profile work Client registration (how mcpc identifies itself to the server): 1. Client ID Metadata Documents (CIMD): the default. mcpc's hosted CIMD at https://apify.github.io/mcpc/client-metadata.json identifies all mcpc installs as one client. Override with --client-metadata-url , or disable with --no-client-metadata-url. 2. Pre-registration: pass --client-id (and --client-secret if issued). If the client's redirect URI uses localhost (e.g. localhost:3118), match it with --callback-host localhost --callback-port 3118. 3. Dynamic Client Registration (DCR): fallback when CIMD is unsupported or disabled and the server exposes a registration_endpoint. Registers as "mcpc"; --client-name registers under another name (disables CIMD). See https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization Machine-to-machine authentication (for CI/CD and daemons): Pass --grant client-credentials, --client-id, and one credential: mcpc login mcp.example.com --grant client-credentials \ --client-id my-svc --client-secret s3cr3t --scope "read write" mcpc login mcp.example.com --grant client-credentials \ --client-id my-svc --client-key ./key.pem --client-secret uses client_secret_basic; --client-key signs a private_key_jwt assertion (RFC 7523). The token endpoint is auto-discovered; pin it with --token-endpoint for servers without discoverable metadata. See https://modelcontextprotocol.io/extensions/auth/oauth-client-credentials Enterprise-managed authorization (SSO via your organization's IdP): Pass --grant id-jag when your organization controls MCP server access centrally through its identity provider (e.g. Okta). You sign in once with your corporate SSO; mcpc then obtains MCP tokens via identity assertion grants (ID-JAG) without any per-server consent screens: mcpc login mcp.example.com --grant id-jag \ --idp https://acme.okta.com --idp-client-id \ --client-id --client-secret Both clients are pre-registered by your IT team: --idp-client-id at the enterprise IdP (add --idp-client-secret if it is a confidential client), --client-id/--client-secret at the MCP server's authorization server. --scope requests MCP-server scopes; --idp-scope overrides the OIDC scopes used for the SSO itself (default: "openid profile email offline_access"). See https://modelcontextprotocol.io/extensions/auth/enterprise-managed-authorization JSON output (--json): Interactive prompts go to stderr; stdout is a clean JSON object: `{ profile, serverUrl, scopes }` ``` ## `mcpc logout` ```text Usage: mcpc logout [options] Delete an OAuth profile for a server Options: --profile Profile name (default: "default") --json Output in JSON format JSON output (--json): `{ profile, serverUrl, deleted: true, affectedSessions }` ``` ## `mcpc clean` ```text Usage: mcpc clean [options] [resources...] Clean up mcpc data (sessions, profiles, logs, all) Options: --json Output in JSON format Resources: sessions Remove stale/crashed session records profiles Remove authentication profiles logs Remove bridge log files all Remove all of the above Without arguments, performs safe cleanup of stale data only. JSON output (--json): `{ crashedBridges, expiredSessions, orphanedBridgeLogs, sessions, profiles, logs }` ``` ## `mcpc grep` ```text Usage: mcpc grep [options] Search tools and instructions across all active sessions Options: --tools Search tools --resources Search resources --prompts Search prompts --instructions Search server instructions -E, --regex Treat pattern as a regular expression -s, --case-sensitive Case-sensitive matching -m, --max-results Limit the number of results --json Output in JSON format Type filters: By default, tools and instructions are searched. Use --resources or --prompts to search those instead. Combine flags to search multiple types (e.g. --tools --resources). Examples: mcpc grep "search" Search tools and instructions in all sessions mcpc grep "search" --resources Search resources only mcpc grep "search" --tools --prompts Search tools and prompts mcpc grep "search|find" -E Regex search across tools and instructions mcpc @apify grep "actor" Search within a single session mcpc grep "file" --json JSON output for scripting mcpc grep "actor" -m 5 Show at most 5 results Exit codes: 0 = matches found, 1 = no matches (grep convention) JSON output (--json): `[{ sessionName, tools?: Tool[], resources?: Resource[], prompts?: Prompt[], instructions?: string[] }]` ``` ## `mcpc x402` ```text Usage: mcpc x402 [options] [command] x402 wallet management and payment signing (EXPERIMENTAL) Options: --json Output in JSON format --verbose Enable debug logging -h, --help Display help Commands: init Create a new x402 wallet (generates a random private key) import Import an existing wallet from a private key remove Remove the wallet sign [options] Sign a payment from a base64 PAYMENT-REQUIRED header help [command] Display help for command sign options: --amount Override amount in USD (for upto: max authorization cap) --expiry Override expiry in seconds --scheme Payment scheme: auto (default), upto, or exact --no-approve Skip the upto Permit2 allowance check & auto-approval Payments from a session (mcpc connect --x402): A session pays in USDC on Base only, and only when a tool is called. It pays at most its budget in total, set with --x402-budget (default: $10). The budget counts every amount the session authorized; "mcpc" shows how much is used. To raise it, close and connect again. JSON output (--json): `{ address, createdAt, balances: { eth, usdc } | null }` (null if no wallet) ``` ### `mcpc x402 init` ```text Usage: mcpc x402 init [options] Create a new x402 wallet (generates a random private key) Options: -h, --help Display help JSON output (--json): `{ address }` ``` ### `mcpc x402 import` ```text Usage: mcpc x402 import [options] Import an existing wallet from a private key Options: -h, --help Display help JSON output (--json): `{ address }` ``` ### `mcpc x402 remove` ```text Usage: mcpc x402 remove [options] Remove the wallet Options: -h, --help Display help JSON output (--json): `{ removed: true }` ``` ### `mcpc x402 sign` ```text Usage: mcpc x402 sign [options] Sign a payment from a base64 PAYMENT-REQUIRED header Options: --amount Override amount in USD (for upto: max authorization cap) --expiry Override expiry in seconds --scheme Payment scheme preference (default: "auto") --no-approve Skip the upto Permit2 allowance check & auto-approval -h, --help Display help Signs the given base64-encoded PAYMENT-REQUIRED header offline using the configured wallet and prints the resulting PAYMENT-SIGNATURE header (plus an MCP config snippet) to stdout. Useful for pre-signing payments or integrating with other MCP clients. JSON output (--json): `{ paymentSignature, from, to, amount, amountAtomicUnits, network, expiresAt }` ``` ## `mcpc help` ```text Usage: mcpc help [options] [command] [subcommand] Show help for a command Options: --skill Print the agent skill (mental model, workflows, examples) --json Output in JSON format ``` ## `mcpc @` ```text Usage: mcpc @ [options] [command] Show MCP session info or execute commands. Options: --json Output in JSON format for scripting and code mode --verbose Enable debug logging --profile OAuth profile override --timeout Request timeout in seconds (default: 60) --max-chars Truncate output to n characters (ignored in --json mode) --insecure Skip TLS certificate verification (for self-signed certs) -h, --help Display help Commands: close Close MCP session. restart Restart MCP session (losing all state). grep Search MCP session objects. tools-list List all MCP tools. tools-get Get details and schema for an MCP tool. tools-call [args...] Call an MCP tool with arguments. tasks-list List MCP tasks (see below). tasks-get Get MCP task status. tasks-result Get a task's result (waits until it finishes). tasks-cancel Cancel an MCP task. resources-list List all MCP resources. resources-read Read an MCP resource by URI. resources-subscribe Subscribe to an MCP resource and sync it to a local file. resources-unsubscribe Stop syncing a resource, keep the local file. resources-templates-list List MCP resource templates. skills-list List the agent skills the server serves. skills-get [file] Read a skill's SKILL.md, or one of its files (see below). resources-directory-read List a directory resource's direct children. prompts-list List all MCP prompts. prompts-get [args...] Get an MCP prompt with arguments. completion-complete ... Suggest values for a prompt or template argument. logging-set-level Set MCP server logging level (deprecated). ping Ping the MCP server. server-discover Ask the server what it supports (MCP 2026-07-28+). logs Show or follow the bridge log file for this session. Output: When no command is given, shows session, server info, capabilities, and tools. JSON output (--json): `InitializeResult` or `DiscoverResult` object extended with `toolNames` and `_mcpc`: `{ protocolVersion?, supportedVersions?, capabilities?, serverInfo?, instructions?, _meta?, toolNames?, _mcpc: { ... } }` Schema: https://modelcontextprotocol.io/specification/2025-11-25/schema#initializeresult https://modelcontextprotocol.io/specification/2026-07-28/schema#discoverresult ``` ### `mcpc @ close` ```text Usage: mcpc @ close [options] Close MCP session. Options: --json Output in JSON format JSON output (--json): `{ sessionName, closed: true }` ``` ### `mcpc @ restart` ```text Usage: mcpc @ restart [options] Restart MCP session (losing all state). Options: --json Output in JSON format Output: After restarting, shows session, server info, capabilities, and tools. JSON output (--json): `InitializeResult` or `DiscoverResult` object extended with `toolNames` and `_mcpc`: `{ protocolVersion?, supportedVersions?, capabilities?, serverInfo?, instructions?, _meta?, toolNames?, _mcpc: { ... } }` Schema: https://modelcontextprotocol.io/specification/2025-11-25/schema#initializeresult https://modelcontextprotocol.io/specification/2026-07-28/schema#discoverresult ``` ### `mcpc @ grep` ```text Usage: mcpc @ grep [options] Search MCP session objects. Options: --tools Search tools --resources Search resources --prompts Search prompts --instructions Search server instructions -E, --regex Treat pattern as a regular expression -s, --case-sensitive Case-sensitive matching -m, --max-results Limit the number of results --json Output in JSON format Type filters: By default, tools and instructions are searched. Use --resources or --prompts to search those instead. Combine flags to search multiple types. Examples: mcpc @ grep "search" Search tools and instructions mcpc @ grep "search" --resources Search resources only mcpc @ grep "search|find" -E Regex search Exit codes: 0 = matches found, 1 = no matches (grep convention) JSON output (--json): `{ tools?: Tool[], resources?: Resource[], prompts?: Prompt[], instructions?: string[] }` ``` ### `mcpc @ tools-list` ```text Usage: mcpc @ tools-list [options] List all MCP tools. Options: --full Show full tool details including schema --json Output in JSON format JSON output (--json): Array of `Tool` objects: `[{ name, description?, inputSchema, outputSchema?, annotations? }, ...]` Schema: https://modelcontextprotocol.io/specification/2026-07-28/schema#tool ``` ### `mcpc @ tools-get` ```text Usage: mcpc @ tools-get [options] Get details and schema for an MCP tool. Options: --schema Validate tool schema against expected schema --schema-mode Schema validation mode: strict, compatible (default), ignore --json Output in JSON format Schema validation: --schema Validate against expected schema (save with tools-get --json) --schema-mode strict | compatible (default) | ignore JSON output (--json): `Tool` object: `{ name, description?, inputSchema, outputSchema?, annotations? }` Schema: https://modelcontextprotocol.io/specification/2026-07-28/schema#tool ``` ### `mcpc @ tools-call` ```text Usage: mcpc @ tools-call [options] [args...] Call an MCP tool with arguments. Options: --task Use async task execution; Ctrl+C prints the task ID and exits (experimental) --detach Start task and return immediately with task ID (implies --task) --schema Validate tool schema against expected schema before calling --schema-mode Schema validation mode: strict, compatible (default), ignore --json Output in JSON format Arguments: key:=value pairs mcpc @ tools-call search query:=hello limit:=10 Inline JSON mcpc @ tools-call search '{"query":"hello"}' Stdin pipe echo '{"query":"hello"}' | mcpc @ tools-call search Values are auto-parsed: strings, numbers, booleans, JSON objects/arrays. To force a string, wrap in quotes: id:='"123"' Tip: mcpc @ tools-call --help prints the tool's parameter schema. Async tasks (--task, --detach): --task shows a progress spinner; Ctrl+C leaves the task running and prints its ID for tasks-get, tasks-result or tasks-cancel. --detach prints the task ID (the whole Task with --json) once the server has created the task. Both fail unless the server supports tasks (the tasks capability on MCP 2025-11-25, per-tool in tools-list; the tasks extension on 2026-07-28). A 2026-07-28 server decides per call: a plain call it turns into a task is waited for, and --detach prints the tool result if it ran synchronously. Schema validation: --schema Validate tool schema before calling (save with tools-get --json) --schema-mode strict | compatible (default) | ignore JSON output (--json): `CallToolResult` object: `{ content: [{ type, text?, ... }], isError?, structuredContent?: { ... } }` Schema: https://modelcontextprotocol.io/specification/2026-07-28/schema#calltoolresult With `--detach`: the created `Task` object, on MCP 2025-11-25: `{ taskId, status, ttl, createdAt, lastUpdatedAt, statusMessage?, pollInterval? }` on MCP 2026-07-28: `{ taskId, status, ttlMs, createdAt, lastUpdatedAt, statusMessage?, pollIntervalMs?, result? (completed), error? (failed), inputRequests? (input_required) }` or the `CallToolResult` above when the server ran the tool synchronously. Schema: https://modelcontextprotocol.io/specification/2025-11-25/schema#task https://github.com/modelcontextprotocol/ext-tasks/blob/main/specification/2026-07-28/tasks.md With `--x402` on the session: the server's settlement receipt, when it sends one, is at `_meta["x402/payment-response"]`. ``` ### `mcpc @ tasks-list` ```text Usage: mcpc @ tasks-list [options] List MCP tasks (see below). Options: --json Output in JSON format Notes: MCP 2025-11-25 servers list all their tasks. The 2026-07-28 tasks extension has no listing, so there this shows the tasks this session created. JSON output (--json): `{ tasks: Task[] }`, each `Task` shaped: on MCP 2025-11-25: `{ taskId, status, ttl, createdAt, lastUpdatedAt, statusMessage?, pollInterval? }` on MCP 2026-07-28: `{ taskId, status, ttlMs, createdAt, lastUpdatedAt, statusMessage?, pollIntervalMs?, result? (completed), error? (failed), inputRequests? (input_required) }` Schema: https://modelcontextprotocol.io/specification/2025-11-25/schema#task https://github.com/modelcontextprotocol/ext-tasks/blob/main/specification/2026-07-28/tasks.md ``` ### `mcpc @ tasks-get` ```text Usage: mcpc @ tasks-get [options] Get MCP task status. Options: --json Output in JSON format Notes: On MCP 2026-07-28 a finished task carries its result or error (shown with --json). JSON output (--json): `Task` object: on MCP 2025-11-25: `{ taskId, status, ttl, createdAt, lastUpdatedAt, statusMessage?, pollInterval? }` on MCP 2026-07-28: `{ taskId, status, ttlMs, createdAt, lastUpdatedAt, statusMessage?, pollIntervalMs?, result? (completed), error? (failed), inputRequests? (input_required) }` Schema: https://modelcontextprotocol.io/specification/2025-11-25/schema#task https://github.com/modelcontextprotocol/ext-tasks/blob/main/specification/2026-07-28/tasks.md ``` ### `mcpc @ tasks-result` ```text Usage: mcpc @ tasks-result [options] Get a task's result (waits until it finishes). Options: --json Output in JSON format Notes: Polls tasks/get on MCP 2026-07-28. A task waiting for client input (input_required) is reported as an error: mcpc never prompts. JSON output (--json): `CallToolResult` object: `{ content: [{ type, text?, ... }], isError?, structuredContent?: { ... } }` Schema: https://modelcontextprotocol.io/specification/2026-07-28/schema#calltoolresult ``` ### `mcpc @ tasks-cancel` ```text Usage: mcpc @ tasks-cancel [options] Cancel an MCP task. Options: --json Output in JSON format Notes: On MCP 2026-07-28 cancellation is cooperative: the status shown right after may still be working. Exit code 2 only if the task had already finished. JSON output (--json): `Task` object (its state after the request): on MCP 2025-11-25: `{ taskId, status, ttl, createdAt, lastUpdatedAt, statusMessage?, pollInterval? }` on MCP 2026-07-28: `{ taskId, status, ttlMs, createdAt, lastUpdatedAt, statusMessage?, pollIntervalMs?, result? (completed), error? (failed), inputRequests? (input_required) }` Schema: https://modelcontextprotocol.io/specification/2025-11-25/schema#task https://github.com/modelcontextprotocol/ext-tasks/blob/main/specification/2026-07-28/tasks.md ``` ### `mcpc @ prompts-list` ```text Usage: mcpc @ prompts-list [options] List all MCP prompts. Options: --json Output in JSON format JSON output (--json): Array of `Prompt` objects: `[{ name, description?, arguments?: [{ name, required? }] }, ...]` Schema: https://modelcontextprotocol.io/specification/2026-07-28/schema#prompt ``` ### `mcpc @ prompts-get` ```text Usage: mcpc @ prompts-get [options] [args...] Get an MCP prompt with arguments. Options: --json Output in JSON format Arguments: key:=value pairs mcpc @ prompts-get summarize style:=brief lang:=en Inline JSON mcpc @ prompts-get summarize '{"style":"brief"}' Stdin pipe echo '{"style":"brief"}' | mcpc @ prompts-get summarize Values are auto-parsed: strings, numbers, booleans, JSON objects/arrays. To force a string, wrap in quotes: id:='"123"' JSON output (--json): `GetPromptResult` object: `{ description?, messages: [{ role, content: { type, text?, ... } }] }` Schema: https://modelcontextprotocol.io/specification/2026-07-28/schema#getpromptresult ``` ### `mcpc @ completion-complete` ```text Usage: mcpc @ completion-complete [options] [args...] Suggest values for a prompt or template argument. Options: --json Output in JSON format Arguments: `prompt` or `resource` (the MCP ref/prompt or ref/resource reference) Prompt name, or resource URI template (`file:///{path}`) [args...] Prompt or template arguments, in one of the three forms below. The last one is the argument to complete, with the text typed so far as its value (`name:=` for none); the ones before it are sent as context. key:=value pairs mcpc @ completion-complete prompt code_review language:=py Inline JSON mcpc @ completion-complete prompt code_review '{"language":"py"}' Stdin pipe echo '{"language":"py"}' | mcpc @ completion-complete prompt code_review Values are always sent as strings: `count:=10` sends "10", and a JSON object or array is sent as its JSON text. Examples: mcpc @ completion-complete prompt code_review language:= mcpc @ completion-complete prompt code_review language:=python framework:=fla mcpc @ completion-complete resource 'file:///{path}' path:=/ho Notes: The server must declare the completions capability (shown by: mcpc @). Servers return at most 100 suggestions, ranked by relevance; `total` is the number of matches when known, `hasMore` says if there are more than returned. JSON output (--json): `CompleteResult` object: `{ completion: { values: string[], total?: number, hasMore?: boolean }, _meta? }` Schema: https://modelcontextprotocol.io/specification/2026-07-28/schema#completeresult ``` ### `mcpc @ resources-list` ```text Usage: mcpc @ resources-list [options] List all MCP resources. Options: --json Output in JSON format JSON output (--json): Array of `Resource` objects: `[{ uri, name, description?, mimeType? }, ...]` Schema: https://modelcontextprotocol.io/specification/2026-07-28/schema#resource ``` ### `mcpc @ resources-read` ```text Usage: mcpc @ resources-read [options] Read an MCP resource by URI. Options: -o, --output Save the resource to a file (decodes binary content) --raw Print only the resource content, suitable for piping --json Output in JSON format Output: Default: pretty view; binary (blob) content is summarized, never dumped. --raw prints the bare content (binary requires a redirect or -o). -o saves the content; base64 `blob` data is decoded to bytes. If the server returns multiple content items, --raw and -o use the item matching (or the first one) — use --json to get all items. JSON output (--json): `ReadResourceResult` object: `{ contents: [{ uri, mimeType?, text? | blob? }], ttlMs?, cacheScope? }` Schema: https://modelcontextprotocol.io/specification/2026-07-28/schema#readresourceresult `ttlMs`/`cacheScope` are caching hints only present on 2026-07-28 connections. With `-o`: `{ uri, file, bytes, mimeType? }` summary instead. ``` ### `mcpc @ resources-subscribe` ```text Usage: mcpc @ resources-subscribe [options] Subscribe to an MCP resource and sync it to a local file. Options: --json Output in JSON format Behavior: Downloads the resource to now; afterwards the session bridge rewrites the file whenever the server announces a change for (the MCP notifications/resources/updated flow). Requires the server capability `resources.subscribe` — check with `mcpc @`. Subscriptions are re-established automatically when the session reconnects or restarts. Subscribing to the same again just changes the target . Example: mcpc @ resources-subscribe file:///app/config.json ./config.json JSON output (--json): `{ subscribed: true, uri, file, bytes, mimeType? }` ``` ### `mcpc @ resources-unsubscribe` ```text Usage: mcpc @ resources-unsubscribe [options] Stop syncing a resource, keep the local file. Options: --json Output in JSON format JSON output (--json): `{ unsubscribed: true, uri, file }` ``` ### `mcpc @ resources-templates-list` ```text Usage: mcpc @ resources-templates-list [options] List MCP resource templates. Options: --json Output in JSON format JSON output (--json): Array of `ResourceTemplate` objects: `[{ uriTemplate, name, description?, mimeType? }, ...]` Schema: https://modelcontextprotocol.io/specification/2026-07-28/schema#resourcetemplate ``` ### `mcpc @ resources-directory-read` ```text Usage: mcpc @ resources-directory-read [options] List a directory resource's direct children. Options: --json Output in JSON format Notes: Part of the skills extension; needs `"directoryRead": true` in the server's declaration. Lists one level: descend by re-running on a child directory (children with MIME type `inode/directory`). Directory URIs have no trailing slash. Examples: mcpc @ resources-directory-read skill://pdf-processing mcpc @ resources-directory-read skill://pdf-processing/templates JSON output (--json): Array of `Resource` objects (the direct children): `[{ uri, name?, mimeType? }, ...]` Schema: https://modelcontextprotocol.io/specification/2026-07-28/schema#resource ``` ### `mcpc @ skills-list` ```text Usage: mcpc @ skills-list [options] List the agent skills the server serves. Options: --json Output in JSON format Notes: Each entry carries the skill's frontmatter and its complete file manifest (every file with a SHA-256 digest and byte size). A listing may be partial: a skill you know the URI of is readable even when it is not listed. JSON output (--json): Array of `Skill` entries: `[{ uri, frontmatter: { name, description, ... }, resources: [{ uri, digest, size }] | "dynamic" }, ...]` Schema: https://github.com/modelcontextprotocol/ext-skills/blob/main/specification/beta/skills.mdx ``` ### `mcpc @ skills-get` ```text Usage: mcpc @ skills-get [options] [file] Read a skill's SKILL.md, or one of its files (see below). Options: --raw Print only the file content, suitable for piping --json Output in JSON format Arguments: Skill name, path (`acme/billing/refunds`), or its SKILL.md URI [file] Path of a supporting file inside the skill (`references/FORMS.md`) Notes: Content is checked against the skill's manifest (size, digest, and for SKILL.md its frontmatter) and is not printed when the check fails. With --json, --raw is ignored and `contents` holds only the verified item. Examples: mcpc @ skills-get pdf-processing mcpc @ skills-get pdf-processing --raw > SKILL.md mcpc @ skills-get pdf-processing references/FORMS.md JSON output (--json): The skill entry plus the content that was read: `{ skill: { uri, frontmatter, resources }, contents: [{ uri, mimeType?, text? | blob? }] }` Schema: https://github.com/modelcontextprotocol/ext-skills/blob/main/specification/beta/skills.mdx ``` ### `mcpc @ logging-set-level` ```text Usage: mcpc @ logging-set-level [options] Set MCP server logging level (deprecated). Options: --json Output in JSON format Deprecated: MCP 2026-07-28 removed logging/setLevel, so this works on 2025-11-25 (and older) servers only and will be removed in a future mcpc release. Use --verbose for client-side logging instead. JSON output (--json): `{ level: string }` ``` ### `mcpc @ ping` ```text Usage: mcpc @ ping [options] Ping the MCP server. Options: --json Output in JSON format Notes: Measures the request roundtrip. MCP 2026-07-28 removed `ping`, so on modern connections the liveness probe is `server/discover` instead — run `mcpc @ server-discover` to see what that request returns. JSON output (--json): `{ success: true, durationMs: number }` ``` ### `mcpc @ server-discover` ```text Usage: mcpc @ server-discover [options] Ask the server what it supports (MCP 2026-07-28+). Options: --json Output in JSON format Notes: A live `server/discover` request; `mcpc @` shows the cached connect-time answer instead — use it on 2025-11-25 (and older) connections, where this fails. JSON output (--json): `DiscoverResult` object, verbatim: `{ supportedVersions: [...], capabilities: { ... }, instructions?, _meta? }` Schema: https://modelcontextprotocol.io/specification/2026-07-28/schema#discoverresult ``` ### `mcpc @ logs` ```text Usage: mcpc @ logs [options] Show or follow the bridge log file for this session. Options: -n, --tail Number of recent lines to show (default: 50) --follow Stream new log lines as they are written --since Only show entries newer than a duration (30s, 5m, 2h, 1d) or ISO timestamp --json Output in JSON format Examples: mcpc @ logs Last 50 lines mcpc @ logs -n 200 Last 200 lines mcpc @ logs --follow Stream new lines (ESC/Ctrl+C/q to stop) mcpc @ logs --since 1h Lines from the last hour mcpc @ logs --since 30m -n 50 Notes: Reads ~/.mcpc/logs/bridge-@.log and transparently spans rotated files (.log.1 … .log.5) when -n or --since needs older lines. Continuation lines (e.g. stack traces) fold into the preceding entry's msg. JSON output (--json): Array of log records (JSONL when streaming with --follow): `[{ time, level, context?, msg } | { raw }, ...]` ```