inspector/core/mcp/index.ts
Bob Dickinson 5de4e911e3
feat(web,core): enterprise-managed authorization (EMA) (#1509) (#1512)
Adds enterprise-managed authorization (EMA): browser-side IdP login + RFC 8693 token-exchange and JWT-bearer resource-token mint, per-server EMA opt-in in Server Settings, IdP config in Client Settings, and IdP clientSecret keychain storage. Includes the v2/main merge and review follow-ups (400 on malformed client config; normalizeIdpIssuer import consolidation).
2026-06-24 22:15:12 -04:00

53 lines
1.4 KiB
TypeScript

// Main MCP client module
// Re-exports the primary API for MCP client/server interaction
export { InspectorClient } from "./inspectorClient.js";
export type {
InspectorClientOptions,
InspectorClientEnvironment,
AppRendererClient,
} from "./types.js";
// Re-export type-safe event target types for consumers
export type { InspectorClientEventMap } from "./inspectorClientEventTarget.js";
export { getServerType, isOAuthCapableServerType } from "./config.js";
// Re-export types used by consumers
export type {
// Transport factory types (required by InspectorClient)
CreateTransport,
CreateTransportOptions,
CreateTransportResult,
// Config types
MCPConfig,
MCPServerConfig,
ServerType,
// Connection and state types (used by components and hooks)
ConnectionStatus,
StderrLogEntry,
MessageEntry,
FetchRequestEntry,
FetchRequestEntryBase,
FetchRequestCategory,
ServerState,
// Invocation types (returned from InspectorClient methods)
ResourceReadInvocation,
ResourceTemplateReadInvocation,
PromptGetInvocation,
ToolCallInvocation,
} from "./types.js";
// Re-export JSON utilities
export type { JsonValue } from "../json/jsonUtils.js";
export {
convertParameterValue,
convertToolParameters,
convertPromptArguments,
} from "../json/jsonUtils.js";
// Re-export session storage types
export type {
InspectorClientStorage,
InspectorClientSessionState,
} from "./sessionStorage.js";