build-codemodekit-server
Installation
SKILL.md
Build a CodeModeKit Server
Build a walking skeleton for the user's actual source, then verify it through the downstream MCP surface. Keep model-authored code in CodeModeKit's sandbox and host integrations behind tool providers.
Build workflow
- Inspect the repository, package manager, local instructions, existing MCP configuration, and relevant application functions. Do not overwrite unrelated work.
- Choose the source boundary:
- Use Local Tools for functions or APIs the application owns.
- Use
mcp.stdiofor a shell-free executable and argument array. - Use
mcp.httpfor a Streamable HTTP MCP endpoint. - Compose sources when one authored program needs more than one namespace.
- For a new project, prefer the generator. Read references/generator.md for commands and generated-file ownership.
- For a retrofit or custom server, read references/server-api.md, preserve the batteries-included facade, and expose compiler or sandbox configuration only when the user needs an expert override.
- Define an explicit tool policy. Read references/policy-and-security.md before enabling writes, handling credentials, or binding Streamable HTTP beyond loopback.
- Keep the initial implementation compact. A single
src/server.mjsis the default; split it only when domain code already has a natural module boundary. - If the project includes an Agent Plugin, run catalog sync and build, but do not pretend the generated runtime skill understands the domain. Invoke
$author-codemode-skillafter the server works. - Verify the downstream behavior using references/verification.md. Exercise
run_typescript, not merely imports or direct provider functions.