mirror of
https://github.com/hanzoai/mcp.git
synced 2026-10-15 12:30:12 +00:00
- Implement 8 native purpose-built Kai tools in src/tools/kai.ts: - kai_tool_select: shortlist tools & resolve client casing/aliases (bash -> Bash) - kai_next_action: emit executable action with zero-inference fast paths - kai_command_guard: monotonic security policy lattice (allow < ask < deny) - kai_injection_screen: prompt-injection & override screening - kai_log_triage: compiler/test failure categorization & span pinpointing - kai_recover: failure loop breaker & recovery strategy selection - kai_extract: typed discrete dimension extraction - kai_decide: multi-question joint forward pass decisions - Add 15 runnable cookbook recipes in cookbook/ with helper & index runners - Add test suites: test/tools/kai-purpose-built.test.ts (18/18) & test/cookbook.test.ts (15/15) - Support Claude Code CLI transport flags (--allow-path, allowUnknownOption) - Add comprehensive cookbook documentation and client configuration guides
18 lines
512 B
TypeScript
18 lines
512 B
TypeScript
/**
|
|
* Automated test suite for all 15 Hanzo Kai MCP Cookbook Recipes.
|
|
*/
|
|
|
|
import { describe, test, expect, beforeAll, afterAll } from '@jest/globals';
|
|
import { recipes } from '../cookbook/index.js';
|
|
|
|
describe('15 Hanzo Kai Native MCP Cookbook Recipes', () => {
|
|
for (const r of recipes) {
|
|
test(`Recipe ${r.id}: ${r.name}`, async () => {
|
|
const res = await r.runner();
|
|
expect(res.success).toBe(true);
|
|
expect(res.tool).toBeDefined();
|
|
expect(res.output).toBeDefined();
|
|
});
|
|
}
|
|
});
|