chore: merge main and resolve MCP contract conflicts
This commit is contained in:
@@ -7,6 +7,7 @@ import { BinarySession } from "../src/application/BinarySession.js";
|
||||
import { CATALOG_IDENTITY, CLI_COMMAND_NAMES } from "../src/catalogIdentity.js";
|
||||
import { PACKAGE_METADATA } from "../src/generatedPackageMetadata.js";
|
||||
import { PRODUCT_IDENTITY, SDK_IDENTITY } from "../src/identity.js";
|
||||
import { TOOL_CONTRACTS } from "../src/contracts/toolContracts.js";
|
||||
import { createServer } from "../src/server/createServer.js";
|
||||
import { createServerIdentity } from "../src/serverIdentity.js";
|
||||
import { observed } from "./fixtures/analysisExecution.js";
|
||||
@@ -24,11 +25,11 @@ describe("server and catalog identity", () => {
|
||||
});
|
||||
expect(PRODUCT_IDENTITY.packageVersion).toBe(packageJson.version);
|
||||
expect(SDK_IDENTITY.server).toBe("2.0.0-beta.4");
|
||||
expect(CLI_COMMAND_NAMES).toHaveLength(49);
|
||||
expect(new Set(CLI_COMMAND_NAMES).size).toBe(49);
|
||||
expect(CLI_COMMAND_NAMES).toHaveLength(50);
|
||||
expect(new Set(CLI_COMMAND_NAMES).size).toBe(50);
|
||||
expect(CATALOG_IDENTITY.counts).toEqual({
|
||||
cli_commands: 49,
|
||||
mcp_tools: 89,
|
||||
cli_commands: 50,
|
||||
mcp_tools: TOOL_CONTRACTS.length,
|
||||
mcp_prompts: 6,
|
||||
mcp_resources: 2,
|
||||
mcp_resource_templates: 7,
|
||||
@@ -162,7 +163,12 @@ describe("server and catalog identity", () => {
|
||||
expect(status.structuredContent).toMatchObject({
|
||||
result: {
|
||||
server_identity: {
|
||||
catalog: { counts: { mcp_tools: 89, cli_commands: 49 } },
|
||||
catalog: {
|
||||
counts: {
|
||||
mcp_tools: TOOL_CONTRACTS.length,
|
||||
cli_commands: CLI_COMMAND_NAMES.length,
|
||||
},
|
||||
},
|
||||
alignment: { state: "mcp_server_restart_required" },
|
||||
},
|
||||
tool_availability: expect.arrayContaining([
|
||||
|
||||
Reference in New Issue
Block a user