@lark-apaas/nestjs-mcp 0.1.1 → 0.1.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/README.md +3 -0
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -256,6 +256,10 @@ interface McpCatalog {
|
|
|
256
256
|
version: number;
|
|
257
257
|
generatedAt: string;
|
|
258
258
|
endpoint: string;
|
|
259
|
+
/** 与 MCP initialize 返回的 serverInfo.name 一致。 */
|
|
260
|
+
serverInfo: {
|
|
261
|
+
name: string;
|
|
262
|
+
};
|
|
259
263
|
tools: Tool[];
|
|
260
264
|
resources: Resource[];
|
|
261
265
|
prompts: Prompt[];
|
package/dist/index.d.ts
CHANGED
|
@@ -256,6 +256,10 @@ interface McpCatalog {
|
|
|
256
256
|
version: number;
|
|
257
257
|
generatedAt: string;
|
|
258
258
|
endpoint: string;
|
|
259
|
+
/** 与 MCP initialize 返回的 serverInfo.name 一致。 */
|
|
260
|
+
serverInfo: {
|
|
261
|
+
name: string;
|
|
262
|
+
};
|
|
259
263
|
tools: Tool[];
|
|
260
264
|
resources: Resource[];
|
|
261
265
|
prompts: Prompt[];
|
package/dist/index.js
CHANGED
|
@@ -839,6 +839,9 @@ async function buildManifest(input) {
|
|
|
839
839
|
version: MCP_MANIFEST_VERSION,
|
|
840
840
|
generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
841
841
|
endpoint: MCP_ENDPOINT_PATH,
|
|
842
|
+
serverInfo: {
|
|
843
|
+
name: resolveServerInfo(input.options).name
|
|
844
|
+
},
|
|
842
845
|
tools: tools.sort((a2, b) => a2.name.localeCompare(b.name)),
|
|
843
846
|
resources: resources.sort((a2, b) => a2.uri.localeCompare(b.uri)),
|
|
844
847
|
prompts,
|