adding-external-mcp

adding-external-mcp is a skill for Claude Code, Codex from XAIHT/Tlamatini. It costs 71 tokens per session (2,417 once invoked), scanned A, original, MIT.

A reference guide for adding a new external MCP server, a service that gives an AI client additional tools, to Tlamatini.

In plain words
What is it for?
Choosing a connection method, importing server details, provisioning its runtime, activating it, verifying it, and troubleshooting failures.
Why use it?
It explains the full setup path so the server can be catalogued, connected, activated, tested, and diagnosed without writing separate integration code for each server.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/xaiht/tlamatini/adding_external_mcp
Any agent
npx skills add XAIHT/Tlamatini --skill adding_external_mcp
Clone the repo
git clone --depth 1 https://github.com/XAIHT/Tlamatini

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 adding-external-mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/xaiht/tlamatini/adding_external_mcp.svg)](https://agentmods.dev/skills/xaiht/tlamatini/adding_external_mcp)
Your own site
<a href="https://agentmods.dev/skills/xaiht/tlamatini/adding_external_mcp"><img src="https://agentmods.dev/badge/skills/xaiht/tlamatini/adding_external_mcp.svg" alt="Measured on agentmods" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,417 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00071 $0.02417
Opus 5 $0.00036 $0.01208
Sonnet 5 $0.00014 $0.00483
Haiku 4.5 $0.00007 $0.00242

Measured 4d ago against content hash 78d75a81ab09, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

adding-external-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 4d 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.

Tlamatini/agent/skills_pkg/adding_external_mcp/SKILL.md · 272 lines

How it starts

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

Adding External MCP — canonical reference

The full, ground-truth procedure for adding a NEW external MCP server to Tlamatini universal MCP client layer. This skill makes Tlamatini autonomously capable of adding, configuring, activating, and verifying any external MCP server — robustly and bullet-proof.

What this skill does

Enables Tlamatini to add ANY external MCP server to her universal MCP client layer — the system that lets her use tools from arbitrary MCP servers declared in a JSON catalog (external_mcps.json), with no code per server.

Architecture overview

external_mcps.json (catalog) --> external_mcp_manager.py --> ext__<server>__<tool>
      |
      |-- _StdioMcpClient (local child)
      |-- _StreamableHttpMcpClient (HTTP)
      |-- _SseMcpClient (legacy SSE)
      |-- _WebSocketMcpClient (WS)
      |
      |-- external_mcp_defaults.py (code-owned defaults: memory, sequential-thinking)
      |-- runtime_provisioner.py (private npx/uvx/node provisioning)

Key constants: MAX_ACTIVE = 5 | _SUPPORTED_TRANSPORTS = {stdio, streamable-http, sse, websocket}

Procedure — adding a new external MCP server

Step 1 — Classify the server transport

Determine which transport the MCP server uses:

Transport When to use Config key
stdio Local child process (npx, uvx, docker, python) command + args
streamable-http HTTP endpoint (modern MCP servers) url
sse Legacy Server-Sent Events endpoint url
websocket WebSocket endpoint url

If the server provides a .mcp.json or equivalent config, copy it directly — the catalog uses the same mcpServers shape as Claude Code.

Step 2 — Build the server config

The server config is a JSON object with these fields:

{
  "command": "npx",
  "args": ["-y", "@some/mcp-server"],
  "env": { "API_KEY": "<REDACTED>" },
  "transport": "stdio",
  "description": "Optional human-readable description"
}

Read the full file on GitHub · 272 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 272 lines · 71 tokens per session scan A 78d75a81ab09

Subscribe to this mod's changes

adding-external-mcp is a skill published in the GitHub repository XAIHT/Tlamatini (16 stars, last pushed 3d ago), licensed MIT. It adds 71 tokens to every session and 2,417 once invoked, about $0.0004 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-30.

Related

Other skills, from other repositories

local-tools

Access local system resources including Calendar on macOS and Windows. Use this skill when you need to manage user's schedule directly on their device.

netease-youdao/LobsterAI · 30 tokens

seedance

Generate AI videos using Volcengine Seedance model. Supports text-to-video (T2V), image-to-video (I2V), and audio-synced video generation. Use this skill when the user wants to create or generate videos.

netease-youdao/LobsterAI · 52 tokens

develop-web-game

Use when Codex is building or iterating on a web game (HTML/JS) and needs a reliable development + testing loop: implement small changes, run a Playwright-based test script with short input bursts and intentional pauses, inspect screenshots/text, and review console errors with rendergametotext.

netease-youdao/LobsterAI · 64 tokens

article-writer

Multi-style article creation skill. Supports 5 writing styles (deep analysis, practical guide, story-driven, opinion, news brief), including complete workflow: material collection → outline → content → formatting. Activated when users mention "write article", "write post", "create", or "draft".

netease-youdao/LobsterAI · 62 tokens

skin-creator

Create and apply a two-asset LobsterAI visual skin from the user's style description. Use only when the AI Skin Designer kit supplies the structured skinpack workflow marker; do not use for ordinary theme or image requests.

netease-youdao/LobsterAI · 48 tokens

content-planner

WeChat Official Account topic planning and content calendar management. Based on WeChat article search and trending analysis, generates differentiated topic recommendations and outputs structured content calendars. Activated when users mention "topic", "planning", "content calendar", "trending", or "what to write next…

netease-youdao/LobsterAI · 63 tokens