Expand description
§Windjammer MCP Server
Model Context Protocol (MCP) server for AI-powered Windjammer development.
This crate provides a complete MCP server implementation that enables AI assistants (Claude, ChatGPT, etc.) to understand, analyze, and generate Windjammer code.
§Features
- Code Understanding: Parse, analyze, and explain Windjammer code
- Code Generation: Generate idiomatic Windjammer from natural language
- Refactoring: Extract functions, inline variables, rename symbols
- Error Handling: Explain errors and suggest fixes
- Workspace Operations: Search code, get context, list symbols
- Shared Infrastructure: Uses same Salsa database as LSP for consistency
§Example
use windjammer_mcp::McpServer;
#[tokio::main]
async fn main() {
let server = McpServer::new().await.unwrap();
server.run_stdio().await.unwrap();
}Re-exports§
Modules§
- agent_
index - Embedded agent index artifacts for MCP resources and tools.
- error
- Error types for the Windjammer MCP server
- http_
server - Streamable HTTP transport for MCP (2025-06-18 specification)
- oauth
- OAuth 2.0 Authentication for MCP HTTP Transport
- protocol
- MCP protocol types and JSON-RPC message structures
- server
- MCP server implementation
- tools
- MCP tools for Windjammer code understanding, generation, and refactoring
Constants§
- MCP_
VERSION - MCP protocol version (2025-06-18 spec)
- SERVER_
VERSION - Windjammer MCP server version