v3-mcp-optimization

v3-mcp-optimization is a skill for Claude Code, Codex from mattmre/EVOKORE-MCP-PUBLIC. It costs 58 tokens per session (1,939 once invoked), scanned A, original, MIT.

A set of six ways to improve ProxyManager, a TypeScript component that routes requests to other tool servers, when measurements show it is slow.

In plain words
What is it for?
Use it to improve tool lookup, caching, compression of multi-tool requests, reuse of server connections, delayed data loading, or parallel startup.
Why use it?
It helps identify a specific performance bottleneck before changing code, reducing the risk of optimizations that make startup or memory use worse.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to improve tool lookup, caching, compression of multi-tool requests, reuse of server connections, delayed data loading, or parallel startup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mattmre/evokore-mcp-public/v3-mcp-optimization
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mattmre/EVOKORE-MCP-PUBLIC --skill v3-mcp-optimization
Clone the repo
git clone --depth 1 https://github.com/mattmre/EVOKORE-MCP-PUBLIC

Made for: Claude Code, Codex.

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 v3-mcp-optimization

README.md
[![agentmods](https://agentmods.dev/badge/skills/mattmre/evokore-mcp-public/v3-mcp-optimization/github.svg)](https://agentmods.dev/skills/mattmre/evokore-mcp-public/v3-mcp-optimization)
Your own site
<a href="https://agentmods.dev/skills/mattmre/evokore-mcp-public/v3-mcp-optimization"><img src="https://agentmods.dev/badge/skills/mattmre/evokore-mcp-public/v3-mcp-optimization/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for v3-mcp-optimization

Your own site · 80×15
<a href="https://agentmods.dev/skills/mattmre/evokore-mcp-public/v3-mcp-optimization"><img src="https://agentmods.dev/badge/skills/mattmre/evokore-mcp-public/v3-mcp-optimization.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,939 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 original No closer match found 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.00058 $0.01939
Opus 5 $0.00029 $0.00970
Sonnet 5 $0.00012 $0.00388
Haiku 4.5 $0.00006 $0.00194

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

Security

Grade A, and why

v3-mcp-optimization 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 11d 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.

SKILLS/EVOKORE EXTENSIONS/v3-mcp-optimization/SKILL.md · 192 lines

How it starts

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

v3 MCP Optimization Skill

Catalog of six concrete optimization patterns for EVOKORE-MCP's ProxyManager in v3. Each pattern has a measured-or-expected gain, a trigger condition, a TypeScript snippet, and an anti-pattern note. Apply these only when a profiler or benchmark identifies the corresponding bottleneck — premature application of (3) or (5) can regress cold-start.

Trigger

Use this skill when:

  • Tool dispatch shows up as hot in a flame graph (indicates pattern 1)
  • Child server boot dominates session startup time (indicates patterns 4 and 6)
  • Repeated tool-schema lookups allocate heavily (indicates patterns 2 and 5)
  • Multi-tool workflows show N× round-trip overhead (indicates pattern 3)

Pattern Catalog

1. O(1) Hash-Map Tool Lookup

Replace the linear tools.find(t => t.name === name) scan with a Map<string, Tool> built at registration time. With ~300 tools across proxied servers, this moves dispatch from O(n) to O(1).

Expected gain: 20–60× speedup on dispatch for aggregators with 100+ tools.

// Before
const tool = this.tools.find(t => t.name === name); // O(n)

// After
private toolIndex: Map<string, Tool> = new Map();
registerTool(tool: Tool) {
  this.toolIndex.set(tool.name, tool);
}
dispatch(name: string) {
  const tool = this.toolIndex.get(name); // O(1)
  if (!tool) throw new Error(`Unknown tool: ${name}`);
  return tool;
}

2. 3-Tier Cache (L1 in-memory, L2 filesystem, L3 remote registry)

Skill and tool metadata flows through a three-level cache. L1 is a Map with LRU eviction; L2 is an on-disk JSON cache under ~/.evokore/cache/; L3 is the remote registry fetch. Hits cascade downward and fill upward.

Expected gain: cold-start ~40% faster on warm L2, ~95% faster on warm L1.

async getSkill(name: string): Promise<Skill> {
  // L1
  const hit1 = this.l1.get(name);
  if (hit1 && !this.isStale(hit1)) return hit1;

  // L2
  const hit2 = await this.l2ReadJson(`skills/${name}.json`);
  if (hit2 && !this.isStale(hit2)) {
    this.l1.set(name, hit2);
    return hit2;
  }

  // L3
  const fresh = await this.registry.fetchSkill(name);
  await this.l2WriteJson(`skills/${name}.json`, fresh);
  this.l1.set(name, fresh);
  return fresh;
}

Read the full file on GitHub · 192 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. 11d ago First seen · 192 lines · 58 tokens per session scan A dfaa6ff3126f

Subscribe to this mod's changes

v3-mcp-optimization is a skill published in the GitHub repository mattmre/EVOKORE-MCP-PUBLIC (3 stars, last pushed 3mo ago), licensed MIT. It adds 58 tokens to every session and 1,939 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

node-modern

Use this skill when writing, reviewing, or refactoring Node.js >= 22 TypeScript code in WrongStack. Triggers: ESM imports, fetch usage, AbortSignal, node: protocol, Web Streams, or any async patterns.

WrongStack/WrongStack · 52 tokens

typescript-strict

Use this skill when writing or reviewing TypeScript code with strict mode in WrongStack. Triggers: user mentions "TypeScript", "strict", "type error", "type safety", "narrowing", "branded type", "discriminated union", "noUncheckedIndexedAccess".

WrongStack/WrongStack · 63 tokens

ai-provider-anthropic-sdk

Official Anthropic SDK patterns for TypeScript/Node.js — client setup, Messages API, streaming, tool use, vision, extended thinking, structured outputs, prompt caching, batch API, and production best practices.

agents-inc/skills · 48 tokens

ai-infrastructure-ollama

Local LLM inference with the Ollama JavaScript client -- chat, streaming, tool calling, vision, embeddings, structured output, model management, and OpenAI-compatible endpoint.

agents-inc/skills · 41 tokens

ai-infrastructure-replicate

Replicate SDK patterns for TypeScript/Node.js -- client setup, predictions, streaming, webhooks, file handling, model versioning, deployments, and training.

agents-inc/skills · 39 tokens

ai-infrastructure-together-ai

Together AI SDK patterns for TypeScript — client setup, chat completions, streaming, structured output, function calling, embeddings, image generation, fine-tuning, and OpenAI-compatible endpoints.

agents-inc/skills · 44 tokens