Remove Sentry telemetry system from CodeGraph

Eliminates anonymous error reporting functionality that was collecting stack traces and error context via Sentry. Removes all telemetry-related code, configuration options, and documentation references.
This commit is contained in:
Colby McHenry
2026-04-03 09:54:07 -05:00
parent 9bb8e96bd4
commit 8b5622d346
14 changed files with 11 additions and 286 deletions
-4
View File
@@ -19,9 +19,6 @@ import * as path from 'path';
import CodeGraph, { findNearestCodeGraphRoot } from '../index';
import { StdioTransport, JsonRpcRequest, JsonRpcNotification, ErrorCodes } from './transport';
import { tools, ToolHandler } from './tools';
import { initSentry, captureException } from '../sentry';
initSentry({ processName: 'codegraph-mcp' });
/**
* Convert a file:// URI to a filesystem path.
@@ -121,7 +118,6 @@ export class MCPServer {
this.toolHandler.setDefaultCodeGraph(this.cg);
} catch (err) {
// Log the error so transient failures are diagnosable (see issue #47)
captureException(err);
const msg = err instanceof Error ? err.message : String(err);
process.stderr.write(`[CodeGraph MCP] Failed to open project at ${resolvedRoot}: ${msg}\n`);
}