feat: port CLI, TUI, and launcher from v1.5 into v2 (#1452)
Ports the CLI, TUI, and launcher from v1.5 into v2 behind a single `mcp-inspector` entrypoint (launcher → web/cli/tui). Includes the `mcp-inspector --web --dev` launcher fix (Vite alias resolution + prod-server double-start), the root `postinstall` install cascade with simplified CI, and spec/AGENTS docs (no-workspaces rationale, Development setup). Closes #1246. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
53dc4549be
commit
2488ca5e38
1 changed files with 25594 additions and 236 deletions
|
|
@ -120,8 +120,7 @@ import {
|
|||
import { ToolCallCancelledError } from "./toolCallCancelledError.js";
|
||||
import type { AuthGuidedState, OAuthStep } from "../auth/types.js";
|
||||
import type { OAuthTokens } from "@modelcontextprotocol/sdk/shared/auth.js";
|
||||
import type pino from "pino";
|
||||
import { silentLogger } from "../logging/logger.js";
|
||||
import { silentLogger, type InspectorLogger } from "../logging/logger.js";
|
||||
import { createFetchTracker } from "./fetchTracking.js";
|
||||
import { OAuthManager, type OAuthManagerConfig } from "./oauthManager.js";
|
||||
|
||||
|
|
@ -236,7 +235,7 @@ export class InspectorClient extends InspectorClientEventTarget {
|
|||
private receiverTaskRecords: Map<string, ReceiverTaskRecord> = new Map();
|
||||
// OAuth support (config owned by oauthManager; client delegates and uses !!oauthManager for "is OAuth configured")
|
||||
private oauthManager: OAuthManager | null = null;
|
||||
private logger: pino.Logger;
|
||||
private logger: InspectorLogger;
|
||||
private transportClientFactory: CreateTransport;
|
||||
private fetchFn?: typeof fetch;
|
||||
private effectiveAuthFetch: typeof fetch;
|
||||
|
|
|
|||
Loading…
Reference in a new issue