{"at":"2026-11-23T00:08:06.259Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T00:08:07.254Z","dir":"received","era":"server_discover","message":{"error":{"code":-32602,"data":"","message":"Invalid request parameters"},"id":1,"jsonrpc":"2.0"}}
{"at":"2026-11-23T00:08:07.405Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T00:08:08.343Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"experimental":{},"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"protocolVersion":"2025-11-25","serverInfo":{"name":"pronunciation","version":"1.30.0"}}}}
{"at":"2026-11-23T00:08:08.343Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T00:08:08.343Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T00:08:08.347Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"\nRecord the user speaking, transcribe it, and return the transcript plus quick\nEnglish feedback. This is the primary tool for voice conversations: call it,\nread the transcript + feedback, then respond conversationally in your own\nwords — weaving the feedback in naturally or mentioning it only if it matters.\n\nRecording auto-stops when the user finishes speaking (silence detection).\n\nUse this tool when:\n- The user wants to chat with you by voice instead of typing\n- The user wants casual English feedback while talking with you\n- You want to hear what the user said rather than read a typed message\n\nFor a focused drill where the user reads a specific sentence, use `practice`\ninstead.\n\nArgs:\n    target_hint: Optional. Only set this if the user is explicitly trying\n        to say a specific sentence (e.g. they asked \"how do I say X?\" and\n        you told them X). Leave blank for free-form conversation.\n    duration: Maximum recording duration in seconds (default 30, max 120).\n        Auto-stops earlier on silence.\n\nReturns:\n    Markdown report containing the user's transcript, brief English feedback\n    (pronunciation + grammar + fluency), and a 'For Claude' section with\n    guidance on how to respond.\n","inputSchema":{"properties":{"duration":{"default":30.0,"description":"Maximum recording duration in seconds. The server accepts 1 to 120 seconds and auto-stops earlier on silence.","title":"Duration","type":"number"},"target_hint":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Optional target sentence or phrase the user is trying to say. Leave null for open-ended voice conversation.","title":"Target Hint"}},"title":"converseArguments","type":"object"},"name":"converse","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"converseOutput","type":"object"},"title":"Voice conversation with English feedback"},{"description":"\nDrill mode: the user reads a specific sentence aloud and gets a detailed\npronunciation assessment. Use this when the user explicitly wants to\npractice reading a particular sentence, not for free-form chat.\n\nFor voice conversation with casual feedback, use `converse` instead.\n\nRecording auto-stops when the user finishes speaking.\n\nArgs:\n    reference_text: The sentence the user will read aloud.\n    duration: Maximum recording duration in seconds (default 15, max 120).\n\nReturns:\n    Detailed pronunciation assessment report.\n","inputSchema":{"properties":{"duration":{"default":15.0,"description":"Maximum recording duration in seconds. The server accepts 1 to 120 seconds and auto-stops earlier on silence.","title":"Duration","type":"number"},"reference_text":{"description":"Exact sentence or phrase the user should read aloud for drill mode.","title":"Reference Text","type":"string"}},"required":["reference_text"],"title":"practiceArguments","type":"object"},"name":"practice","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"practiceOutput","type":"object"},"title":"Focused pronunciation drill"},{"description":"\nRetry the last sentence the user was practicing.\n\nRe-records and re-assesses using the same reference text from the previous\n`practice` or `converse` call. Use this to let the user try again after\ngetting feedback.\n\nArgs:\n    duration: Maximum recording duration in seconds (default 15, max 120).\n\nReturns:\n    Pronunciation assessment report for the new attempt.\n","inputSchema":{"properties":{"duration":{"default":15.0,"description":"Maximum recording duration in seconds. The server accepts 1 to 120 seconds and auto-stops earlier on silence.","title":"Duration","type":"number"}},"title":"retryArguments","type":"object"},"name":"retry","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"retryOutput","type":"object"},"title":"Retry the last pronunciation drill"},{"description":"\nPick a random practice sentence and drill it immediately.\n\nCombines `suggest_sentence` + `practice` into one step: picks a sentence\nmatching the criteria, then records and assesses.\n\nArgs:\n    focus: Phoneme focus area. Options: \"th\", \"f_v\", \"r_l\", \"vowels\", \"general\".\n        If not specified, picks randomly.\n    difficulty: Difficulty level. Options: \"beginner\", \"intermediate\", \"advanced\".\n        If not specified, picks randomly.\n    duration: Maximum recording duration in seconds (default 15, max 120).\n\nReturns:\n    The sentence to read, followed by the pronunciation assessment.\n","inputSchema":{"properties":{"difficulty":{"anyOf":[{"enum":["beginner","intermediate","advanced"],"type":"string"},{"type":"null"}],"default":null,"description":"Optional practice difficulty filter. Use beginner, intermediate, or advanced. Leave null to choose randomly.","title":"Difficulty"},"duration":{"default":15.0,"description":"Maximum recording duration in seconds. The server accepts 1 to 120 seconds and auto-stops earlier on silence.","title":"Duration","type":"number"},"focus":{"anyOf":[{"enum":["th","f_v","r_l","vowels","general"],"type":"string"},{"type":"null"}],"default":null,"description":"Optional pronunciation focus filter. Use th, f_v, r_l, vowels, or general. Leave null to choose randomly.","title":"Focus"}},"title":"quick_practiceArguments","type":"object"},"name":"quick_practice","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"quick_practiceOutput","type":"object"},"title":"Random pronunciation drill"},{"description":"\nSuggest a practice sentence the user can read aloud.\n\nArgs:\n    focus: Phoneme focus area. Options: \"th\", \"f_v\", \"r_l\", \"vowels\", \"general\".\n        If not specified, picks randomly.\n    difficulty: Difficulty level. Options: \"beginner\", \"intermediate\", \"advanced\".\n        If not specified, picks randomly.\n\nReturns:\n    A practice sentence with its focus area and difficulty.\n","inputSchema":{"properties":{"difficulty":{"anyOf":[{"enum":["beginner","intermediate","advanced"],"type":"string"},{"type":"null"}],"default":null,"description":"Optional practice difficulty filter. Use beginner, intermediate, or advanced. Leave null to choose randomly.","title":"Difficulty"},"focus":{"anyOf":[{"enum":["th","f_v","r_l","vowels","general"],"type":"string"},{"type":"null"}],"default":null,"description":"Optional pronunciation focus filter. Use th, f_v, r_l, vowels, or general. Leave null to choose randomly.","title":"Focus"}},"title":"suggest_sentenceArguments","type":"object"},"name":"suggest_sentence","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"suggest_sentenceOutput","type":"object"},"title":"Suggest a practice sentence"},{"description":"\nRecord audio from the microphone without assessing it.\n\nRecording auto-stops when the user finishes speaking (silence detection).\nThe duration is the maximum time — you don't have to wait the full duration.\n\nMost of the time prefer `converse` or `practice`, which record AND analyze\nin one step. Only use `record` alone if you want the raw WAV file.\n\nArgs:\n    duration: Maximum recording duration in seconds (default 10, max 120).\n\nReturns:\n    Path to the recorded WAV file.\n","inputSchema":{"properties":{"duration":{"default":10.0,"description":"Maximum recording duration in seconds. The server accepts 1 to 120 seconds and auto-stops earlier on silence.","title":"Duration","type":"number"}},"title":"recordArguments","type":"object"},"name":"record","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"recordOutput","type":"object"},"title":"Record microphone audio"},{"description":"\nAssess the last recording (or a specific audio file) without re-recording.\n\nWhen `reference_text` is provided, the assessor:\n  - Aligns the user's speech to the reference word-by-word (Needleman-Wunsch;\n    single deletions/insertions no longer cascade into phantom substitutions).\n  - Runs wav2vec2 CTC forced alignment to verify which reference words the\n    user actually produced — mitigates Whisper-bias mistranscriptions on\n    rare proper nouns and domain terms by checking acoustic evidence\n    against the reference directly.\n  - Surfaces per-word phoneme-level feedback (expected vs produced IPA,\n    weak phonemes) from CMUdict.\n  - Surfaces optional learner-profile pronunciation hints and drills when\n    a rule pack matches. The bundled profile includes Korean-L1 patterns\n    such as r/l, th→s, final cluster deletion, and intrusive onset vowel.\n  - Adds prosody notes: word-stress placement, sentence-final rising\n    intonation on declaratives, intra-clause hesitation pauses.\n\nWithout a reference, only the transcript and prosody run.\n\nArgs:\n    reference_text: Expected text the user was trying to say (optional).\n    audio_path: Path to a WAV file. Uses the last recording if not specified.\n\nReturns:\n    Detailed pronunciation assessment report (markdown).\n","inputSchema":{"properties":{"audio_path":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Optional local path to a WAV file to assess. When omitted, the most recent recording from this server session is used.","title":"Audio Path"},"reference_text":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"description":"Optional expected sentence for the recorded audio. When omitted, only transcript and general prosody feedback are returned.","title":"Reference Text"}},"title":"assessArguments","type":"object"},"name":"assess","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"assessOutput","type":"object"},"title":"Assess a recorded pronunciation attempt"},{"description":"\nList available audio input devices and verify microphone access.\n\nUse this if the user reports recording problems — it shows which devices\nare available and which one is the default.\n\nReturns:\n    List of available microphone devices.\n","inputSchema":{"properties":{},"title":"check_micArguments","type":"object"},"name":"check_mic","outputSchema":{"properties":{"result":{"title":"Result","type":"string"}},"required":["result"],"title":"check_micOutput","type":"object"},"title":"Check microphone devices"}]}}}
