Agents for Devs desk

Editorial desk, Agents for Devs

Pages on Agents for Devs are signed by the desk rather than by an individual. Drafts are AI-assisted. Every page links the primary sources it relies on, such as specifications, official documentation and changelogs, and says when they were checked.

Corrections are listed at /corrections.

Written or edited

22 pages

  1. A2A for developers: agent cards, tasks and how it differs from MCP

    A2A lets one agent hand work to another agent over HTTP. These are the objects you send and receive, taken from the 1.0.0 specification.

    Guide6 min

  2. Build an MCP server in Python with the official SDK

    Install the mcp package, put @mcp.tool() on a type-hinted function, and serve it over stdio or Streamable HTTP with mcp.run().

    Guide6 min

  3. Build an MCP server in TypeScript with the official SDK

    Install @modelcontextprotocol/server, register a tool with a Zod schema, and serve the same factory over stdio or Streamable HTTP.

    Guide6 min

  4. Claude Code MCP config: commands, scopes and managed settings

    How Claude Code registers, stores, authenticates and restricts MCP servers, with each command taken from Anthropic's docs.

    Guide7 min

  5. Codex CLI MCP config: config.toml, servers and approvals

    Where Codex CLI keeps MCP servers, how to add stdio and Streamable HTTP servers, how OAuth sign-in works, and how per-tool approvals and admin allowlists apply.

    Guide6 min

  6. How coding agents ask permission: approval modes by agent

    Mode names, starting defaults, rule files, MCP approvals and admin locks for Claude Code, Codex CLI, Gemini CLI, Grok Build and VS Code Copilot, from each vendor's docs.

    Guide6 min

  7. Grok Build MCP config: mcp.json, project vs global, and OAuth

    Where Grok Build reads MCP servers, how a server entry is shaped, how OAuth sign-in and tool allowlists work, and what team and enterprise admins can control.

    Guide7 min

  8. Debug an MCP server with MCP Inspector: web UI, CLI and CI

    Point the official Inspector at a stdio command or an HTTP URL, read the JSON-RPC traffic, pick the protocol era, and turn the CLI into a CI check.

    Guide6 min

  9. Run a remote MCP server: Streamable HTTP, sessions and auth

    What changes when an MCP server leaves localhost: one POST endpoint, no protocol sessions in revision 2026-07-28, a Host allowlist, and bearer tokens bound to your server.

    Guide6 min

  10. Function calling vs MCP: what each one standardizes

    Function calling is the contract between a model and your application. MCP is the contract between your application and tool servers. A host uses both in the same turn.

    Guide7 min

  11. Gemini CLI MCP config: settings.json servers and trust

    How Gemini CLI finds MCP servers in settings.json, adds them with gemini mcp add, signs in with OAuth, and decides when an MCP tool call needs your approval.

    Guide7 min

  12. MCP explained for developers: hosts, clients, servers and JSON-RPC

    Who does what in a Model Context Protocol setup, what the JSON-RPC traffic looks like, and what the stateless 2026-07-28 revision changed.

    Guide7 min

  13. MCP gateway explained: what it does between agents and servers

    A gateway is an MCP server to your clients and an MCP client to your servers. This is what it does to each request, which parts of the spec govern it, and what it costs you.

    Explainer6 min

  14. MCP authorization step by step: OAuth 2.1, discovery and PKCE

    Every request an MCP client makes to get a token for a protected remote MCP server, in order, per the 2026-07-28 specification.

    Guide6 min

  15. MCP server security checklist: what to check before you ship

    The requirements the MCP specification puts on server authors, plus the project's guidance for local installs, as a list you can run before each release.

    Guide7 min

  16. stdio vs Streamable HTTP: choosing an MCP transport

    When to run an MCP server as a subprocess, when to put it behind an HTTP endpoint, and what the 2026-07-28 spec requires of each.

    Guide6 min

  17. MCP vs REST: why agents don't just call your API

    A REST API is a contract developers code against. An MCP server is a contract AI hosts read at runtime. Most MCP servers sit in front of an API rather than replacing it.

    Guide6 min

  18. Prompt injection against coding agents: attack paths and defenses

    Coding agents read issues, files, web pages and tool output, and any of it can carry instructions. This guide maps where injected text gets in and which documented settings limit what a hijacked agent can do.

    Guide7 min

  19. Shadow MCP servers: finding the servers developers added themselves

    Developers add MCP servers in one command, and nobody is asked first. Here is where each client keeps its MCP config, how to build an inventory, and how each client's managed allowlist blocks the rest.

    Guide7 min

  20. Token passthrough in MCP: why servers must not forward client tokens

    An MCP server that relays the token it received to another API defeats audience checks, rate limits and audit trails. The spec forbids it. Here is the rule and the alternative.

    Explainer6 min

  21. MCP tool poisoning: how a tool description hijacks your agent

    A poisoned MCP server hides orders for the model inside its tool definitions. Here is what that text looks like, why approving a server once doesn't catch it, and what to check and configure instead.

    Guide7 min

  22. VS Code MCP config: mcp.json, Copilot agents and policies

    VS Code now reads MCP servers for Copilot agent sessions from two native files, keeps .vscode/mcp.json only for a deprecated harness, and lets admins allowlist servers centrally.

    Guide6 min