Skip to content

Tools

mcpFortyTwo registers every tool through a single fan-out in src/mcp/tools/index.ts. Each tool ships:

  • A Zod input schema validated at call time.
  • A Zod output schema mirrored into the response’s structuredContent.
  • A human-readable text rendering returned as the tool’s content block.

All pages below are generated directly from those definitions, so they cannot drift from the live server.

Atomic queries against tonal: chords, scales, keys, modes, intervals.

Curated catalogue stored in Postgres, queried via Drizzle.

Each generator returns a Standard MIDI File Type 1 (480 PPQ) as a base64 string plus metadata. Decode with base64 -d > out.mid and drop into any DAW.