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.
npx skills add latestaiagents/agent-skills --skill mcp-transport-stdio-httpgit clone --depth 1 https://github.com/latestaiagents/agent-skillsWrote 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.
[](https://agentmods.dev/skills/latestaiagents/agent-skills/mcp-transport-stdio-http)<a href="https://agentmods.dev/skills/latestaiagents/agent-skills/mcp-transport-stdio-http"><img src="https://agentmods.dev/badge/skills/latestaiagents/agent-skills/mcp-transport-stdio-http/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.
<a href="https://agentmods.dev/skills/latestaiagents/agent-skills/mcp-transport-stdio-http"><img src="https://agentmods.dev/badge/skills/latestaiagents/agent-skills/mcp-transport-stdio-http.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00103 | $0.01397 |
| Opus 5.5 | $0.00041 | $0.00559 |
| Sonnet 5.5 | $0.00021 | $0.00279 |
| Haiku 4.5 | $0.00010 | $0.00140 |
Grade A, and why
mcp-transport-stdio-http 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 156 lines — stays where its author put it; the contents beside it link to each section on GitHub.
MCP Transports — stdio vs Streamable HTTP
Pick the right transport and the rest of your server design follows.
When to Use
- Starting a new MCP server and choosing a transport
- Migrating from deprecated SSE transport to Streamable HTTP
- Debugging "connection dropped" or "session expired" errors
- Scaling a remote MCP server horizontally
Transport Matrix
| Transport | Use when | Pros | Cons |
|---|---|---|---|
| stdio | Local tools, CLI integrations, single-user | Zero network, trusted process, simplest | Only local; one client per server process |
| Streamable HTTP | Remote multi-user servers | Bidirectional, resumable, load-balanceable | More complex; requires session layer |
| SSE (legacy) | Existing deployments | — | Deprecated; migrate to Streamable HTTP |
stdio Transport
Server reads from stdin, writes JSON-RPC to stdout, logs to stderr. Client spawns the process.
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
const transport = new StdioServerTransport();
await server.connect(transport);
Critical rule: never write non-JSON to stdout. console.log breaks the protocol. Use console.error for logs.
// BAD
console.log("Server started"); // corrupts protocol stream
// GOOD
console.error("Server started");
Streamable HTTP Transport (current spec)
Single HTTP endpoint handles all methods. Server pushes messages via SSE on long-lived GET, receives messages via POST, supports resumable sessions via Mcp-Session-Id header.
Server (TypeScript)
import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
import express from "express";
const app = express();
app.use(express.json());
const transports = new Map<string, StreamableHTTPServerTransport>();
app.all("/mcp", async (req, res) => {
const sessionId = req.headers["mcp-session-id"] as string | undefined;
let transport = sessionId ? transports.get(sessionId) : undefined;
if (!transport) {
transport = new StreamableHTTPServerTransport({
sessionIdGenerator: () => crypto.randomUUID(),
onsessioninitialized: (id) => transports.set(id, transport!),
});
await server.connect(transport);
}
await transport.handleRequest(req, res, req.body);
});
app.listen(3000);
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.
- 2mo ago First seen · 156 lines · 103 tokens per session scan A 76721d99ae50
mcp-transport-stdio-http is a skill published in the GitHub repository latestaiagents/agent-skills (6 stars, last pushed 2d ago), licensed MIT. It adds 103 tokens to every session and 1,397 once invoked, about $0.0004 per session on Opus 5.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-09-03.
mcp-transport-stdio-http compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mcp-transport-stdio-httplatestaiagents/agent-skills | Skill | 6 | 2d ago | MIT | A | 103 | Claude Code |
| fw-ai-actions-appfreshworks-developers/fw-dev-tools | Skill | 6 | 1mo ago | MIT | A | 123 | Claude Code |
| agent-raft-managerruvnet/ruflo | Skill | 81k | yesterday | MIT | A | 18 | Claude Code |
| nexent-daily-testModelEngine-Group/nexent | Skill | 6.1k | yesterday | MIT | A | 78 | Claude Code, Codex |
| moai-ref-api-patternsmodu-ai/moai-adk | Skill | 1.3k | 4d ago | Apache-2.0 | A | 85 | Claude Code |
| sinch-porting-apisinch/skills | Skill | 11 | 1mo ago | Apache-2.0 | A | 76 | Claude Code, Codex |
| sinch-voice-apisinch/skills | Skill | 11 | 1mo ago | Apache-2.0 | A | 92 | Claude Code, Codex |