diff --git a/.claude/settings.json b/.claude/settings.json index 741af5d..cb7d175 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -5,7 +5,8 @@ "skill-enforcer@foundry": true, "the-coder@foundry": true, "the-workflow@foundry": true, - "javascript@foundry": true + "javascript@foundry": true, + "kensai@yatai": true }, "extraKnownMarketplaces": { "foundry": { @@ -13,6 +14,12 @@ "source": "github", "repo": "xobotyi/cc-foundry" } + }, + "yatai": { + "source": { + "source": "github", + "repo": "GaijinEntertainment/yatai" + } } }, "alwaysThinkingEnabled": true diff --git a/README.md b/README.md new file mode 100644 index 0000000..3b84972 --- /dev/null +++ b/README.md @@ -0,0 +1,38 @@ +# yatai + +Gaijin Entertainment's plugin marketplace for AI coding tools. + +Plugins built for internal workflows — code review pipelines, development automation, quality enforcement — published +for anyone to use. + +## Installation + +Add the marketplace, then install any plugin: + +``` +/plugin marketplace add GaijinEntertainment/yatai +/plugin install +``` + +## Plugins + +### kensai + +Multi-agent code review with adversarial falsification. Parallel reviewers surface issues; a prover applies +falsification gates to filter false positives. Orchestrated by a stateful MCP server +([`@gaijin/kensai-review-mcp`](https://www.npmjs.com/package/@gaijin/kensai-review-mcp)). + +Requires Node.js 26+ and agent teams (`CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1`). + +``` +/plugin install kensai +``` + +## Requirements + +- [Claude Code](https://claude.com/claude-code) with plugin marketplace support +- Node.js 26+ (for MCP server plugins) + +## License + +MIT diff --git a/claude/kensai/.mcp.json b/claude/kensai/.mcp.json index ccab6ed..c538a73 100644 --- a/claude/kensai/.mcp.json +++ b/claude/kensai/.mcp.json @@ -2,8 +2,8 @@ "mcpServers": { "kensai": { "type": "stdio", - "command": "node", - "args": ["${CLAUDE_PLUGIN_ROOT}/mcp/review/src/index.ts"], + "command": "npx", + "args": ["@gaijin/kensai-review-mcp"], "alwaysLoad": true } } diff --git a/claude/kensai/README.md b/claude/kensai/README.md index e4c428f..8320fc7 100644 --- a/claude/kensai/README.md +++ b/claude/kensai/README.md @@ -42,9 +42,12 @@ phase, preventing agents from skipping steps or mixing concerns. ## Requirements -- Node.js 26+ (MCP server runtime) +- Node.js 26+ - Agent teams enabled: set `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` in your Claude Code environment +The MCP server is published as [`@gaijin/kensai-review-mcp`](https://www.npmjs.com/package/@gaijin/kensai-review-mcp) +and fetched automatically via npx on first use. All dependencies (including ripgrep) are bundled. + ## Installation ``` diff --git a/claude/kensai/mcp/review/README.md b/claude/kensai/mcp/review/README.md new file mode 100644 index 0000000..116af07 --- /dev/null +++ b/claude/kensai/mcp/review/README.md @@ -0,0 +1,30 @@ +# @gaijin/kensai-review-mcp + +Stateful MCP server for the [kensai](https://github.com/GaijinEntertainment/yatai/tree/main/claude/kensai) multi-agent +code review pipeline. + +Provides 24 tools across 4 toolsets (session lifecycle, filesystem, git, findings) with phase-enforced state machine, +paginated context delivery, and scoped filesystem access. + +## Usage + +This package is consumed as an MCP server via the kensai Claude Code plugin. Install the plugin: + +``` +/plugin marketplace add GaijinEntertainment/yatai +/plugin install kensai +``` + +Or run standalone: + +``` +npx @gaijin/kensai-review-mcp +``` + +## Requirements + +- Node.js 26+ + +## License + +MIT diff --git a/claude/kensai/mcp/review/src/index.ts b/claude/kensai/mcp/review/src/index.ts index 0c17f8a..fdb7b05 100644 --- a/claude/kensai/mcp/review/src/index.ts +++ b/claude/kensai/mcp/review/src/index.ts @@ -1,3 +1,4 @@ +#!/usr/bin/env node import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";