- 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
19 lines
576 B
V
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
|
|
}
|