
patelnav/my-tools-mcp
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
A VSCode/Cursor extension that provides an integrated MCP server and UI panel for retrieving and displaying command-line tool 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. - 🔄 - Express + SSE server (ports 54321-54421) - Secure origin validation - Automatic port selection - Connection management and cleanup - Real-time event streaming - 🔍 - Package scripts (npm, yarn, pnpm) - Local binaries (node_modules/.bin) - Global tools (git, npm, yarn, pnpm) - Monorepo workspace support - 📚 - Help command execution (-h, --help) - Version information fetching - Secure command validation - Error handling - 💻 - React-based WebView panel - Status bar integration - Command palette support - Workspace path detection 3. Launch the extension: - Press F5 in VSCode to start debugging - The extension will start both the MCP server and WebView panel 1. Open the command palette (Cmd/Ctrl + Shift + P) 2.
README
원문 README의 일부입니다. 원문 보기.
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)
Extension Host (src/extension.ts)
├── Activates when VS Code starts
├── Creates MCP Server
│ └── Express + SSE Server (54321-54421 port range)
└── Creates WebView Panel
2. MCP Server (Middle Layer)
MCP Server (src/server/*)
├── SSE Event Stream
│ ├── Real-time tool discovery updates
│ ├── Documentation streaming
│ └── Connection state management
│
└── Tool Discovery System
├── path-scanner.ts
│ └── Finds tools in workspace (bin/, node_modules/.bin)
└── package-scanner.ts
└── Scans package.json for available tools
3. WebView Panel (Frontend)
React WebView (src/panel/*)
├── UI Components
│ └── Shows available tools and their docs
│
└── SSE Client
├── Requests available tools
└── Streams tool documentation
Project Structure
my-tools-mcp/
├── src/ # Source code
│ ├── extension.ts # Extension entry point
│ ├── env.ts # Environment configuration
│ ├── server/ # Built-in MCP server
│ │ ├── index.ts # Server setup and SSE handling
│ │ └── controllers/ # Tool discovery and execution
│ │ ├── docs/ # Documentation controllers
│ │ ├── path-scanner.ts # Tool discovery
│ │ └── package-scanner.ts # Package.json scanning
│ ├── panel/ # WebView UI (React)
│ │ ├── index.tsx # WebView entry point
│ │ ├── App.tsx # Main React component
│ │ └── components/ # UI components
│ ├── types/ # Shared TypeScript types
│ └── lib/ # Shared utilities
├── dist/ # Compiled output
└── src/__tests__/ # Test files
Development Setup
- Install dependencies:
pnpm install
- Start development:
# Start webpack in watch mode
pnpm run dev
# Or build for production
pnpm run build
- Launch the extension:
- Press F5 in VSCode to start debugging
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →