diff --git a/packages/cursor/conversation.test.mjs b/packages/cursor/conversation.test.mjs index 01d2c07..f2a7bb2 100644 --- a/packages/cursor/conversation.test.mjs +++ b/packages/cursor/conversation.test.mjs @@ -184,7 +184,7 @@ test("the tool catalog writes each tool as its CallDynamicTool call", () => { const s = _internal.catalog(tools) expect(s).not.toContain("`) + expect(s).toContain(`CallDynamicTool({"namespace":"tools","toolName":"${t.name}","arguments":{...}})\n${t.description}\narguments schema: ${t.schemaText}\n`) } expect(_internal.catalog([])).toBe("") }) diff --git a/packages/cursor/index.mjs b/packages/cursor/index.mjs index 38ca081..a56e24a 100644 --- a/packages/cursor/index.mjs +++ b/packages/cursor/index.mjs @@ -1179,6 +1179,19 @@ function toolsOf(chat) { }) } +// NS is the MCP server the caller's tools are served as, the way Cursor's +// own client names a user's server by its mcp.json label (providerIdentifier, +// with "