Keep one source of truth
The source lives in src/server.ts, the executable is dist/server.js, and src/smoke.ts exercises the built server from a client. A host should reference the executable, while changes to the contract start in source.
- Keep package.json and the lockfile with the project so a second developer can recreate dependencies.
- Document the Node version, build command, exact executable path after building, and the sample IDs to test.
- Before sharing a host configuration, replace machine-specific paths with placeholders. Keep credentials outside the configuration you share.
Use the fixture to review a proposed release
From a clean checkout, install the locked dependencies in an environment permitted to fetch them, build, and run the local smoke test. These are the checks a teammate should be able to repeat with the sample records.
npm ci
npm run build
npm run smokeEstablish the release checks
Begin with an empty host configuration entry for meeting-notes, then register the fresh build in the host you intend to support.
- A tool list shows get_note and, after the extension lesson, list_notes.
- A call for weekly-01 returns the same fixture in the smoke script and the host’s tool details.
- An unknown ID returns a tool error. A malformed ID fails schema validation.
- An uncaught startup error is visible to the operator through stderr or the host’s MCP diagnostics.
Adapt the design to a real source
Keep a narrow tool contract when you replace the sample map with a database or service. Start with one read-only operation and define a predictable result limit and failure response. If you later serve the same tool over Streamable HTTP, review authentication and the scope of each caller separately from the local process setup.