Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions code/e2e-tests/addon-mcp.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,8 @@ test.describe('addon-mcp', () => {
const response = await mcpRequest(request, 'tools/list');

expect(response.result).toHaveProperty('tools');
// Dev and docs tools should be present (4 total)
expect(response.result.tools).toHaveLength(4);

const toolNames = response.result.tools.map((tool: { name: string }) => tool.name);
expect(toolNames).toContain('get-story-urls');
expect(toolNames).toContain('get-ui-building-instructions');
expect(toolNames).toContain('list-all-documentation');
expect(toolNames).toContain('get-documentation');
// At least dev and docs tools should be present (4 total)
expect(response.result.tools.length).toBeGreaterThanOrEqual(4);
});
});

Expand All @@ -216,10 +210,10 @@ test.describe('addon-mcp', () => {
});
});

test.describe('Tool: get-ui-building-instructions', () => {
test.describe('Tool: get-storybook-story-instructions', () => {
test('should return UI building instructions', async ({ request }) => {
const response = await mcpRequest(request, 'tools/call', {
name: 'get-ui-building-instructions',
name: 'get-storybook-story-instructions',
arguments: {},
});

Expand Down
Loading