mcpc: Instructions file for Codex

AGENTS.md

mcpc AGENTS.md is an instructions file for Codex, OpenCode from apify/mcpc. It costs 14,249 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for mcpc, a command-line client that connects shell commands and scripts to MCP servers. MCP is a standard way for AI tools to use external tools and data sources.

In plain words
What is it for?
Use them when an agent is developing or maintaining mcpc. They cover installing dependencies, building the project, and working with its MCP connections and sessions.
Why use it?
These instructions give a coding agent the project's purpose, setup details, build commands, and development workflow. That context helps the agent work consistently in this repository.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md.

This is apify/mcpc's own configuration. It tells Codex and OpenCode how to work on mcpc itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcpc configures →

About the project

mcpc is a command-line client for the Model Context Protocol, giving shell commands access to MCP servers' tools, resources, prompts, skills, and other operations. Developers and AI agents use it to inspect, debug, and script MCP workflows through standard shell pipelines, with the catalogue add-ons supporting its use in agent workflows.

apify/mcpc · 1,089 stars · on GitHub · npmjs.com

Reuse

Borrowing it

Nothing to install: this file belongs to apify/mcpc. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/apify/mcpc/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/apify/mcpc

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcpc AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/apify/mcpc/agents-md/github.svg)](https://agentmods.dev/instructions/apify/mcpc/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/apify/mcpc/agents-md"><img src="https://agentmods.dev/badge/instructions/apify/mcpc/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcpc AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/apify/mcpc/agents-md"><img src="https://agentmods.dev/badge/instructions/apify/mcpc/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14,249 This file is loaded in full into every session.
When invoked 14,249 The same file — it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.14249 $0.14249
Opus 5.5 $0.05700 $0.05700
Sonnet 5.5 $0.02850 $0.02850
Haiku 4.5 $0.01425 $0.01425

Measured 20d ago against content hash e6f3f3a79d88, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcpc AGENTS.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 20d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **Tooling**: in cloud sessions `api.github.com` and `github.com` are blocked for `curl`, so fetch the two GitHub pages with the built-in WebFetch tool. Do not use the `apify/web-fetch` MCP tool: every call and every re
AGENTS.md · 881 lines

How it starts

The opening of the file, as written. The whole thing — 881 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

mcpc is a universal command-line client for the Model Context Protocol (MCP), which maps MCP to intuitive CLI commands for shell access, scripts, and AI coding agents.

mcpc can connect to any MCP server over Streamable HTTP or stdio transports, securely login via OAuth credentials and store credentials, and keep long-term sessions to multiple servers in parallel. It supports all major MCP features, including tools, resources, prompts, asynchronous tasks, and notifications.

mcpc is handy for manual testing of MCP servers, scripting, and AI coding agents to use MCP in "code mode", for better accuracy and lower tokens compared to traditional tool function calling. After all, UNIX-compatible shell script is THE most universal coding language, for both people and LLMs.

Key capabilities:

  • Universal MCP client - Works with any MCP server over Streamable HTTP or stdio
  • Persistent sessions - Keep multiple server connections alive simultaneously
  • Zero setup - Connect to remote servers instantly with just a URL
  • Full protocol support - Tools, resources, prompts, dynamic discovery, and async notifications
  • --json output - Easy integration with jq, scripts, and other CLI tools
  • AI-friendly - Designed for code generation and automated workflows
  • Secure - OS keychain integration for credentials, encrypted auth storage

Build and Development Commands

# Install dependencies
pnpm install

# Build the project
pnpm run build

# Run tests
pnpm test

# Test locally after building
pnpm link --global
mcpc --help

# Run linter/formatter (if configured)
pnpm run lint
pnpm run format

Quick Start Examples

# List all active sessions and saved authentication profiles
mcpc

# Login to OAuth-enabled MCP server and save authentication for future use
mcpc login mcp.apify.com

# Create a persistent session
mcpc connect mcp.apify.com @test
mcpc @test                               # show session info
mcpc @test tools-list                    # list available tools
mcpc @test tools-call search-actors query:="web crawler"

# Use JSON mode for scripting
mcpc --json @test tools-list

# Use a local server package referenced by MCP config file
mcpc connect ~/.vscode/mcp.json:filesystem @fs
mcpc @fs tools-list

Read the full file on GitHub · 881 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 20d ago Changed e6f3f3a79d88
  2. 24d ago Changed · -2 tokens per session 31f3ce22ae0a
  3. 28d ago First seen · 881 lines · 14,251 tokens per session scan A 88effa4d53ac

Subscribe to this mod's changes

mcpc AGENTS.md is an instructions file published in the GitHub repository apify/mcpc (1,089 stars, last pushed yesterday), licensed Apache-2.0. It adds 14,249 tokens to every session, about $0.0570 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-10.

Related

mcpc AGENTS.md compared with instructions from other repositories

mcpc AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcpc AGENTS.mdapify/mcpcInstructions file1.1kyesterdayApache-2.0A14,249Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode