@lucern/mcp 0.2.0-alpha.10 → 0.2.0-alpha.4
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/gateway.d.ts +131 -129
- package/dist/gateway.js +6422 -6931
- package/dist/gateway.js.map +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.js +224 -572
- package/dist/index.js.map +1 -1
- package/dist/runtime.js +4276 -947
- package/dist/runtime.js.map +1 -1
- package/package.json +8 -7
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
|
|
239
|
+
declare function resolveCredentials(): {
|
|
240
240
|
lucernResolved: boolean;
|
|
241
241
|
stackResolved: boolean;
|
|
242
242
|
mcResolved: boolean;
|
|
@@ -246,7 +246,7 @@ declare function resolveMcpCredentials(): {
|
|
|
246
246
|
rawUserToken?: string;
|
|
247
247
|
};
|
|
248
248
|
|
|
249
|
-
type
|
|
249
|
+
type LegacyAuthContext = {
|
|
250
250
|
sessionType: "agent" | "user";
|
|
251
251
|
userId: string;
|
|
252
252
|
tenantId: string;
|
|
@@ -276,12 +276,12 @@ type McpAuthContext = {
|
|
|
276
276
|
};
|
|
277
277
|
};
|
|
278
278
|
|
|
279
|
-
declare function
|
|
280
|
-
discover(args: Record<string, unknown>, ctx:
|
|
279
|
+
declare function loadLegacyDiscoveryHandlers(): Promise<{
|
|
280
|
+
discover(args: Record<string, unknown>, ctx: LegacyAuthContext): Promise<Record<string, unknown>>;
|
|
281
281
|
}>;
|
|
282
282
|
|
|
283
|
-
type
|
|
284
|
-
declare function
|
|
283
|
+
type LegacyAuthenticatedHandler = (args: Record<string, unknown>, ctx: LegacyAuthContext) => Promise<Record<string, unknown>>;
|
|
284
|
+
declare function buildLegacyAuthenticatedHandlerMap(): Promise<Record<string, LegacyAuthenticatedHandler>>;
|
|
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 {
|
|
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 };
|