Expand description
Progressive loading code generator.
Generates TypeScript files for progressive loading where each tool is in a separate file, enabling Claude Code to load only what it needs.
§Examples
use mcp_execution_codegen::progressive::ProgressiveGenerator;
use mcp_execution_introspector::{Introspector, ServerInfo};
use mcp_execution_core::{ServerId, ServerConfig};
let mut introspector = Introspector::new();
let server_id = ServerId::new("github");
let config = ServerConfig::builder().command("/path/to/server".to_string()).build();
let info = introspector.discover_server(server_id, &config).await?;
let generator = ProgressiveGenerator::new()?;
let code = generator.generate(&info)?;
// Generated files:
// - index.ts (re-exports)
// - createIssue.ts
// - updateIssue.ts
// - ...
// - _runtime/mcp-bridge.ts
println!("Generated {} files", code.file_count());Structs§
- Progressive
Generator - Generator for progressive loading TypeScript files.