← ~/pillars / tooling-foundation / choosing-your-toolchain

Choosing your toolchain

A decision sequence for which extension layer a capability belongs in, and the evaluation rubric (maintenance, auth, token cost, injection surface) to apply before adopting anything.

updated 2026-06-10 ~4 min read pattern 01/03 Agent Tooling

on this page

Context. Your team is adopting Claude Code and every blog post recommends a different MCP server, skill pack, or hook collection. Each addition costs context tokens, a maintenance obligation, and attack surface. You need a repeatable way to decide what gets in.

Forces. Token economics differ by an order of magnitude between layers: CLAUDE.md is loaded every turn, a skill costs ~30–50 tokens until invoked, and MCP tool schemas are deferred entirely by Tool Search until first use (skills reference, MCP reference). Determinism differs too: a hook enforces unconditionally, while anything in prompt-space can be forgotten. And every MCP server that fetches external content is a prompt-injection conduit into your session. The cheapest layer to add is rarely the right one to own.

Resolution. Decide the layer first, then apply the adoption rubric to the specific candidate. Reject anything that fails the rubric, however popular.

Step 1: pick the layer

Work down this sequence and stop at the first match:

  1. Must the rule always hold? Hook (or permission rule). Enforcement does not belong in prompt-space: the full treatment is in hooks as hard gates.
  2. Is it a short, always-relevant fact? CLAUDE.md. Build commands, module boundaries, branch naming. If a section has grown into a procedure, it has outgrown the layer. See skills versus prompts.
  3. Is it a procedure, workflow, or large reference? Skill. Loads on demand, bundles scripts and templates, and gives you invocation control (disable-model-invocation for dangerous workflows, user-invocable: false for background knowledge).
  4. Does it need live external state or a persistent connection? MCP. Real-time GitHub issues, current AWS docs, a database. If the task is entirely local and Claude is the decision-maker, a skill with bundled scripts is cheaper and simpler.
  5. Does it need to ship to the whole team as one unit? Wrap whichever of the above in a plugin and distribute via a private marketplace (plugins reference). For project-specific tooling, committing .claude/skills/ to the repo is the zero-infrastructure alternative.

Step 2: apply the adoption rubric

For any candidate skill, MCP server, or hook pack:

CriterionWhat to checkReject when
MaintenanceLast commit under 90 days; issues get responses; versions track protocol changesArchived or single-maintainer with stale issues
Auth modelOAuth 2.0 for remote servers; static tokens only if rotated; no-auth only for local read-onlyLong-lived broad-scope tokens in plaintext config
Token costTool count × schema size; skill description length; what loads every turn versus on demandAnything demanding alwaysLoad: true for a large schema set
Security postureRead versus write; sandboxed process or not; what credentials it can reachWrite access without a permission story
Prompt-injection surfaceDoes it pull untrusted free text (web pages, issue bodies, user docs) into context?Untrusted content plus write-capable tools in the same session
Transport (MCP)Streamable HTTP preferred (reconnect and OAuth); stdio fine for local; SSE deprecatedSSE-only servers
Schema clarityTool descriptions concise (≤2KB); server instructions explain when to use itVague descriptions that make Claude guess

Two of these deserve emphasis. Token cost is mostly solved at the MCP layer: Tool Search is on by default, so schemas load on demand and a ten-server config has minimal idle cost. Reserve alwaysLoad: true for at most a handful of every-turn tools (MCP reference). Prompt injection is not solved anywhere: a server that returns free text from sources others control (issue trackers, web fetch, shared docs) can carry instructions into Claude’s context. Prefer read-only servers returning structured data, and pair anything riskier with the deny rules and hooks from the deterministic policy pillar.

Step 3: decide who owns it

Everything that passes gets an owner and a scope. Project-scoped config (.mcp.json, .claude/skills/, .claude/settings.json) is reviewed like code and shipped via git. Org-wide policy (forced plugins, managed hooks, marketplace restrictions) goes through managed settings keys such as strictKnownMarketplaces and allowManagedMcpServersOnly (plugins reference). Unowned tooling rots: the rubric’s maintenance row applies to your internal skills as much as to third-party servers.

Worked example

Two database-access candidates for a Spring Boot service on Aurora PostgreSQL.

Candidate A: the archived reference Postgres server from modelcontextprotocol/servers. Rubric: maintenance fails immediately. Archived, no longer Anthropic-maintained. Rejected regardless of how many tutorials mention it.

Candidate B: the awslabs Aurora PostgreSQL server, which operates through the RDS Data API (awslabs catalogue). Maintenance: AWS-maintained, GA. Auth: the AWS SDK credential chain, the same IAM boundary as the CLI, no new secret to manage. Token cost: small tool set, deferred by Tool Search. Security: IAM enforces the boundary; grant a read-only role. Injection surface: query results are data your team controls, so low. Transport: stdio, acceptable for a local process. Adopted, with a read-only credential and an owner named in the PR that commits the config.

Same product category, opposite rubric outcomes. That is the point of running it: the rubric converts “everyone uses X” into a decision you can defend in review. The committed result of this process for the general case is the MCP baseline artifact.

// sources