@1mcp/agent 0.30.1 → 0.30.2
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/build/constants/mcp.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { ClientCapabilities, ServerCapabilities } from '@modelcontextprotocol/sd
|
|
|
5
5
|
export declare const MCP_CONFIG_FILE = "mcp.json";
|
|
6
6
|
export declare const MCP_INSTRUCTIONS_TEMPLATE_FILE = "instructions-template.md";
|
|
7
7
|
export declare const MCP_SERVER_NAME = "1mcp";
|
|
8
|
-
export declare const MCP_SERVER_VERSION = "0.30.
|
|
8
|
+
export declare const MCP_SERVER_VERSION = "0.30.2";
|
|
9
9
|
export declare const MCP_URI_SEPARATOR = "_1mcp_";
|
|
10
10
|
/**
|
|
11
11
|
* Default maximum number of MCP servers to load concurrently
|
package/build/constants/mcp.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export const MCP_CONFIG_FILE = 'mcp.json';
|
|
3
3
|
export const MCP_INSTRUCTIONS_TEMPLATE_FILE = 'instructions-template.md';
|
|
4
4
|
export const MCP_SERVER_NAME = '1mcp';
|
|
5
|
-
export const MCP_SERVER_VERSION = '0.30.
|
|
5
|
+
export const MCP_SERVER_VERSION = '0.30.2';
|
|
6
6
|
export const MCP_URI_SEPARATOR = '_1mcp_';
|
|
7
7
|
/**
|
|
8
8
|
* Default maximum number of MCP servers to load concurrently
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationHandlers.d.ts","sourceRoot":"","sources":["../../../src/core/protocol/notificationHandlers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"notificationHandlers.d.ts","sourceRoot":"","sources":["../../../src/core/protocol/notificationHandlers.ts"],"names":[],"mappings":"AAWA,OAAO,EAAgB,iBAAiB,EAAE,mBAAmB,EAAgB,MAAM,0BAA0B,CAAC;AAI9G;;;;GAIG;AACH,wBAAgB,gCAAgC,CAC9C,aAAa,EAAE,mBAAmB,EAClC,WAAW,EAAE,iBAAiB,GAC7B,IAAI,CA8CN;AAED;;;;GAIG;AACH,wBAAgB,gCAAgC,CAC9C,aAAa,EAAE,mBAAmB,EAClC,WAAW,EAAE,iBAAiB,GAC7B,IAAI,CA8CN"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CancelledNotificationSchema,
|
|
1
|
+
import { CancelledNotificationSchema, LoggingMessageNotificationSchema, ProgressNotificationSchema, PromptListChangedNotificationSchema, ResourceListChangedNotificationSchema, ResourceUpdatedNotificationSchema, RootsListChangedNotificationSchema, ToolListChangedNotificationSchema, } from '@modelcontextprotocol/sdk/types.js';
|
|
2
2
|
import { ClientStatus, ServerStatus } from '../../core/types/index.js';
|
|
3
3
|
import logger from '../../logger/logger.js';
|
|
4
4
|
import { withErrorHandling } from '../../utils/core/errorHandling.js';
|
|
@@ -56,10 +56,15 @@ export function setupClientToServerNotifications(outboundConns, inboundConn) {
|
|
|
56
56
|
* @param serverInfo The MCP server instance
|
|
57
57
|
*/
|
|
58
58
|
export function setupServerToClientNotifications(outboundConns, inboundConn) {
|
|
59
|
+
// NOTE: InitializedNotificationSchema is intentionally excluded here.
|
|
60
|
+
// The inbound client sends notifications/initialized to 1MCP as part of its
|
|
61
|
+
// own session handshake. Forwarding it to already-connected downstream servers
|
|
62
|
+
// causes them to re-enter initialization state, rejecting subsequent
|
|
63
|
+
// tools/list and prompts/list with "method is invalid during session
|
|
64
|
+
// initialization". See: https://github.com/1mcp-app/agent/issues/255
|
|
59
65
|
const serverNotificationSchemas = [
|
|
60
66
|
CancelledNotificationSchema,
|
|
61
67
|
ProgressNotificationSchema,
|
|
62
|
-
InitializedNotificationSchema,
|
|
63
68
|
RootsListChangedNotificationSchema,
|
|
64
69
|
];
|
|
65
70
|
for (const [name, outboundConn] of outboundConns.entries()) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationHandlers.js","sourceRoot":"","sources":["../../../src/core/protocol/notificationHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,
|
|
1
|
+
{"version":3,"file":"notificationHandlers.js","sourceRoot":"","sources":["../../../src/core/protocol/notificationHandlers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,gCAAgC,EAChC,0BAA0B,EAC1B,mCAAmC,EACnC,qCAAqC,EACrC,iCAAiC,EACjC,kCAAkC,EAClC,iCAAiC,GAClC,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,YAAY,EAA0C,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC9G,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAErE;;;;GAIG;AACH,MAAM,UAAU,gCAAgC,CAC9C,aAAkC,EAClC,WAA8B;IAE9B,MAAM,yBAAyB,GAAG;QAChC,2BAA2B;QAC3B,0BAA0B;QAC1B,gCAAgC;QAChC,iCAAiC;QACjC,qCAAqC;QACrC,iCAAiC;QACjC,mCAAmC;KACpC,CAAC;IAEF,KAAK,MAAM,CAAC,IAAI,EAAE,YAAY,CAAC,IAAI,aAAa,CAAC,OAAO,EAAE,EAAE,CAAC;QAC3D,yBAAyB,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;YAC3C,YAAY,CAAC,MAAM,CAAC,sBAAsB,CACxC,MAAM,EACN,iBAAiB,CAAC,KAAK,EAAE,YAAY,EAAE,EAAE;gBACvC,MAAM,CAAC,IAAI,CAAC,oCAAoC,IAAI,IAAI,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;gBAExF,yDAAyD;gBACzD,IAAI,WAAW,CAAC,MAAM,KAAK,YAAY,CAAC,SAAS,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;oBACnF,MAAM,CAAC,IAAI,CAAC,8DAA8D,IAAI,EAAE,CAAC,CAAC;oBAClF,OA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