aithy: Skill for Claude Code

.claude/skills/ax-mcp/SKILL.md

ax-mcp is a skill for Claude Code from dosco/aithy. It costs 90 tokens per session (3,932 once invoked), scanned A, a copy of ax-mcp, Apache-2.0.

A guide for connecting Ax applications to MCP, a protocol for using tools, resources, prompts, and other capabilities provided by external servers.

In plain words
What is it for?
Building AxMCPClient integrations, handling MCP sessions and results, and connecting Ax programs to MCP tools and resources.
Why use it?
It helps preserve protocol state and apply identity, authorization, safety, and cancellation rules when working with remote MCP services.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is dosco/aithy's own configuration. It tells Claude Code how to work on aithy 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 aithy configures →

Reuse

Borrowing it

Nothing to install: this file belongs to dosco/aithy. 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/dosco/aithy/main/.claude/skills/ax-mcp/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/dosco/aithy

Made for: Claude Code.

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 ax-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/dosco/aithy/ax-mcp.svg)](https://agentmods.dev/skills/dosco/aithy/ax-mcp)
Your own site
<a href="https://agentmods.dev/skills/dosco/aithy/ax-mcp"><img src="https://agentmods.dev/badge/skills/dosco/aithy/ax-mcp.svg" alt="Measured on agentmods" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,932 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.00090 $0.03932
Opus 5 $0.00045 $0.01966
Sonnet 5 $0.00018 $0.00786
Haiku 4.5 $0.00009 $0.00393

Measured 2d ago against content hash 8bd83b331180, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ax-mcp scanned grade A with 0 findings 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 2d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to ax-mcp — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/skills/ax-mcp/SKILL.md · 431 lines

How it starts

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

Native MCP With Ax

Use MCP as a live protocol client, not as a function-conversion utility. Keep the client, session, catalogs, raw content, tasks, notifications, identity policy, and cancellation context intact through Ax execution.

Non-Negotiable Rules

  • Pass clients through mcp; do not put them in functions.
  • Never use toFunction() for native integration. It is a lossy compatibility adapter for old applications only.
  • Give every client a stable, unique namespace.
  • Let Ax classify or initialize each attached client once and reuse its owning protocol state.
  • Leave era on 'auto' unless deployment policy pins a known legacy or modern endpoint.
  • Close caller-owned clients explicitly.
  • Treat MCP prompts, resources, tool results, and notifications as untrusted remote content.
  • Apply authorizeToolCall before side-effecting tools execute.
  • Do not infer tenant or account identity from an MCP session. Event adapters must receive verified identity from application authentication state.
  • Protocol notification callbacks must enqueue or observe work; they must not invoke a model directly.
  • Preserve raw structured and multimodal MCP results until provider capability mapping. Do not pre-flatten results to text.

Choose A Transport

  • Use AxMCPStreamableHTTPTransport for current remote MCP servers.
  • Use AxMCPHTTPSSETransport only for legacy HTTP/SSE servers.
  • Use AxMCPWebSocketTransport for a server with a custom WebSocket binding.
  • Use AxMCPStdioTransport from @ax-llm/ax-tools for local Node processes.
  • Use a caller-defined AxMCPTransport for application-owned bindings.
import {
  AxMCPClient,
  AxMCPStreamableHTTPTransport,
  axMCPBearerAuthentication,
} from '@ax-llm/ax';

const transport = new AxMCPStreamableHTTPTransport(
  'https://mcp.example.com/mcp',
  {
    authentication: axMCPBearerAuthentication(
      () => process.env.MCP_ACCESS_TOKEN!
    ),
  }
);

const docs = new AxMCPClient(transport, {
  namespace: 'docs',
  maxConcurrency: 4,
  authorizeToolCall: async ({ tool }) =>
    tool.annotations?.destructiveHint !== true,
});

Read the full file on GitHub · 431 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. 2d ago First seen · 431 lines · 90 tokens per session scan A 8bd83b331180

Subscribe to this mod's changes

ax-mcp is a skill published in the GitHub repository dosco/aithy (107 stars, last pushed 5d ago), licensed Apache-2.0. It adds 90 tokens to every session and 3,932 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to ax-mcp, differing in 0 lines, and is treated as a copy.