@thestarware/chrome-console-mcp
Version:
MCP Server for Chrome/Edge console logs and network requests via browser extension
50 lines • 1.2 kB
TypeScript
export interface ConsoleLogEntry {
type: 'console-log';
level: 'log' | 'warn' | 'error' | 'info' | 'debug';
message: string;
timestamp: string;
url: string;
}
export interface NetworkRequestEntry {
type: 'network-request';
method: string;
url: string;
status: number;
statusText: string;
timestamp: string;
responseTime: number;
requestBody?: string;
responseBody?: string;
}
export type LogEntry = ConsoleLogEntry | NetworkRequestEntry;
export interface ExtensionMessage {
type: 'CONNECT' | 'CONSOLE_LOG' | 'NETWORK_REQUEST';
data?: LogEntry;
timestamp: string;
}
export interface LogFilter {
type?: ('console-log' | 'network-request')[];
level?: string[];
url?: string;
timeRange?: {
start: string;
end: string;
};
searchTerm?: string;
method?: string[];
status?: number[];
}
export interface FilterConfig {
console: {
excludeKeywords: string[];
};
network: {
includeUrlSubstrings: string[];
};
}
export interface LogExportOptions {
format: 'json' | 'csv' | 'txt';
filter?: LogFilter;
limit?: number;
}
//# sourceMappingURL=types.d.ts.map