Skip to main content

mcp-inspector

MCP Protocol Inspection and Debugging with Inspector CLI

来源信息

仓库
adeze/raindrop-mcp
最近来源活动
2026年1月21日 06:19
检测到的 SKILL.md 语言
英语
星标
188
Forks
29

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
mcp-inspector
description
MCP Protocol Inspection and Debugging with Inspector CLI
keywords
["mcp","inspector","debugging","protocol","testing","cli"]
# MCP Inspector Skill Guidelines for using the MCP Inspector tool in CLI mode for protocol inspection, debugging, and tool listing in a VS Code environment. ## Prerequisites - Ensure you have Node.js and npx installed. - Install MCP Inspector: `npx -y @modelcontextprotocol/inspector --help` - Build your MCP server (e.g., `bun run build` or equivalent). ## Usage Examples ### List Available Tools Run the following command in your VS Code terminal: ```bash npx -y @modelcontextprotocol/inspector --cli node build/index.js --method tools/list ``` ### Send a Protocol Request (e.g., ping) ```bash npx -y @modelcontextprotocol/inspector --cli node build/index.js --method ping ``` ### Debugging and Inspection - Use Inspector CLI to wrap your MCP server and inspect protocol traffic. - Example for STDIO server: ```bash npx -y @modelcontextprotocol/inspector node build/index.js ``` - For HTTP server: ```bash npx -y @modelcontextprotocol/inspector node build/server.js ``` ## Tips - Use Inspector CLI flags for advanced filtering, logging, and output formatting. See Inspector documentation for details. - Integrate Inspector CLI commands into your VS Code tasks or launch configurations for automated inspection and debugging. - Use Vitest or your preferred test runner to automate CLI checks (see `tests/inspector.test.ts` for examples). ## References - [MCP Inspector GitHub](https://github.com/modelcontextprotocol/inspector) - [Model Context Protocol Documentation](https://modelcontextprotocol.io/)
在 GitHub 查看