CAT
/MCP
SkillsMCPMarketplacesDigestToolsAdvertise

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by Category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP Servers by Category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by Category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control

Cross AI Tools

Discover Claude Code plugins, extensions, and tools. Automatically updated directory of Anthropic Claude AI marketplaces with development tools, productivity plugins, and integrations.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Marketplaces
  • Plugins Reference

Community

  • About
  • Tools
  • Feedback
  • Privacy Policy
  • Advertise

Built for the Claude Code community with Claude Code by @mertduzgun

Independent project, not affiliated with Anthropic

P402

z333q/p402-protocol
authSTDIOregistry active
Summary

Routes LLM requests across 300+ models with automatic provider selection based on cost, quality, speed, or balanced scoring. Settles each API call via USDC micropayments on Base L2 using the x402 protocol with sub-cent transaction fees. Exposes six MCP tools for chat completion, session budget management, facilitator health checks, and spending analytics. Install via the embedded VS Code extension or run standalone through npx with Claude Desktop. Useful when you want OpenAI-compatible routing with hard spending caps for autonomous agents or need to optimize inference costs across providers without hardcoding API endpoints. Also implements Google's A2A spec for agent-to-agent communication with payment gates.

CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →

P402 Protocol

npm @p402/sdk npm @p402/cli npm @p402/mcp-server npm @p402/mpp-method VS Code Marketplace License: MIT Docs

AI payment router. Route across 300+ models, settle per request in USDC on Base or USDC.e on Tempo.

P402 sits between your AI application and every LLM provider. It handles intelligent multi-provider routing (cost / quality / speed / balanced), on-chain micropayment settlement via the x402 protocol and mppx on Base and Tempo, and spending guardrails for autonomous agents.


Why P402

ProblemP402 Solution
Hardcoded to one AI providerRoute across 300+ models automatically
$0.30 payment fees kill micropaymentsUSDC on Base: fractions of a cent per settlement
No spending limits for AI agentsSession budgets + AP2 mandate governance
Fragmented provider APIsOne OpenAI-compatible endpoint
No visibility into AI costsReal-time analytics + optimization suggestions

Quick Start (VS Code / Cursor / Windsurf)

Install the extension — the MCP server is embedded, tools appear in Copilot agent mode immediately, no config files required:

ext install p402-protocol.p402

Then run P402: Configure API Key from the command palette.

→ VS Code Marketplace · Open VSX


Quick Start (Claude Desktop / any MCP client)

{
  "mcpServers": {
    "p402": {
      "command": "npx",
      "args": ["-y", "@p402/mcp-server"],
      "env": { "P402_API_KEY": "p402_live_..." }
    }
  }
}

→ MCP docs · MCP Registry


Quick Start (SDK)

npm install @p402/sdk
import P402Client from '@p402/sdk';

const p402 = new P402Client({ apiKey: process.env.P402_API_KEY });

// Drop-in OpenAI replacement — P402 picks the best provider
const response = await p402.chat({
  messages: [{ role: 'user', content: 'Explain x402 payments in one sentence.' }],
  p402: { mode: 'cost' }   // cost | quality | speed | balanced
});

console.log(response.choices[0].message.content);
// p402_metadata: { provider: 'deepseek', cost_usd: 0.00031, latency_ms: 412 }

Quick Start (CLI)

# Authenticate once
npx p402 login

# Chat using the cheapest provider
npx p402 chat "What is x402?" --mode cost

# Check facilitator health
npx p402 health

Routing Modes

ModeOptimizes ForTypical Provider
costLowest priceDeepSeek V3, Haiku 4.5, GPT-4o-mini
qualityBest outputClaude Opus 4.6, GPT-5, Gemini 3 Pro
speedLowest latencyGroq LPU, Flash models
balancedEqual weight (default)Sonnet 4.6, GPT-4o, Gemini Flash

Session Budgets

Enforce hard spending caps for autonomous agents:

// Create a $10 session — agent cannot spend a cent more
const session = await p402.createSession({ budget_usd: 10 });

// All chat requests are deducted from the session
const response = await p402.chat({
  messages,
  p402: { session_id: session.id, mode: 'cost' }
});

// Check remaining budget
const { budget } = await p402.getSession(session.id);
console.log(`$${budget.remaining_usd} remaining`);

x402 Payments

x402 is a machine-native payment protocol using HTTP 402. AI agents pay for resources using gasless EIP-3009 USDC transfers on Base L2.

Client → signs EIP-3009 authorization
       → POST /api/v1/facilitator/verify
       → POST /api/v1/facilitator/settle
Facilitator → executes transferWithAuthorization
            → pays gas (user pays zero gas)
            → returns { success, txHash, receipt }

Network: Base Mainnet (Chain ID: 8453) · Asset: USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

→ x402 payments guide


A2A Protocol

P402 implements the Google A2A spec over JSON-RPC 2.0. Agents communicate through structured tasks, discover capabilities via /.well-known/agent.json, and settle payments via the x402 extension.

// Discover P402's capabilities
GET https://p402.io/.well-known/agent.json

// Submit a task
POST https://p402.io/api/a2a
{ "jsonrpc": "2.0", "method": "tasks/send", "params": { ... } }

→ A2A protocol guide


Packages

PackageDescriptionVersion
@p402/sdkTypeScript SDK — P402Client, types, EIP-712 mandate helpersnpm
@p402/cliCLI tool — login, chat, sessions, mandates, analyticsnpm
@p402/mcp-serverstdio MCP server — 6 tools over Model Context Protocolnpm
@p402/mpp-methodmppx payment methods — Base EIP-3009 and Tempo TIP-20 multi-rail settlementnpm
p402 VS Code extensionEmbedded MCP server for VS Code, Cursor, and Windsurf — zero configMarketplace

Examples

ExampleWhat It Shows
01-quickstartLogin → chat → view spend in ~20 lines
02-openai-migrationDrop-in OpenAI SDK replacement
03-nextjs-session-budgetBudget-capped AI in a Next.js App Router project
04-a2a-agentsTwo agents communicating with x402 payment gate

Docs

Guide
Getting StartedAccount, API key, first request
AuthenticationAPI keys, env vars, security
Routing GuideModes, scoring, providers, models
x402 PaymentsEIP-3009, wire format, settlement
SessionsSession lifecycle + budget enforcement
A2A ProtocolJSON-RPC, mandates, Bazaar
CLI ReferenceFull CLI command reference
OpenAPI SpecMachine-readable API schema

Community

  • Dashboard: p402.io/dashboard
  • Docs: p402.io/docs
  • Issues: GitHub Issues
  • Security: See SECURITY.md for responsible disclosure
  • Contributing: See CONTRIBUTING.md

License

MIT © P402 Protocol

Featured
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
Keep your Mac awake
Keep your Mac awake
Keep your Mac awake while Claude Code and 40+ AI agents run. Sleeps when they're idle.
One time payment $9 →
Context.devContext.dev
Context.dev
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Make money from your Skills
Make money from your Skills
On Capafy, your Skill runs online 24/7 as an agent product, and you get paid every time someone uses it.
Start earning →
AppSignal
AppSignal
Monitor with ease. Code with confidence.
Start Free Trial →

Configuration

P402_API_KEY*secret

Your P402 API key. Get one at https://p402.io/dashboard/settings

P402_ROUTER_URL

P402 router base URL override. Defaults to https://p402.io

Registryactive
Package@p402/mcp-server
TransportSTDIO
AuthRequired
UpdatedMar 17, 2026
View on GitHub