MCP.so
登录

Swiss Army Knife for MCP Servers

@f

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

f

关于 Swiss Army Knife for MCP Servers

A command-line interface for interacting with MCP (Model Context Protocol) servers using both stdio and HTTP transport.

Swiss Army Knife for MCP Servers 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcptools": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "GITHUB_PERSONAL_ACCESS_TOKEN",
        "ghcr.io/github/github-mcp-server"
      ]
    }
  }
}

Swiss Army Knife for MCP Servers 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Swiss Army Knife for MCP Servers?

Swiss Army Knife for MCP Servers is a comprehensive command-line interface for interacting with Model Context Protocol (MCP) servers. It allows developers to discover, call, and manage tools, resources, and prompts from any MCP-compatible server, and supports multiple transport methods and output formats.

How to use Swiss Army Knife for MCP Servers?

Install via Homebrew on macOS (brew tap f/mcptools && brew install mcp) or from source on Windows/Linux with go install github.com/f/mcptools/cmd/mcptools@latest. Use commands like mcp tools, mcp call, mcp shell, and mcp web to interact with MCP servers.

Key features of Swiss Army Knife for MCP Servers

  • List available tools, resources, and prompts from MCP servers.
  • Call tools, read resources, and get prompts.
  • Interactive shell and web interface for exploring servers.
  • Create mock servers, proxy requests to shell scripts.
  • Scaffold new MCP projects with TypeScript support.
  • Guard and restrict access to specific tools and resources.
  • Supports Stdio, HTTP SSE, and Streamable HTTP transports.
  • Output formats: table, JSON, and pretty-printed JSON.

Use cases of Swiss Army Knife for MCP Servers

  • Debugging an MCP server by listing its available tools and resources.
  • Scripting tool calls in CI/CD pipelines or automation workflows.
  • Testing client applications against a mock MCP server.
  • Building a custom proxy that forwards tool calls to shell scripts.
  • Scaffolding a new MCP server project with TypeScript.

常见问题

1

How do I install Swiss Army Knife for MCP Servers?

On macOS, use Homebrew: `brew tap f/mcptools && brew install mcp`. On Windows and Linux, install from source: `go install github.com/f/mcptools/cmd/mcptools@latest`. The binary is installed as `mcp` (or `mcpt` / `mcptools` to avoid conflicts).

2

What transports does it support?

It supports three transport methods: Stdio (stdin/stdout), HTTP SSE (legacy, for URLs ending with `/sse`), and Streamable HTTP (recommended, auto-detected from HTTP/HTTPS URLs).

3

What output formats are available?

Three output formats: `table` (default, colorized man-page style), `json` (compact JSON), and `pretty` (indented JSON).

4

Can I use Swiss Army Knife for MCP Servers on Windows?

Yes. Install from source using Go on Windows, macOS, and GNU/Linux.

5

How do I start the web interface?

Use the `mcp web` command followed by the server command or URL, e.g., `mcp web npx -y @modelcontextprotocol/server-filesystem ~` or `mcp web https://ne.tools`. The default port is 41999; use `--port` to change it.

评论

其他 分类下的更多 MCP 服务器