Claude Skill
openclaw/mcporter
McPorter is a TypeScript tool that lets you call MCPs as simple TypeScript APIs or package them as CLI tools. Lightweight, type-safe, and easy to integrate.
Overview
Repository
Install this Skill
npx mcporter call linear.create_comment issueId:ENG-123 body:'Looks good!'Registry
npx mcporter call linear.create_comment issueId:ENG-123 body:'Looks good!'npx mcporter call 'linear.create_comment(issueId: "ENG-123", body: "Looks good!")'npx mcporter call server.tool -- --raw-valuenpx mcporter listnpx mcporter list context7 --schema
Summary
McPorter is a TypeScript tool that allows you to call MCPs (Model Context Protocols) as if they were simple TypeScript APIs, or package them as CLI tools.
通过TypeScript调用MCPs,伪装成简单的TypeScript API。或者将其打包为CLI工具。
Key features
- Call MCPs as simple TypeScript APIs
- Package MCPs as CLI tools
- Built with TypeScript for type safety
- Lightweight and easy to integrate
Use cases
- Integrate MCPs into TypeScript projects seamlessly
- Create CLI wrappers for MCP-based services
- Simplify MCP consumption in development workflows
README excerpt
# MCPorter 🧳 - Call MCPs from TypeScript or as CLI <p align="center"> <img src="https://raw.githubusercontent.com/steipete/mcporter/main/mcporter.png" alt="MCPorter header banner" width="1100"> </p> <p align="center"> <a href="https://www.npmjs.com/package/mcporter"><img src="https://img.shields.io/npm/v/mcporter?style=for-the-badge&logo=npm&logoColor=white" alt="npm version"></a> <a href="https://github.com/steipete/mcporter/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/steipete/mcporter/ci.yml?branch=main&style=for-the-badge&label=tests" alt="CI Status"></a> <a href="https://github.com/steipete/mcporter"><img src="https://img.shields.io/badge/platforms-macOS%20%7C%20Linux%20%7C%20Windows-blue?style=for-the-badge" alt="Platforms"></a> <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green?style=for-the-badge" alt="MIT License"></a> </p> _TypeScript runtime, CLI, and code-generation toolkit for the Model Context Protocol._ MCPorter helps you lean into the "code execution" workflows highlighted in Anthropic's **Code Execution with MCP** guidance: discover the MCP servers already configured on your system, call them directly, compose richer automations in TypeScript, and mint single-purpose CLIs when you need to share a tool. All of that works out of the box -- no boilerplate, no schema spelunking. ## Key Capabilities - **Zero-config discovery.** `createRuntime()` merges your home config (`~/.mcporter/mcporter.json[c]`, or `$XDG_CONFIG_HOME/mcporter/mcporter.json[c]` when set) first, then `config/mcporter.json`, plus Cursor/Claude/Codex/Windsurf/OpenCode/VS Code imports, expands `${ENV}` placeholders, and pools connections so you can reuse transports across multiple calls. - **One-command CLI