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.
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.
š Built-in MCP Server
š Tool Discovery
š Documentation Retrieval
š» VS Code Integration
Extension Host (src/extension.ts)
āāā Activates when VS Code starts
āāā Creates MCP Server
ā āāā Express + SSE Server (54321-54421 port range)
āāā Creates WebView Panel
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
React WebView (src/panel/*)
āāā UI Components
ā āāā Shows available tools and their docs
ā
āāā SSE Client
āāā Requests available tools
āāā Streams tool documentation
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
pnpm install
# Start webpack in watch mode pnpm run dev # Or build for production pnpm run build
Package Scripts
Binary Tools
The extension includes comprehensive tests:
ISC
Discover shared experiences
Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!