Used as the backend server technology for the MCP server, providing HTTP and SSE (Server-Sent Events) capabilities
Detected as a global tool to provide documentation through the MCP server
Detected as a global tool and used to discover package scripts to provide documentation through the MCP server
Detected as a global tool and used to discover package scripts to provide documentation through the MCP server
Used for building the WebView panel frontend of the extension
Detected as a global tool and used to discover package scripts to provide documentation through the MCP server
MCP Tools Documentation
A VSCode/Cursor extension that provides an integrated MCP server and UI panel for retrieving and displaying command-line tool documentation. The extension automatically detects tools in your workspace and provides their documentation through a WebView panel.
Core Features
- 🔄 Built-in MCP Server
- Express + SSE server (ports 54321-54421)
- Secure origin validation
- Automatic port selection
- Connection management and cleanup
- Real-time event streaming
- 🔍 Tool Discovery
- Package scripts (npm, yarn, pnpm)
- Local binaries (node_modules/.bin)
- Global tools (git, npm, yarn, pnpm)
- Monorepo workspace support
- 📚 Documentation Retrieval
- Help command execution (-h, --help)
- Version information fetching
- Secure command validation
- Error handling
- 💻 VS Code Integration
- React-based WebView panel
- Status bar integration
- Command palette support
- Workspace path detection
Architecture
1. VS Code Extension (Backend)
2. MCP Server (Middle Layer)
3. WebView Panel (Frontend)
Project Structure
Development Setup
- Install dependencies:
- Start development:
- Launch the extension:
- Press F5 in VSCode to start debugging
- The extension will start both the MCP server and WebView panel
Usage
- Open the command palette (Cmd/Ctrl + Shift + P)
- Type "MCP Tools" and select the command
- The WebView panel will open and display available tools
- Select a tool to view its documentation
Technical Details
Tool Discovery
- Package Scripts
- Automatically detects npm/yarn/pnpm scripts
- Shows script source and working directory
- Supports monorepo workspaces
- Validates script existence
- Binary Tools
- Finds tools in node_modules/.bin
- Detects global tools (git, npm, yarn, pnpm)
- Validates tool existence and permissions
- Handles path resolution
Documentation Retrieval
- Executes help commands (-h, --help)
- Fetches version information
- Handles command execution errors
- Validates tool names and arguments
- Implements proper timeouts
SSE Communication
- Real-time tool discovery updates
- Secure origin validation
- Connection management and cleanup
- Error handling and reporting
- Automatic reconnection support
- Event-based streaming
- Bi-directional message passing
Security Features
- Tool name validation
- Command injection prevention
- Origin validation for SSE connections
- Proper error handling and reporting
- Resource cleanup
- Connection state management
Testing
The extension includes comprehensive tests:
- Integration tests for server functionality
- VS Code extension tests
- Tool discovery tests
- Security validation tests
- SSE communication tests
License
ISC
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Facilitates real-time tool discovery and documentation retrieval for command-line tools within a VSCode extension, using Express and SSE for secure and dynamic content streaming.
Related Resources
Related MCP Servers
- -securityAlicense-qualityA VS Code extension provides a MCP server that exposes Roslyn language features. It enables tools like find usages, go to definition, quick info, etc.Last updated -154TypeScriptAGPL 3.0
- -securityAlicense-qualityA lightweight bridge extension that enables Claude Desktop to connect to VSCode workspaces via Model Context Protocol, allowing Claude to read and write files, create directories, and list contents in your workspace.Last updated -8TypeScriptMIT License
- AsecurityAlicenseAqualityProvides tools for analyzing project structures, searching through codebases, managing dependencies, and performing file operations with advanced filtering capabilities.Last updated -65121TypeScriptMIT License
- -securityFlicense-qualityHTTP-based server that provides semantic code search capabilities to IDEs through the Model Context Protocol, allowing efficient codebase exploration without repeated indexing.Last updated -855TypeScript