mcporter
БесплатноБез исполняемых скриптовНе проверенUse mcporter to call MCP servers — either from the CLI or from TypeScript scripts. Use when the user wants to list/call MCP tools, automate MCP interactions…
от felixge★ 31 звезда на GitHubОб этом скилле
mcporter
mcporter is a CLI and TypeScript runtime for calling MCP servers. It auto-discovers servers from ~/.mcporter/mcporter.json, config/mcporter.json, and editor imports (Cursor, Claude, Codex, etc.).
CLI Usage
List servers and tools
mcporter list # all configured servers
mcporter list linear # tool signatures for linear
mcporter list linear --schema # full JSON schemas
mcporter list linear --all-parameters # show all optional params
Call tools
# key=value style
mcporter call context7.resolve-library-id libraryName=react
# function-call style (matches signatures from `mcporter list`)
mcporter call 'linear.create_comment(issueId: "ENG-123", body: "Looks good!")'
# ad-hoc URL (no config needed)
mcporter call https://mcp.linear.app/mcp.search_documentation query=automations
# output formats
mcporter call server.tool --output json
mcporter call server.tool --output markdown
Auth
mcporter auth linear # complete OAuth flow
mcporter auth https://url/mcp # ad-hoc OAuth
Config management
mcporter config list
mcporter config add sentry https://mcp.sentry.dev/mcp
mcporter config remove sentry
mcporter config import cursor --copy
mcporter config doctor
TypeScript Scripting
Project setup
Always create a proper npm package — do NOT rely on global installs:
mkdir -p /tmp/my-script && cd /tmp/my-script
cat > package.json << 'EOF'
{
"name": "my-script",
"version": "1.0.0",
"private": true,
"type": "module",
"scripts": { "start": "tsx main.ts" },
"dependencies": { "mcporter": "^0.7.3", "tsx": "^4.21.0" }
}
EOF
npm install
"type": "module" is required — mcporter only exports ESM.
Script template
import { createRuntime, createServerProxy, type CallResult } from "mcporter";
async function main(): Promise<void> {
const runtime = await createRuntime();
try {
const server = createServerProxy(runtime, "server-name") as Record<
string,
(args: unknown) => Promise<CallResult>
>;
const result = await server.someToolName({ param: "value" });
// CallResult helpers:
result.text() // plain text
result.markdown() // markdown
result.json<T>() // parsed JSON with type parameter
result.images() // image content
result.content() // raw MCP content array
} finally {
await runtime.close();
}
}
main().catch((err) => { console.error(err); process.exit(1); });
Inline server definitions
For servers not in config:
const runtime = await createRuntime({
servers: [{
name: "context7",
description: "Context7 docs",
command: { kind: "http", url: new URL("https://mcp.context7.com/mcp") },
}],
});
Example: Context7 library lookup
import { createRuntime, createServerProxy, type CallResult } from "mcporter";
async function main(): Promise<void> {
const runtime = await createRuntime();
try {
const ctx = createServerProxy(runtime, "context7") as Record<
string, (args: unknown) => Promise<CallResult>
>;
const resolved = await ctx.resolveLibraryId({ libraryName: "react" });
const id = resolved.json<{
candidates?: { context7CompatibleLibraryID?: string }[];
}>()?.candidates?.[0]?.context7CompatibleLibraryID;
if (!id) throw new Error("Could not resolve library ID");
const docs = await ctx.getLibraryDocs({
context7CompatibleLibraryID: id, topic: "hooks",
});
console.log(docs.markdown() ?? docs.text());
} finally {
await runtime.close();
}
}
main().catch((err) => { console.error(err); process.exit(1); });
Установить mcporter в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл mcporter?
Use mcporter to call MCP servers — either from the CLI or from TypeScript scripts. Use when the user wants to list/call MCP tools, automate MCP interactions, or build scripts that talk to MCP servers.
Как установить скилл mcporter?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mcporter запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic