Add MCP compatibility ledger tool and first-pass Go/Rust codegen hardening

This commit is contained in:
Bill
2026-02-25 22:46:33 -07:00
parent 6d60447d50
commit 9fe3c1aa93
11 changed files with 475 additions and 10 deletions

View File

@@ -35,6 +35,12 @@ static bool hasFlag(int argc, char** argv, const std::string& key) {
return false;
}
static std::string runtimeVersion() {
const char* envVersion = std::getenv("WHETSTONE_MCP_RUNTIME_VERSION");
if (envVersion != nullptr && *envVersion != '\0') return envVersion;
return "0.8.4";
}
// -----------------------------------------------------------------------
// Signal handling (same pattern as orchestrator_main.cpp)
// -----------------------------------------------------------------------
@@ -166,7 +172,7 @@ int main(int argc, char** argv) {
});
// Log startup info to stderr (stdout is the MCP transport)
std::cerr << "[whetstone-mcp] Starting MCP server v0.1.0\n";
std::cerr << "[whetstone-mcp] Starting MCP server v" << runtimeVersion() << "\n";
if (!state.workspaceRoot.empty())
std::cerr << "[whetstone-mcp] Workspace: " << state.workspaceRoot << "\n";
if (configLoad.found && !configLoad.config.mcpWorkspaceAlias.empty())