@gmickel/gno 1.41.0 → 1.43.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.
- package/assets/skill/SKILL.md +5 -1
- package/assets/skill/mcp-reference.md +7 -0
- package/browser-extension/artifacts/{gno-browser-clipper-v1.41.0.zip → gno-browser-clipper-v1.43.0.zip} +0 -0
- package/browser-extension/artifacts/gno-browser-clipper-v1.43.0.zip.sha256 +1 -0
- package/browser-extension/dist/manifest.json +1 -1
- package/package.json +5 -2
- package/spec/mcp.md +156 -6
- package/src/cli/commands/daemon.ts +1 -0
- package/src/cli/commands/mcp.ts +3 -1
- package/src/cli/program.ts +28 -0
- package/src/config/types.ts +3 -0
- package/src/core/connector-verifier.ts +2 -4
- package/src/mcp/AGENTS.md +7 -1
- package/src/mcp/CLAUDE.md +7 -1
- package/src/mcp/context.ts +37 -7
- package/src/mcp/http-modern.ts +214 -0
- package/src/mcp/http-security.ts +5 -0
- package/src/mcp/http-session.ts +4 -3
- package/src/mcp/http-transport.ts +81 -12
- package/src/mcp/resources/index.ts +3 -6
- package/src/mcp/server.ts +18 -16
- package/src/mcp/stdio-serving.ts +45 -0
- package/src/mcp/tool-descriptions-core.ts +56 -0
- package/src/mcp/tool-profile.ts +112 -0
- package/src/mcp/tools/index.ts +251 -134
- package/src/mcp/tools/memory-shared.ts +10 -4
- package/src/serve/routes/mcp.ts +1 -0
- package/src/serve/server.ts +1 -0
- package/browser-extension/artifacts/gno-browser-clipper-v1.41.0.zip.sha256 +0 -1
|
@@ -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-
|
|
47
|
-
*
|
|
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 =
|
|
57
|
+
const session =
|
|
58
|
+
info.sessionId?.trim() ||
|
|
59
|
+
info.requestIdentity?.trim() ||
|
|
60
|
+
ctx.serverInstanceId;
|
|
55
61
|
return { caller, session };
|
|
56
62
|
}
|
|
57
63
|
|
package/src/serve/routes/mcp.ts
CHANGED
|
@@ -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,
|
package/src/serve/server.ts
CHANGED
|
@@ -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
|