get_track_index
Retrieve the live overview and summary of a conductor track by reading its index.md file. Provide a track name to get the current track index.
Instructions
Read the index.md for a specific conductor track. Returns the live track overview and summary.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| trackName | Yes |
Implementation Reference
- src/tools/conductor.tool.ts:96-106 (handler)MCP tool handler for 'get_track_index'. Calls manager.getTrackIndex(args.trackName) and returns the file content as text.
server.tool( 'get_track_index', 'Read the index.md for a specific conductor track. Returns the live track overview and summary.', GetTrackIndexSchema.shape, async (args) => { const file = await manager.getTrackIndex(args.trackName); return { content: [{ type: 'text' as const, text: file.content }], }; }, ); - Manager function getTrackIndex that validates the track slug and delegates to fs.readTrackFile to read 'index.md' from the track directory.
async function getTrackIndex(trackName: string): Promise<TrackFile> { assertSafeSlug(trackName); return fs.readTrackFile(tracksDir, trackName, 'index.md'); } - src/access/FileSystemAccess.ts:70-74 (helper)Low-level file system helper readTrackFile that reads a specific file (e.g., 'index.md') from a track directory and returns its content.
async function readTrackFile(tracksDir: string, trackName: string, filename: string): Promise<TrackFile> { const filePath = join(tracksDir, trackName, filename); const content = await readFile(filePath, 'utf8'); return { trackName, filename, content }; } - src/tools/conductor.tool.ts:46-48 (schema)Zod schema GetTrackIndexSchema defining the input: trackName (string, min 1).
export const GetTrackIndexSchema = z.object({ trackName: z.string().min(1), }); - src/index.ts:52-52 (registration)Registration of conductor tools including 'get_track_index' via registerConductorTools.
registerConductorTools(server, conductorManager);