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:
@@ -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`);
|
||||
}
|
||||
|
||||
@@ -370,7 +370,6 @@ export class ToolHandler {
|
||||
return this.errorResult(`Unknown tool: ${toolName}`);
|
||||
}
|
||||
} catch (err) {
|
||||
try { const { captureException } = require('../sentry'); captureException(err, { tool: toolName }); } catch {}
|
||||
return this.errorResult(`Tool execution failed: ${err instanceof Error ? err.message : String(err)}`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
*/
|
||||
|
||||
import * as readline from 'readline';
|
||||
import { captureException } from '../sentry';
|
||||
|
||||
/**
|
||||
* JSON-RPC 2.0 Request
|
||||
@@ -163,7 +162,6 @@ export class StdioTransport {
|
||||
try {
|
||||
await this.messageHandler(parsed as JsonRpcRequest | JsonRpcNotification);
|
||||
} catch (err) {
|
||||
captureException(err, { operation: 'mcp-message-handler' });
|
||||
const message = parsed as JsonRpcRequest;
|
||||
if ('id' in message) {
|
||||
this.sendError(
|
||||
|
||||
Reference in New Issue
Block a user