@gmickel/gno 1.41.0 → 1.42.0

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.
@@ -27,8 +27,10 @@ const DEFAULT_MCP_CALLER = "mcp";
27
27
  export interface McpMemorySessionInfo {
28
28
  /** `clientInfo.name` from the MCP initialize handshake. */
29
29
  clientName?: string;
30
- /** Transport session id (Streamable HTTP); absent on stdio. */
30
+ /** Transport session id (2025-era Streamable HTTP); absent on stdio and on the 2026-07-28 sessionless leg. */
31
31
  sessionId?: string;
32
+ /** Opaque per-caller identity the HTTP boundary derived (`ctx.getRequestIdentity`); absent on stdio. */
33
+ requestIdentity?: string;
32
34
  }
33
35
 
34
36
  export const memoryScopesInputSchema = z
@@ -43,15 +45,19 @@ export const memoryScopesInputSchema = z
43
45
  * Map the MCP server session to the core identity contract.
44
46
  *
45
47
  * caller = MCP client implementation name; session = transport session id
46
- * when the transport has one (Streamable HTTP), else the per-process server
47
- * instance id (stdio: one process is one session).
48
+ * when the transport has one (2025-era Streamable HTTP), else the per-caller
49
+ * identity the HTTP boundary derived (2026-07-28 sessionless leg), else the
50
+ * per-process server instance id (stdio: one process is one session).
48
51
  */
49
52
  export function resolveMcpMemoryIdentity(
50
53
  ctx: ToolContext,
51
54
  info: McpMemorySessionInfo
52
55
  ): MemoryIdentity {
53
56
  const caller = info.clientName?.trim() || DEFAULT_MCP_CALLER;
54
- const session = info.sessionId?.trim() || ctx.serverInstanceId;
57
+ const session =
58
+ info.sessionId?.trim() ||
59
+ info.requestIdentity?.trim() ||
60
+ ctx.serverInstanceId;
55
61
  return { caller, session };
56
62
  }
57
63
 
@@ -30,6 +30,7 @@ export async function createMcpHttpGateway(
30
30
  config: ResolvedHttpGatewayConfig
31
31
  ): Promise<McpHttpGateway> {
32
32
  runtime.mcpContext.enableWrite = config.enableWrite;
33
+ runtime.mcpContext.toolProfile = config.toolProfile;
33
34
  const transport = new HttpMcpTransport(runtime, {
34
35
  enableWrite: config.enableWrite,
35
36
  idleTimeoutMs: config.limits.sessionIdleTimeoutMs,
@@ -405,6 +405,7 @@ export async function startServer(
405
405
  allowedHosts: options.allowedHosts,
406
406
  allowedOrigins: options.allowedOrigins,
407
407
  enableWrite: options.enableWrite,
408
+ toolProfile: options.toolProfile,
408
409
  });
409
410
  if (!isHttpGatewayLoopbackBind(gatewayConfig.host)) {
410
411
  await runtime.dispose();
@@ -1 +0,0 @@
1
- f4a45361cbd92fe4639a8ee69d3cc965290d120e6aae0fbc57752ae9aeb31f94 gno-browser-clipper-v1.41.0.zip