@lucern/mcp 0.2.0-alpha.6 → 0.2.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -236,7 +236,7 @@ declare function startLucernMcpHttpServer(options?: RemoteMcpServerOptions): Pro
236
236
 
237
237
  declare function createMcpHandlerRegistry(context: McpHandlerContext): Record<string, McpToolHandler>;
238
238
 
239
- declare function resolveCredentials(): {
239
+ declare function resolveMcpCredentials(): {
240
240
  lucernResolved: boolean;
241
241
  stackResolved: boolean;
242
242
  mcResolved: boolean;
@@ -246,7 +246,7 @@ declare function resolveCredentials(): {
246
246
  rawUserToken?: string;
247
247
  };
248
248
 
249
- type LegacyAuthContext = {
249
+ type McpAuthContext = {
250
250
  sessionType: "agent" | "user";
251
251
  userId: string;
252
252
  tenantId: string;
@@ -276,12 +276,12 @@ type LegacyAuthContext = {
276
276
  };
277
277
  };
278
278
 
279
- declare function loadLegacyDiscoveryHandlers(): Promise<{
280
- discover(args: Record<string, unknown>, ctx: LegacyAuthContext): Promise<Record<string, unknown>>;
279
+ declare function loadDiscoveryHandlers(): Promise<{
280
+ discover(args: Record<string, unknown>, ctx: McpAuthContext): Promise<Record<string, unknown>>;
281
281
  }>;
282
282
 
283
- type LegacyAuthenticatedHandler = (args: Record<string, unknown>, ctx: LegacyAuthContext) => Promise<Record<string, unknown>>;
284
- declare function buildLegacyAuthenticatedHandlerMap(): Promise<Record<string, LegacyAuthenticatedHandler>>;
283
+ type AuthenticatedGatewayHandler = (args: Record<string, unknown>, ctx: McpAuthContext) => Promise<Record<string, unknown>>;
284
+ declare function buildAuthenticatedHandlerMap(): Promise<Record<string, AuthenticatedGatewayHandler>>;
285
285
 
286
286
  declare const BOOTSTRAP_MCP_TOOLS: Record<string, McpToolContract>;
287
287
  declare const COORDINATION_MCP_TOOLS: Record<string, McpToolContract>;
@@ -304,4 +304,4 @@ type ValidationResult = {
304
304
  };
305
305
  declare function validateContextPackSchema(payload: unknown): ValidationResult;
306
306
 
307
- export { BOOTSTRAP_MCP_TOOLS, COORDINATION_MCP_TOOLS, type ContextRankingProfile, EPISTEMIC_CONTRACT_MCP_TOOLS, type JsonRecord, LUCERN_AGENT_MD, LUCERN_MCP_RESOURCE_URIS, LUCERN_MCP_TOOL_NAMES, LUCERN_OBSERVER_PROMPT_NAME, type LegacyAuthContext, type LegacyAuthenticatedHandler, McpObservationStore, type RemoteMcpServerOptions, SCOPE_MCP_TOOLS, type StandaloneMcpServerOptions, type ToolExecutionAuditEvent, type ToolExecutionAuthMode, type ToolExecutionEnvelope, type ToolExecutionTransportKind, type TransportParityDriftKind, buildLegacyAuthenticatedHandlerMap, buildLucernObserverPrompt, callMcpTool, classifyTransportParityDrift, closeMcpClient, createLucernAdminClient, createLucernMcpClient, createLucernMcpHttpRequestHandler, createLucernMcpServer, createLucernStandaloneMcpServer, createMcpHandlerRegistry, createToolExecutionEnvelope, executeToolWithEnvelope, initializeLucernScriptEnv, loadLegacyDiscoveryHandlers, parseToolExecutionMetadata, readArg, resolveCredentials as resolveLegacyMcpCredentials, resolveMcpSessionTenantId, runLucernMcpCli, startLucernMcpHttpServer, startLucernMcpStdioServer, validateContextPackSchema };
307
+ export { type AuthenticatedGatewayHandler, BOOTSTRAP_MCP_TOOLS, COORDINATION_MCP_TOOLS, type ContextRankingProfile, EPISTEMIC_CONTRACT_MCP_TOOLS, type JsonRecord, LUCERN_AGENT_MD, LUCERN_MCP_RESOURCE_URIS, LUCERN_MCP_TOOL_NAMES, LUCERN_OBSERVER_PROMPT_NAME, type McpAuthContext, McpObservationStore, type RemoteMcpServerOptions, SCOPE_MCP_TOOLS, type StandaloneMcpServerOptions, type ToolExecutionAuditEvent, type ToolExecutionAuthMode, type ToolExecutionEnvelope, type ToolExecutionTransportKind, type TransportParityDriftKind, buildAuthenticatedHandlerMap, buildLucernObserverPrompt, callMcpTool, classifyTransportParityDrift, closeMcpClient, createLucernAdminClient, createLucernMcpClient, createLucernMcpHttpRequestHandler, createLucernMcpServer, createLucernStandaloneMcpServer, createMcpHandlerRegistry, createToolExecutionEnvelope, executeToolWithEnvelope, initializeLucernScriptEnv, loadDiscoveryHandlers, parseToolExecutionMetadata, readArg, resolveMcpCredentials, resolveMcpSessionTenantId, runLucernMcpCli, startLucernMcpHttpServer, startLucernMcpStdioServer, validateContextPackSchema };