JM

jasonkneen/mcpz

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

34 stars 2 forks 质量 47 趋势 12

该扩展是开源的,位于https://github.com/jasonkneen/mcpz-vscode,并位于mcspx-tweaks分支中

概览

该扩展是开源的,位于https://github.com/jasonkneen/mcpz-vscode,并位于mcspx-tweaks分支中 https://github.com/jasonkneen/mcpz-vscode mcpsx(模型上下文协议服务器可计算)的命令行接口,允许您管理、查询并与模型上下文协议(MCP)服务器及工具交互。 CLI可以通过以下任意命令访问:- mcps(主命令) - mcpz(扩展别名) mcpz CLI 为与模型上下文协议服务器合作提供了强大的功能: 1. : 单独或组合启动MCP服务器和工具 2.: 轻松管理您的MCP配置 3.: 随时查看可用服务器和工具 4.: 创建和管理服务器及工具组以简化工作流程 5.: 运行特定服务器、工具或组合 将mcpz启动为标准服务器。这是VSCode扩展用来与MCP服务器通信的主要命令。

概述(AI 翻译)

该扩展是开源的,位于https://github.com/jasonkneen/mcpz-vscode,并位于mcspx-tweaks分支中

https://github.com/jasonkneen/mcpz-vscode

MCPZ CLI

https://github.com/jasonkneen/mcpz-cli

mcpsx(模型上下文协议服务器可计算)的命令行接口,允许您管理、查询并与模型上下文协议(MCP)服务器及工具交互。

安装

用途

该CLI可以通过以下任一命令访问:

  • mcps(主命令)
  • mcpz(扩展别名)

主要特色

mcpz CLI 为与模型上下文协议服务器合作提供了强大的功能:

  1. 运行服务器和工具:单独或组合启动MCP服务器和工具
  2. 添加和删除:轻松管理你的MCP配置
  3. 查询与列表:随时查看可用服务器和工具
  4. 分组:创建和管理服务器和工具组,简化工作流程
  5. 灵活过滤:运行特定服务器、工具或组合

命令

run

将mcpz启动为标准服务器。这是VSCode扩展用来与MCP服务器通信的主要命令。

选项:

  • -s, --server - 只加载特定服务器

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

VSCode Extension

The Extension is open-source and at https://github.com/jasonkneen/mcpz-vscode and in the mcspx-tweaks branch

https://github.com/jasonkneen/mcpz-vscode

mcpz cli

https://github.com/jasonkneen/mcpz-cli

Command line interface for mcpsx (Model Context Protocol Server eXecutable), allowing you to manage, query, and interact with Model Context Protocol (MCP) servers and tools.

Installation

# Install globally
npm install -g @mcpz/cli

# Or use with npx
npx @mcpz/cli

Usage

The CLI can be accessed using any of these commands:

  • mcps (primary command)
  • mcpz (extended alias)
# Show help
mcpz help

# Start MCPS as a stdio server
mcpz run

# Start with specific servers and tools
mcpz run --server="sleep"
mcpz run --servers="python,pytorch" --tool="predict"

# Server group management
mcpz groups add "python-stack" --servers="python,pytorch,huggingface"
mmcpzcpsx run --servers="python-stack"

# Add a new MCP configuration
mcpz add "My Server" --command "node" --args "server.js"

# List MCP configurations
mcpz list

# Remove an MCP configuration
mcpz remove "My Server"

# Use a specific MCP configuration
mcpz use "My Server"

Key Features

mcpz CLI provides powerful capabilities for working with Model Context Protocol servers:

  1. Run Servers & Tools: Start MCP servers and tools individually or in combination
  2. Add & Remove: Easily manage your MCP configurations
  3. Query & List: View available servers and tools at any time
  4. Grouping: Create and manage groups of servers and tools for simplified workflows
  5. Flexible Filtering: Run specific servers, tools, or combinations

Commands

run

Start mcpz as a stdio server. This is the main command used by the VSCode extension to communicate with MCP servers.

mcpz run [options]

Options:

  • -s, --server - Load only a specific server
  • -S, --servers - Load only specific servers (comma-separated)
  • -t, --tool - Load only a specific tool
  • -T, --tools - Load only specific tools (comma-separated)

Examples:

# Load all servers and tools
mcpz run

# Load only the 'sleep' server
mcpz run --server="sleep"

# Load multiple servers
mcpz run --servers="python,pytorch"

# Load specific tools from specific servers
mcpz run --servers="python" --tools="predict,generate"

# Use a server group
mcpz run --servers="python-stack"

groups

Manage server and tool groups. Groups allow you to create collections of MCP servers and tools that can be used together.

mcpz groups 

Subcommands:

groups add

Create a new server group.

mcpz groups add  --servers="server1,server2,..."

Example:

# Create a 'python-stack' group containing multiple servers
mcpz groups add "python-stack" --servers="python,pytorch,huggingface"
在 GitHub 查看完整 README

安装

npx @mcpz/cli
新手?先看 mcpskill.org 教程 →