Files
herolib/lib/ai/mcp/vcode/cmd/main.v
Mahmoud-Emad 10ce2ca1cd refactor: introduce mcpcore and clean up STDIO transport
- Extract core MCP logic into a new `mcpcore` module
- Remove logging that interferes with JSON-RPC over STDIO
- Improve server loop to parse requests before handling
- Add stub for `logging/setLevel` JSON-RPC method
- Refactor vcode server into a dedicated logic submodule
2025-09-15 11:59:24 +03:00

19 lines
576 B
V

module main
import freeflowuniverse.herolib.ai.mcp.vcode
fn main() {
// Create a VCode instance
v := &vcode.VCode{}
// Create a placeholder MCP server (actual implementation pending mcpcore fixes)
result := vcode.new_mcp_server(v) or {
// Note: Removed eprintln() as it interferes with STDIO transport JSON-RPC communication
return
}
// Note: Removed println() as it interferes with STDIO transport JSON-RPC communication
// TODO: Implement actual MCP server startup once mcpcore module is fixed
_ = result // Use the result to avoid unused variable warning
}