OM

openclaw/mcporter

Developer tools

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기

5.1천 stars 361 forks 품질 88 트렌드 49MIT

간단한 TypeScript API로 위장한 TypeScript로 MCP를 호출할 수도 있습니다. 또는 CLI로 패키징할 수도 있습니다.

개요

TypeScript 런타임, CLI, 모델 컨텍스트 프로토콜용 코드 생성 툴킷. MCPorter는 Anthropic 가이드에서 강조한 "코드 실행" 워크플로우에 집중할 수 있도록 도와줍니다: 이미 시스템에 설정된 MCP 서버를 찾아 직접 호출하고, TypeScript에서 더 풍부한 자동화를 작성하며, 도구를 공유할 때 단일 목적 CLI를 작성할 수 있습니다. 이 모든 것이 바로 작동하며, 표준화된 템플릿이나 스키마 탐색 없이 작동합니다. - createRuntime()은 홈 설정(~/.mcporter/mcporter.json[c], 또는 설정 시 $XDG_CONFIG_HOME/mcporter/mcporter.json[c])을 먼저 병합하고, 그 다음 config/mcporter.json, 그리고 Cursor/Claude/Codex/Windsurf/OpenCode/VS Code를 가져오고, ${ENV} 자리 표시자를 확장하며, 여러 호출에서 전송을 재사용할 수 있도록 연결을 풀합니다. - mcporter generate-cli는 모든 MCP 서버 정의를 즉시 실행 가능한 CLI로 변환하며, 선택적으로 번들링/컴파일과 메타데이터를 통해 쉽게 재생성할 수 있습니다. - mcporter emit-ts .d.

개요(AI 번역)

MCPorter는 모델 컨텍스트 프로토콜 서버를 발견하고 호출하기 위한 TypeScript 런타임 및 명령줄 도구입니다. 터미널, 스크립트 또는 생성된 독립 실행형 CLI에서 동일한 MCP 도구가 필요한 개발자와 코딩 에이전트를 위한 것입니다.

설치

CLI 설치 없이 시도해 보세요:

반복 명령줄 사용을 위해 설치하세요:

npm 설치에는 Node 24 이상이 필요합니다. TypeScript 런타임의 경우, 패키지 매니저로 프로젝트에 mcporter를 추가하세요. 서명된 macOS 바이너리와 지원되는 기타 설치 경로는 설치 가이드에 다루어져 있습니다.

퀵 스타트

공개 MCP 서버를 검사한 후 그 도구 중 하나를 호출하세요:

첫 번째 명령어는 서버의 TypeScript 스타일 도구 서명을 출력합니다. 두 번째 명령어는 로컬 설정이나 자격 증명 없이 일치하는 Context7 라이브러리 ID를 반환합니다. 리소스, 생성된 CLI, 타입된 클라이언트에 대한 5분 빠른 시작 문서를 참조하세요.

핵심 워크플로우

목표 명령어 또는 API 세부 정보
서버 및 도구 발견 mcporter list CLI 참조

이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.

README

원문 README의 일부입니다. 원문 보기.

MCPorter 🧳 — Carry MCP tools into scripts, CLIs, and agents

MCPorter is a TypeScript runtime and command-line tool for discovering and calling Model Context Protocol servers. It is for developers and coding agents that need the same MCP tools from a terminal, a script, or a generated standalone CLI.

Install

Try the CLI without installing it:

npx mcporter --version

Install it for repeated command-line use:

brew install steipete/tap/mcporter
# or
npm install -g mcporter

Node 24 or newer is required for npm installs. For the TypeScript runtime, add mcporter to your project with your package manager. Signed macOS binaries and the other supported install paths are covered in the install guide.

Quick start

Inspect a public MCP server, then call one of its tools:

npx mcporter list https://mcp.context7.com/mcp --brief
npx mcporter call https://mcp.context7.com/mcp.resolve-library-id \
  query="React hooks docs" libraryName=react

The first command prints the server’s TypeScript-style tool signatures. The second returns matching Context7 library IDs without requiring local configuration or credentials. See the five-minute quickstart for resources, generated CLIs, and typed clients.

Core workflows

Goal Command or API Details
Discover servers and tools mcporter list CLI reference
Call tools and read resources mcporter call, mcporter resource Call syntax
Connect to a one-off URL or stdio command --http-url, --stdio Ad-hoc servers
Complete or seed OAuth mcporter auth, mcporter vault Configuration
Encrypt the OAuth vault at rest MCPORTER_VAULT_PASSWORD Vault Encryption
GitHub에서 전체 README 보기

설치

npx mcporter --version
MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →

설정

{ "mcpServers": { "context7": { "url": "https://mcp.context7.com/mcp" } } }