chore(m2): execute host/quant verification, fix live blockers, and record M2 closure evidence (T-215)

This commit is contained in:
Boki 2026-12-06 11:25:07 -05:00
parent 87ae19e5f9
commit a5184bb417
21 changed files with 1370 additions and 74 deletions

View file

@ -60,6 +60,37 @@ describe('MCP protocol & server core', () => {
});
});
test('initialize accepts MCP Implementation clientInfo metadata fields (title, description, websiteUrl)', async () => {
const server = createMcpServer({
name: 'stock-bot-research',
version: '0.1.0',
tools: [],
});
const raw = await server.handleMessage(
JSON.stringify({
jsonrpc: '2.0',
id: 2,
method: 'initialize',
params: {
protocolVersion: MCP_PROTOCOL_VERSION,
capabilities: {},
clientInfo: {
name: 'claude-code',
version: '2.1.84',
title: 'Claude Code',
description: 'Anthropic CLI client',
websiteUrl: 'https://claude.ai',
},
},
})
);
const response = parseResponse(raw);
expect(response.error).toBeUndefined();
expect(response.result?.protocolVersion).toBe(MCP_PROTOCOL_VERSION);
});
test('notifications/initialized returns null (no response)', async () => {
const server = createMcpServer({
name: 'stock-bot-research',