Skip to main content

Crate windjammer_mcp

Crate windjammer_mcp 

Source
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§

pub use error::McpError;
pub use error::McpResult;
pub use server::McpServer;

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