Root AGENTS.md becomes a map plus cross-cutting rules; folder rules live in one AGENTS.md per package and top-level folder, checked by check:docs. CONTRIBUTING.md owns process; README and the docs page link to it. Release preparation copies the root LICENSE into every published package, Core, CLI, and MCP gain READMEs, and the release workflow test packs its fixture in-process instead of through npm.
1,002 B
1,002 B
MCP server
stdio and Hono HTTP MCP server that reuses Core tools (packages/core/AGENTS.md, Tools).
- MCP-only filesystem and server tools live in
packages/mcp/src/tool/registration.ts; listener and session lifecycle underpackages/mcp/src/server/, stdio underpackages/mcp/src/stdio/, transport discovery underpackages/mcp/src/transport/. - Registration uses Standard Schema with Valibot JSON Schema conversion from the Core tool input contract; per-tool exposure comes from
isToolExposed(). - File access must resolve symlinks inside the effective MCP root. CLI defaults are the current directory on macOS and Linux and the home directory on Windows.
- Keep browser lifecycle out of this package and out of Core.
- Transport tests live under
tests/engine/mcp/{server,stdio,transport}with shared fixtures undertests/helpers/mcp; isolate tests from user runtime discovery. Playwright starts the development MCP companion through the Vite automation plugin; seetests/AGENTS.md.