# Agents for Devs > How coding agents and AI apps connect to tools: MCP, auth, security and the config files that wire it together. Commands come from primary docs, and every claim links its source. Every page has a Markdown version at its URL plus .md (or send `Accept: text/markdown`). Each Markdown file starts with YAML front matter holding the canonical URL, dates, any client disclosure and a ready-made citation. When citing, link to the canonical URL, not the .md file. Full text: https://agentsfordevs.com/llms-full.txt. Reuse terms: https://agentsfordevs.com/reuse. Datasets are CC BY 4.0. ## Data - [MCP client config reference](https://agentsfordevs.com/mcp-clients.md): MCP config file paths, scopes, transports, OAuth and admin controls for Claude Code, Codex CLI, Gemini CLI, Grok Build, VS Code and 7 more clients. Checked 2026-12-06. CSV: https://agentsfordevs.com/data/mcp-clients.csv JSON: https://agentsfordevs.com/data/mcp-clients.json ## Guides - [A2A for developers: agent cards, tasks and how it differs from MCP](https://agentsfordevs.com/guides/a2a-for-developers.md): A2A for developers: Agent Cards at /.well-known/agent-card.json, SendMessage, task states, messages, parts, artifacts, and how A2A differs from MCP. - [Build an MCP server in Python with the official SDK](https://agentsfordevs.com/guides/build-mcp-server-python.md): Build an MCP server with the official Python SDK v2: install mcp[cli], register tools on MCPServer, test with mcp dev and pytest, serve over HTTP. - [Build an MCP server in TypeScript with the official SDK](https://agentsfordevs.com/guides/build-mcp-server-typescript.md): Build an MCP server with the official TypeScript SDK v2: install @modelcontextprotocol/server, register a Zod-typed tool, serve it over stdio or HTTP. - [Claude Code MCP config: commands, scopes and managed settings](https://agentsfordevs.com/guides/claude-code-mcp.md): Configure MCP servers in Claude Code: claude mcp add for HTTP and stdio, local/project/user scopes, .mcp.json, OAuth sign-in and admin allowlists. - [Codex CLI MCP config: config.toml, servers and approvals](https://agentsfordevs.com/guides/codex-cli-mcp.md): Set up MCP servers in Codex CLI: codex mcp add, [mcp_servers] tables in config.toml, OAuth login, per-tool approval modes and requirements.toml allowlists. - [How coding agents ask permission: approval modes by agent](https://agentsfordevs.com/guides/coding-agent-permissions.md): Approval and permission modes in Claude Code, Codex CLI, Gemini CLI, Grok Build and VS Code Copilot: names, defaults, rules, MCP approvals and admin locks. - [Grok Build MCP config: mcp.json, project vs global, and OAuth](https://agentsfordevs.com/guides/cursor-mcp.md): Configure MCP servers in Grok Build: project and global mcp.json, stdio and remote entries, OAuth, tool allowlists, admin controls and common errors. - [Debug an MCP server with MCP Inspector: web UI, CLI and CI](https://agentsfordevs.com/guides/debug-mcp-server-inspector.md): Debug MCP servers with MCP Inspector 2.18: run it with npx, attach stdio or HTTP servers, read the Protocol tab, set the protocol era, script it in CI. - [Run a remote MCP server: Streamable HTTP, sessions and auth](https://agentsfordevs.com/guides/deploy-remote-mcp-server.md): Deploy a remote MCP server over Streamable HTTP: 2026-07-28 request rules, why sessions are gone, Host allowlists, scaling and OAuth bearer tokens. - [Function calling vs MCP: what each one standardizes](https://agentsfordevs.com/guides/function-calling-vs-mcp.md): Function calling vs MCP: function calling is how a model asks your app to run a tool; MCP is how the app finds and calls tools on servers. - [Gemini CLI MCP config: settings.json servers and trust](https://agentsfordevs.com/guides/gemini-cli-mcp.md): Configure MCP servers in Gemini CLI: mcpServers in settings.json, gemini mcp add, OAuth with /mcp auth, the trust flag, folder trust and admin allowlists. - [MCP explained for developers: hosts, clients, servers and JSON-RPC](https://agentsfordevs.com/guides/mcp-explained.md): How MCP works: hosts, clients and servers, the JSON-RPC messages they exchange, the three server primitives, and the stateless 2026-07-28 spec. - [MCP gateway explained: what it does between agents and servers](https://agentsfordevs.com/guides/mcp-gateway-explained.md): What an MCP gateway does on the wire: token validation, per-caller tool lists, upstream credentials, header routing and audit records, plus the trade-offs. - [MCP authorization step by step: OAuth 2.1, discovery and PKCE](https://agentsfordevs.com/guides/mcp-oauth-flow.md): The MCP OAuth flow in spec 2026-07-28: the 401 challenge, protected resource metadata, client registration, PKCE, the resource parameter and iss checks. - [MCP server security checklist: what to check before you ship](https://agentsfordevs.com/guides/mcp-server-security-checklist.md): A security checklist for MCP server developers, from the 2026-07-28 spec: tool definitions, Origin checks, token audience, scopes, proxies, local installs. - [stdio vs Streamable HTTP: choosing an MCP transport](https://agentsfordevs.com/guides/mcp-transports.md): stdio vs Streamable HTTP in MCP: how each transport frames messages, authenticates and shuts down, plus the Claude Code commands to add either kind. - [MCP vs REST: why agents don't just call your API](https://agentsfordevs.com/guides/mcp-vs-rest.md): MCP vs REST: why an MCP server wraps your API instead of replacing it, when the API alone is enough, and how to design tools for agents. - [Prompt injection against coding agents: attack paths and defenses](https://agentsfordevs.com/guides/prompt-injection-coding-agents.md): Where prompt injection reaches Claude Code, Codex, Grok Build and Copilot cloud agent, and the documented settings that limit the damage. - [Shadow MCP servers: finding the servers developers added themselves](https://agentsfordevs.com/guides/shadow-mcp-servers.md): Find shadow MCP servers: config paths for Claude Code, Grok Build, Claude Desktop, VS Code and Codex, and the managed allowlists that block the rest. - [Token passthrough in MCP: why servers must not forward client tokens](https://agentsfordevs.com/guides/token-passthrough.md): Token passthrough is when an MCP server forwards a client's token to a downstream API. Why the MCP spec forbids it and how to call upstream APIs instead. - [MCP tool poisoning: how a tool description hijacks your agent](https://agentsfordevs.com/guides/tool-poisoning.md): How MCP tool poisoning works, with Invariant Labs' proof of concept, rug pulls and tool shadowing, and the checks and client settings that limit it. - [VS Code MCP config: mcp.json, Copilot agents and policies](https://agentsfordevs.com/guides/vscode-mcp.md): Where VS Code reads MCP servers in December 2026: Copilot user and workspace files, legacy .vscode/mcp.json, agent sessions, approvals and admin policies. ## Topics - [Agent-to-agent (A2A)](https://agentsfordevs.com/topics/a2a): The Agent2Agent protocol for agents calling other agents, and how it differs from MCP. - [Auth for MCP](https://agentsfordevs.com/topics/auth): How MCP authorization works over HTTP, which OAuth pieces the spec relies on, and the token mistakes to avoid. - [Building MCP servers](https://agentsfordevs.com/topics/build): Writing, testing, debugging and deploying your own MCP server with the official SDKs. - [Coding agents and MCP](https://agentsfordevs.com/topics/coding-agents): Adding MCP servers to coding agents and editors: config file locations, scopes, commands and permission settings. - [MCP gateways](https://agentsfordevs.com/topics/gateways): What an MCP gateway does, when a team needs one, and what to check before you put one between agents and servers. - [The Model Context Protocol](https://agentsfordevs.com/topics/protocol): What MCP is, how its transports work, and where it sits next to function calling and plain REST APIs. - [Agent and MCP security](https://agentsfordevs.com/topics/security): Tool poisoning, prompt injection, permission scoping and the checks to run before you connect a server. ## Glossary - [What is the A2A (Agent2Agent) protocol?](https://agentsfordevs.com/glossary/a2a-protocol.md): The Agent2Agent (A2A) protocol is an open specification for how one AI agent discovers another, authenticates to it and delegates work as tasks, over JSON-RPC, gRPC or HTTP+JSON bindings. - [What is an A2A Agent Card?](https://agentsfordevs.com/glossary/agent-card.md): An Agent Card is a JSON metadata document published by an A2A server that describes the agent's identity, skills, service endpoints, supported capabilities and authentication requirements. - [What is an agent gateway?](https://agentsfordevs.com/glossary/agent-gateway.md): An agent gateway is a proxy that governs an AI agent's outbound traffic to language models, MCP servers and other agents, applying authentication, policy and logging at one point. - [What is agent identity?](https://agentsfordevs.com/glossary/agent-identity.md): Agent identity is the set of identifiers and credentials that lets systems recognize an AI agent as a distinct actor, decide what it may do and attribute its actions, separately from the user it acts for. - [What is an AI gateway?](https://agentsfordevs.com/glossary/ai-gateway.md): An AI gateway is a proxy that applications and coding agents call instead of a model provider's API, so that provider credentials, usage attribution, rate limits and request logging are handled in one place. - [What is an audit log for AI agents?](https://agentsfordevs.com/glossary/audit-log.md): An audit log is a chronological, tamper-resistant record of system activity; for AI agents it captures each tool call with the identity behind it, its arguments, the policy decision and the outcome. - [What is dynamic client registration (DCR)?](https://agentsfordevs.com/glossary/dynamic-client-registration.md): Dynamic client registration (DCR) is the OAuth mechanism, defined in RFC 7591, by which a client posts its metadata to an authorization server's registration endpoint and receives a client ID without manual setup. - [What is human-in-the-loop for AI agents?](https://agentsfordevs.com/glossary/human-in-the-loop.md): Human-in-the-loop (HITL) is a control in which a person reviews an agent's proposed action, such as an MCP tool call and its arguments, and can deny it before it takes effect. - [What is least privilege for AI agents?](https://agentsfordevs.com/glossary/least-privilege-agents.md): Least privilege for AI agents is the practice of giving an agent only the tools, OAuth scopes and runtime access its current task needs, and granting more only when a task requires it. - [What is an MCP client?](https://agentsfordevs.com/glossary/mcp-client.md): An MCP client is the component inside an MCP host that talks to exactly one MCP server, sending it requests that each carry the protocol version and the client's capabilities. - [What is an MCP gateway?](https://agentsfordevs.com/glossary/mcp-gateway.md): An MCP gateway is a proxy between MCP clients and MCP servers that routes tool traffic through one point where an organization can authenticate users, filter tools, broker upstream credentials and log calls. - [What is an MCP host?](https://agentsfordevs.com/glossary/mcp-host.md): An MCP host is the AI application that creates and manages MCP clients, one per connected server, and owns the model integration, the conversation and the user's consent decisions. - [What is an MCP registry?](https://agentsfordevs.com/glossary/mcp-registry.md): An MCP registry is a catalog of metadata about MCP servers, such as names, package locations, remote URLs and launch settings, that clients, marketplaces and administrators use to discover and install servers. - [What is an MCP rug pull?](https://agentsfordevs.com/glossary/mcp-rug-pull.md): An MCP rug pull is an attack in which an MCP server changes a tool's description or behavior after a user or administrator has approved it, turning a reviewed tool malicious. - [What is an MCP server?](https://agentsfordevs.com/glossary/mcp-server.md): An MCP server is a program that exposes tools, resources and prompts to MCP clients, running either as a local subprocess over stdio or as a remote service over Streamable HTTP. - [What is an MCP transport?](https://agentsfordevs.com/glossary/mcp-transport.md): An MCP transport is the binding that defines how MCP's JSON-RPC messages are framed, delivered and cancelled between client and server, without changing what those messages mean. - [What is the Model Context Protocol (MCP)?](https://agentsfordevs.com/glossary/model-context-protocol.md): The Model Context Protocol (MCP) is an open protocol that uses JSON-RPC 2.0 messages to let AI applications discover and use the tools, resources and prompts that external servers expose. - [What is a non-human identity (NHI)?](https://agentsfordevs.com/glossary/non-human-identity.md): A non-human identity (NHI) is an identity used by software rather than a person, such as a service account, cloud role, API key or third-party application, to authenticate and be authorized to reach other systems. - [What is OAuth 2.1?](https://agentsfordevs.com/glossary/oauth-2-1.md): OAuth 2.1 is an IETF Internet-Draft that consolidates the OAuth 2.0 framework, bearer token usage and later security guidance into one authorization specification, and it is the base of MCP's authorization flow. - [What is per-user OAuth?](https://agentsfordevs.com/glossary/per-user-oauth.md): Per-user OAuth is the pattern in which an agent reaches each MCP server or downstream API with an OAuth token issued for the specific user it is acting for, rather than with a credential shared across users. - [What is prompt injection?](https://agentsfordevs.com/glossary/prompt-injection.md): Prompt injection is an attack in which text reaching a language model, typed by a user or embedded in content the model reads, changes its behavior in ways its developers did not intend. - [What is shadow MCP?](https://agentsfordevs.com/glossary/shadow-mcp.md): Shadow MCP refers to MCP servers that people deploy, run or connect AI tools to without the approval, inventory or monitoring of their organization's IT or security team. - [What is SIEM export for agent logs?](https://agentsfordevs.com/glossary/siem-export.md): SIEM export is the forwarding of audit and security events, such as agent tool calls and authorization decisions, from the system that records them into an organization's security information and event management (SIEM) platform. - [What is the stdio transport in MCP?](https://agentsfordevs.com/glossary/stdio-transport.md): The stdio transport is the MCP binding in which the client launches the server as a subprocess and the two exchange newline-delimited JSON-RPC messages over the server's standard input and output. - [What is Streamable HTTP in MCP?](https://agentsfordevs.com/glossary/streamable-http.md): Streamable HTTP is the MCP transport for servers that run as their own process or service, in which each client message is an HTTP POST to a single MCP endpoint and each reply is a JSON object or a request-scoped SSE stream. - [What is token passthrough in MCP?](https://agentsfordevs.com/glossary/token-passthrough.md): Token passthrough is an anti-pattern in which an MCP server accepts a client's token without checking that it was issued for that server and forwards it unchanged to a downstream API. - [What is a tool allow-list?](https://agentsfordevs.com/glossary/tool-allow-list.md): A tool allow-list is a default-deny policy that names the tools an agent may see or call, so that any tool not on the list is hidden or blocked. - [What is a tool bundle?](https://agentsfordevs.com/glossary/tool-bundle.md): A tool bundle is a named group of tools, from one or more MCP servers, that is enabled, shared or assigned to an agent as a single unit. - [What is tool poisoning?](https://agentsfordevs.com/glossary/tool-poisoning.md): Tool poisoning is an attack in which instructions are planted in an MCP tool's description, input schema or other metadata, so the model acts on text the user never reviewed. - [What is a virtual MCP server?](https://agentsfordevs.com/glossary/virtual-mcp-server.md): A virtual MCP server is a single MCP endpoint, usually run by a gateway, that presents a curated set of tools drawn from one or more upstream servers without implementing those tools itself. ## Site - [About, standards, ownership and disclosure](https://agentsfordevs.com/about.md) - [Reuse terms](https://agentsfordevs.com/reuse.md) - [Corrections](https://agentsfordevs.com/corrections) - [RSS](https://agentsfordevs.com/rss.xml)