跳到正文
Skillpedia
连接器(MCP)260k · #505

mcporter

它能做什么

它让你在命令行中发现并调用 MCP 服务器及其工具,包括你的电脑上其他 AI 应用中已设置的服务器。适合想在终端中快速使用 MCP 工具的人。

适用场景

  • ✓你想查看电脑上有哪些 MCP 服务器和工具可用的时候。
  • ✓你想用简单的键和值作为输入来调用某个特定 MCP 工具的时候。
  • ✓你想通过网址连接某个 MCP 服务器进行快速测试的时候。

技能链接

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/mcp/mcporter/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/mcp/mcporter/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请列出我可用的 MCP 工具,并调用能列出我未关闭的 Linear 问题的那个工具。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体在终端中运行 mcporter 命令,列出服务器及其工具详情,然后用键和值参数调用工具。它也可以通过网址连接服务器,或即时启动本地服务器。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

mcporter

Use mcporter to discover, call, and manage MCP (Model Context Protocol) servers and tools directly from the terminal.

Prerequisites

Requires Node.js:

# No install needed (runs via npx)
npx mcporter list

# Or install globally
npm install -g mcporter

Quick Start

# List MCP servers already configured on this machine
mcporter list

# List tools for a specific server with schema details
mcporter list <server> --schema

# Call a tool
mcporter call <server.tool> key=value

Discovering MCP Servers

mcporter auto-discovers servers configured by other MCP clients (Claude Desktop, Cursor, etc.) on the machine. To find new servers to use, browse registries like mcpfinder.dev or mcp.so, then connect ad-hoc:

# Connect to any MCP server by URL (no config needed)
mcporter list --http-url https://some-mcp-server.com --name my_server

# Or run a stdio server on the fly
mcporter list --stdio "npx -y @modelcontextprotocol/server-filesystem" --name fs

Calling Tools

# Key=value syntax
mcporter call linear.list_issues team=ENG limit:5

# Function syntax
mcporter call "linear.create_issue(title: \"Bug fix needed\")"

# Ad-hoc HTTP server (no config needed)
mcporter call https://api.example.com/mcp.fetch url=https://example.com

# Ad-hoc stdio server
mcporter call --stdio "bun run ./server.ts" scrape url=https://example.com

# JSON payload
mcporter call <server.tool> --args '{"limit": 5}'

# Machine-readable output (recommended for Hermes)
mcporter call <server.tool> key=value --output json

Auth and Config

# OAuth login for a server
mcporter auth <server | url> [--reset]

# Manage config
mcporter config list
mcporter config get <key>
mcporter config add <server>
mcporter config remove <server>
mcporter config import <path>

Config file location: ./config/mcporter.json (override with --config).

Daemon

For persistent server connections:

mcporter daemon start
mcporter daemon status
mcporter daemon stop
mcporter daemon restart

Code Generation

# Generate a CLI wrapper for an MCP server
mcporter generate-cli --server <name>
mcporter generate-cli --command <url>

# Inspect a generated CLI
mcporter inspect-cli <path> [--json]

# Generate TypeScript types/client
mcporter emit-ts <server> --mode client
mcporter emit-ts <server> --mode types

Notes

  • Use --output json for structured output that's easier to parse
  • Ad-hoc servers (HTTP URL or --stdio command) work without any config — useful for one-off calls
  • OAuth auth may require interactive browser flow — use terminal(command="mcporter auth <server>", pty=true) if needed
常见问题

它需要 Node.js 吗?

需要。技能要求安装 Node.js,你可以通过 npx 运行,无需全局安装。

它能找到其他应用中设置的服务器吗?

能。技能说明它会自动发现 Claude Desktop 或 Cursor 等其他 MCP 客户端中配置的服务器。

我能不做任何设置就试用某个服务器吗?

可以。你可以通过网址连接服务器,无需任何配置。

详情

作者的原始描述

List, auth, and call MCP servers/tools from the terminal.

repo: NousResearch/hermes-agent

热度

GitHub 星标
260k
排名
#505
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能