A Model Context Protocol (MCP) server extension for the Zed IDE that provides seamless integration with DeepWiki and Devin AI documentation services.
This extension uses a two-part architecture with automatic binary download:
Zed β Extension (WASM) β Auto-Downloaded Bridge (Native) β HTTP MCP Server
-
Extension (WASM) -
crates/extension/- Lightweight Zed extension compiled to WebAssembly
- Automatically downloads platform-specific bridge binary
- Provides configuration UI and command setup
- No async/HTTP dependencies (WASM-compatible)
-
Bridge Binary (Native) -
crates/bridge/- Auto-downloaded from GitHub releases per platform
- Full HTTP/async capabilities with tokio and reqwest
- Translates between STDIO (Zed) and HTTP (DeepWiki/Devin)
- Handles MCP protocol communication
- Free DeepWiki Access: Query public repository documentation
- Devin AI Integration: Enhanced AI-powered documentation with API key
- Automatic Setup: Bridge binary downloaded automatically per platform
- Type-Safe Configuration: JSON schema validation for settings
- Secure Authentication: Environment variable-based API key handling
- Protocol Compliance: Full MCP (Model Context Protocol) support
- Cross-Platform: Supports Linux (x86_64, ARM64), macOS (Intel, Apple Silicon), Windows
- Rust toolchain (latest stable)
- Zed IDE
- WASM target:
rustup target add wasm32-wasip1
- Open Zed
- Open Command Palette (
Cmd/Ctrl+Shift+P) - Type: "zed: extensions"
- Search for: "DeepWiki MCP"
- Click Install
The extension will automatically download the appropriate bridge binary for your platform when first used.
If you want to build from source:
-
Clone the repository:
git clone https://github.com/keshav1998/deepwiki-mcp-server cd deepwiki-mcp-server -
Build everything:
./build.sh
-
Install manually in Zed:
# Copy to Zed extensions directory cp -r dist/* ~/.config/zed/extensions/deepwiki-mcp-server/
Add to your Zed settings.json:
{
"context_servers": {
"deepwiki-mcp-server": {
"endpoint": "https://mcp.deepwiki.com",
"protocol": "mcp"
}
}
}{
"context_servers": {
"deepwiki-mcp-server": {
"endpoint": "https://mcp.devin.ai",
"protocol": "mcp",
"devin_api_key": "your-api-key-here"
}
}
}For secure API key management:
export DEVIN_API_KEY="your-api-key-here"deepwiki-mcp-server/
βββ crates/
β βββ extension/ # Zed WASM extension
β β βββ src/
β β β βββ lib.rs # Extension implementation
β β β βββ tests.rs # Extension tests
β β βββ configuration/ # UI configuration files
β βββ bridge/ # Native bridge binary
β βββ src/
β βββ main.rs # Bridge entry point
β βββ mcp_bridge/ # MCP protocol implementation
βββ extension.toml # Zed extension manifest
βββ build.sh # Build script
βββ scripts/ # Legacy shell scripts (deprecated)
# Build extension (WASM)
cargo build --manifest-path crates/extension/Cargo.toml --target wasm32-wasip1
# Build bridge (native)
cargo build --manifest-path crates/bridge/Cargo.toml --release
# Run tests
cargo test --workspace# Format code
cargo fmt --all
# Run clippy
cargo clippy --workspace --tests -- -D warnings
# Fix clippy issues automatically
cargo clippy --fix --allow-dirty --allow-staged --workspaceOnce installed and configured:
- Open a project in Zed
- Access the assistant panel
- Use context-aware queries like:
- "How do I implement authentication in this codebase?"
- "Show me examples of error handling patterns"
- "What are the available API endpoints?"
The extension will automatically query relevant documentation and provide contextual answers.
This extension implements the full Model Context Protocol v2024-11-05 specification:
- β Tools: Interactive documentation queries
- β Resources: Repository file access
- β Prompts: Predefined query templates
- β Initialization: Capability negotiation
- β Error Handling: Robust error reporting
- WASM Sandboxing: Extension runs in WebAssembly sandbox
- Process Isolation: Bridge runs as separate process
- Environment Variables: Sensitive data via env vars only
- No Hardcoded Secrets: All credentials externally managed
- Capability-Based: Fine-grained permission system
-
Automatic download failed:
- Check internet connectivity and GitHub access
- Restart Zed to retry the download
- Check Zed's extension logs for details
-
Bridge binary not working:
- The extension automatically handles binary installation
- If issues persist, try reinstalling the extension
- Check platform compatibility (Linux, macOS, Windows supported)
-
Authentication errors:
# Check API key in settings # Verify endpoint configuration
-
Manual installation needed:
# Download from: https://github.com/keshav1998/deepwiki-mcp-server/releases # Extract to extension's bin/ directory # Extension handles the rest automatically
Enable debug logging:
export DEBUG=1
export RUST_LOG=debugThen check Zed's extension logs for detailed information.
We welcome contributions! Please see our development guidelines:
- Rust Best Practices: Follow Rust API guidelines
- Security First: No hardcoded secrets, validate inputs
- WASM Compatibility: Keep extension dependencies minimal
- Type Safety: Use strong typing throughout
- Error Handling: Comprehensive error handling with context
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Make changes following our coding standards
- Add tests for new functionality
- Run the full test suite:
cargo test --workspace - Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Zed Team: For the excellent extension API and WebAssembly architecture
- MCP Specification: For providing a robust protocol for AI tool integration
- DeepWiki & Devin: For providing the documentation and AI services
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: [email protected]
Built with β€οΈ for the Zed community