doricomcp
v0.1.1Read and edit a live Dorico 6 score by conversation, through Dorico's own interfaces.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
dorico_status
Live Dorico status (mode, selection, note input, undo availability) from Remote Control. [READ-ONLY: not yet confirmed by the live harness]
list_capabilities
The confirmation matrix: every capability, its mechanism and whether the live harness confirmed it. [READ-ONLY: not yet confirmed by the live harness]
describe_commands
Search Dorico's 1,200 commands (regex on name/display name) with their parameters and enum values. [READ-ONLY: not yet confirmed by the live harness]
| Parameter | Type | Description |
|---|---|---|
filter | string | |
limit | integer |
describe_enums
Exact accepted values of a Dorico enum type (or regex over enum type names). [READ-ONLY: not yet confirmed by the live harness]
| Parameter | Type | Description |
|---|---|---|
name * | string |
describe_property
Type, display name and enum values of an event property (e.g. kNoteVelocity, kEventColour). [READ-ONLY: not yet confirmed by the live harness]
| Parameter | Type | Description |
|---|---|---|
name * | string |
list_library
Library entities (ids + names), live from Dorico: kInstrumentCollection, kClefCollection, kPlayingTechniqueAppearanceCollection, kOrnamentCollection, kTempoPresetCollection, kParagraphStyleCollection... [READ-ONLY: not yet confirmed by the live harness]
| Parameter | Type | Description |
|---|---|---|
collection * | string | |
filter | string |
run_command
Escape hatch: run any catalogued Dorico command ("Namespace.Command?Param=value&..."), validated against the catalogue. With select_event_id the event is selected first in the same undo step.
| Parameter | Type | Description |
|---|---|---|
command * | string | |
flow | integer | |
select_event_id |
screenshot
A picture of Dorico's score window, to check engraving by eye. bar: scroll there first; zoom: view zoom in percent for the picture (e.g. 200 to read dynamics and small markings), restored afterwards.
| Parameter | Type | Description |
|---|---|---|
bar | ||
flow | integer | |
zoom |
list_dialogs
Dorico's open dialogs (every window other than a project window): title, modal, the texts shown and the controls (role, title or label, value, enabled, path). A modal dialog blocks all commands until it is answered with dialog_click / dialog_set. Needs Accessibility permission for the app running this server.
dialog_click
Press a control in a Dorico dialog: a button ("OK", "Cancel", "Apply", "Close"), checkbox, radio button or tab, by its title, the label before it, or its path from list_dialogs. dialog: its title, if several are open.
| Parameter | Type | Description |
|---|---|---|
control * | string | |
dialog |
dialog_set
Set a control in a Dorico dialog: a checkbox or radio button to true/false, a text field to text, a pop-up or combo box to one of its items (by name). control: its title, the label before it, or its path.
| Parameter | Type | Description |
|---|---|---|
control * | string | |
value * | string | |
dialog |
refresh
Forget cached reads (time signatures, dynamics, keys, structure); use after editing in Dorico by hand. [READ-ONLY: not yet confirmed by the live harness]
get_score_overview
Players, instruments, layouts and flows; per flow its streams and voices (voice-stream id -> instrument, staff index, voice index). Use the voice ids for read_music/add_notes.
get_bar_map
Bar numbers <-> positions, time signatures (read by Dorico's own equality API, cached) and optionally key signatures (include_keys: a letter-entry probe into an empty span; it plays 7 audition notes).
| Parameter | Type | Description |
|---|---|---|
flow | integer | |
include_keys | boolean |
read_music
Notes, chords, rests (explicit and implicit), grace notes, tuplets, slurs and articulations per voice, with exact positions, durations, spelled pitches, MIDI numbers and event ids. Range: bars (inclusive) or positions [from_pos, to_pos). detail="compact": per voice and bar the notes in add_notes syntax plus their ids (about a tenth of the size; use it for long ranges or many voices). detail="grid": one row per onset of any voice (or every grid_step crotchets, e.g. "1/2") with what each voice sounds, for checking verticals.
| Parameter | Type | Description |
|---|---|---|
detail | string | |
flow | integer | |
from_bar | ||
from_pos | ||
grid_step | ||
to_bar | ||
to_pos | ||
voices |
read_markings
Dynamics (levels incl. sfz/rfz/fz, hairpins), slurs, clefs, ottavas, text, tempo (text, bpm), holds, rehearsal marks, repeats, breaks, playing techniques (name), ornaments, time/key signatures in a range. Each row says whether its content is readable. A dynamic group lists its parts in order, each with its own position (bar, beat): a level (p, f...) or a hairpin (cresc/dim, length, end); "sub" identifies a hairpin part for set_property.
| Parameter | Type | Description |
|---|---|---|
flow | integer | |
from_bar | ||
from_pos | ||
to_bar | ||
to_pos |
read_context_at
What is in force at a point: time signature, key signature, clef, dynamic level (and a hairpin running through the point), ottava, the last tempo marking (text, bpm), and the notes sounding in the voice.
| Parameter | Type | Description |
|---|---|---|
bar | ||
beat | string | |
flow | integer | |
include_key | boolean | |
pos | ||
voice |
check_voice_leading
Voice-leading check of the score: parallel and contrary fifths/octaves/unisons, hidden fifths/octaves in the outer voices, crossings, spacing over an octave between upper voices, leaps over max_leap semitones and tritone leaps. voices: from highest to lowest (default: ordered by average pitch). chords (optional harmonic plan, "bar[:beat] symbol, ...", e.g. "28 D, 28:2 A7, 29 Bm/F#") adds doubled thirds (major chords), doubled sevenths, doubled leading tone (needs key, e.g. "D" or "Bm"), missing thirds, non-chord tones and wrong bass notes. A voice holding a chord counts by its top note.
| Parameter | Type | Description |
|---|---|---|
chords | ||
flow | integer | |
from_bar | ||
key | ||
max_leap | integer | |
to_bar | ||
voices |
score_changes
What changed in a flow: without since, take a snapshot and return its token; with since=<token>, list the events added, removed and changed since then, each marked by "server" (written through these tools) or "Dorico" (edited in Dorico by hand), and a new token. Changes inside dynamic groups (levels) are not seen.
| Parameter | Type | Description |
|---|---|---|
flow | integer | |
since |
get_selection
The current selection in Dorico (event type and, if available, its properties). [READ-ONLY: not yet confirmed by the live harness]
get_options
House-style options: kind kEngraving (per score), kNotation (per flow: flow_id), kLayout (per layout: layout_id). [READ-ONLY: not yet confirmed by the live harness]
| Parameter | Type | Description |
|---|---|---|
filter | string | |
flow_id | ||
kind | string | |
layout_id |
add_notes
Write notes, chords and rests one after another from a position. notes: space-separated items "PITCHES:DURATION"; chords join pitches with "+"; "r" is a rest; a missing duration repeats the previous one. Durations: crotchets (1, 3/2, 1/2) or w h q e s t (+ dots, e.g. "q."). Pitches: C4 = middle C, F#5, Bb3. Example: "Eb4+G4+C5:h. G4:e Eb5:q. C5:s r:q". replace=True first clears the notes and rests of the span (slurs, text and other markings there stay); otherwise notes are added (chords merge with existing notes).
| Parameter | Type | Description |
|---|---|---|
notes * | string | |
voice * | integer | |
bar | ||
beat | string | |
flow | integer | |
pos | ||
replace | boolean |
delete_range
Delete the notes, rests, grace notes and tuplets of a voice in a range (bars inclusive, or positions [from_pos, to_pos)); slurs, text and other markings in the voice stay unless include_markings=True.
| Parameter | Type | Description |
|---|---|---|
voice * | integer | |
flow | integer | |
from_bar | ||
from_pos | ||
include_markings | boolean | |
to_bar | ||
to_pos |
delete_events
Delete events by id: notes, rests or markings (dynamics, hairpins, slurs, text, clefs, octave lines...). Ids come from read_music / read_markings.
| Parameter | Type | Description |
|---|---|---|
event_ids * | array | |
flow | integer |
set_pitch
Change one note's pitch and spelling (e.g. "F#4", "Ebb5") in place: it keeps its id, rhythm, slurs and articulations.
| Parameter | Type | Description |
|---|---|---|
event_id * | integer | |
pitch * | string | |
flow | integer |
set_duration
Change a note's or rest's duration (crotchets or w h q e s t with dots).
| Parameter | Type | Description |
|---|---|---|
duration * | string | |
event_id * | integer | |
flow | integer |
edit_notes
Apply an edit to notes: pitch_up/pitch_down (diatonic steps x count), chromatic_up/down, octave_up/down, respell_above/below, double_duration, halve_duration, tie (to the next note of the same pitch), delete; remove_rests on rest ids (Dorico's Remove Rests: the voice shows a gap there, e.g. a divisi line that pauses).
| Parameter | Type | Description |
|---|---|---|
action * | string | |
event_ids * | array | |
count | integer | |
flow | integer |
add_interval
Add a note at an interval to each given note, making a chord: "3" (third above), "-3", "maj3", "min6 below", "p5", "octave".
| Parameter | Type | Description |
|---|---|---|
event_ids * | array | |
interval * | string | |
flow | integer |
add_grace_note
Add a grace note before the note at the given position (value: notated length, default quaver).
| Parameter | Type | Description |
|---|---|---|
pitch * | string | |
voice * | integer | |
bar | ||
beat | string | |
flow | integer | |
pos | ||
value | string |
copy_range
Copy (or move) notes and rests of a range to another place or voice/staff (markings are not copied).
| Parameter | Type | Description |
|---|---|---|
dest_voice * | integer | |
voice * | integer | |
dest_bar | ||
dest_beat | string | |
dest_pos | ||
flow | integer | |
from_bar | ||
from_pos | ||
move | boolean | |
to_bar | ||
to_pos |
add_tuplet
A tuplet typed with Dorico's note input, overwriting what is there: ratio "3:2", "5:4"; unit = the tuplet's note value (e, q, s, h); notes in add_notes syntax with notated values, e.g. "C5:e D5 E5" or "Eb4+G4:q B4 D5". Accidentals are always explicit (C#5, Ab4); plain letters mean naturals.
| Parameter | Type | Description |
|---|---|---|
notes * | string | |
ratio * | string | |
unit * | string | |
voice * | integer | |
bar | ||
beat | string | |
flow | integer | |
pos |
swap_voices
Exchange the notes and rests of two voices in a range (e.g. divisi lines trading places), one undo step. Notes are re-created with their pitch and rhythm (new ids); slurs, text and markings stay in their voice.
| Parameter | Type | Description |
|---|---|---|
other_voice * | integer | |
voice * | integer | |
flow | integer | |
from_bar | ||
from_pos | ||
to_bar | ||
to_pos |
add_voice
Start a new voice on the same staff as `voice` (e.g. a second, stems-down voice), typing `notes` (add_notes syntax, plain or single-dotted values). Returns the new voice id for later add_notes calls.
| Parameter | Type | Description |
|---|---|---|
notes * | string | |
voice * | integer | |
bar | ||
beat | string | |
flow | integer | |
pos |
add_articulation
staccato, staccatissimo, tenuto, accent, marcato, stress, unstress, staccato_tenuto on notes.
| Parameter | Type | Description |
|---|---|---|
event_ids * | array | |
kind * | string | |
flow | integer |
add_span
A line from one note to another in the same voice: slur, cresc, dim, messa_di_voce (hairpins), 8va, 8vb, 15ma, 15mb (octave lines), glissando. Only that voice gets it, even with other voices on the staff. spans: several [start_event_id, end_event_id] pairs in one call (slurs: one undo step), e.g. a slur over every pair of quavers. Hairpins end at the end of the end note; for exact positions use add_hairpin.
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
end_event_id | ||
flow | integer | |
spans | ||
start_event_id |
add_hairpin
A hairpin (cresc, dim, messa_di_voce) from one position to another, e.g. bar 33 beat 0 to bar 33 beat 3/2, wherever notes start (also inside a held note). voices: put the same hairpin on several instruments (one voice each), e.g. the whole string section. A hairpin starting at a dynamic joins its group (p<), reported as merged_into. Returns the direction, positions and drawn length.
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
voice * | integer | |
bar | ||
beat | string | |
flow | integer | |
pos | ||
to_bar | ||
to_beat | string | |
to_pos | ||
voices |
add_dynamic
An immediate dynamic (p, pp, mp, mf, f, ff, sfz, fp, ...) on the voice's instrument at a position, also where no note starts (inside a held note) or where a hairpin ends. voices: the same on several instruments. at: more dynamics in the same call, e.g. [{"value": "f", "bar": 34}, {"value": "p", "bar": 36, "beat": "2"}] (each takes bar + beat or pos). One undo step; returns only the dynamics created.
| Parameter | Type | Description |
|---|---|---|
value * | string | |
voice * | integer | |
at | ||
bar | ||
beat | string | |
flow | integer | |
pos | ||
voices |
add_note_marking
kind=ornament (value tr, mordent, inv, turn), hold (fermata, breath, caesura...), playing_technique (value: a name like pizz., arco, con sord., sul pont., ord., or a library id like pta.pizzText), tie, articulation (value staccato...).
| Parameter | Type | Description |
|---|---|---|
event_ids * | array | |
kind * | string | |
flow | integer | |
value | string |
add_text
Staff text (e.g. "dolce", "espress.") attached to a voice at a position.
| Parameter | Type | Description |
|---|---|---|
text * | string | |
voice * | integer | |
bar | ||
beat | string | |
flow | integer | |
pos |
add_clef
A clef change on the voice's staff: clef.treble, clef.bass, clef.alto, clef.tenor, clef.treble8ba ...
| Parameter | Type | Description |
|---|---|---|
clef * | string | |
voice * | integer | |
bar | ||
beat | string | |
flow | integer | |
pos |
set_tempo
A tempo marking: "q=120", "Allegro q=132", "h.=60", "rit.", "a tempo".
| Parameter | Type | Description |
|---|---|---|
value * | string | |
bar | ||
beat | string | |
flow | integer | |
pos |
set_time_signature
Time signature from a bar on: 3/4, 6/8, 2+3/8, c, cut. Single n/d values are read back to confirm.
| Parameter | Type | Description |
|---|---|---|
bar * | integer | |
value * | string | |
flow | integer |
set_key_signature
Key signature from a bar on: "2#", "3b", "0", or names like "Eb", "F#m", "c minor".
| Parameter | Type | Description |
|---|---|---|
bar * | integer | |
value * | string | |
beat | string | |
flow | integer |
add_barline
Barline at the start of a bar: "||" double, "|:" start repeat, ":|" end repeat, ":|:", "|||" final, ":" dashed.
| Parameter | Type | Description |
|---|---|---|
bar * | integer | |
kind * | string | |
flow | integer |
add_repeat_marker
segno, coda, fine, "to coda", "D.C.", "D.C. al Fine", "D.C. al Coda", "D.S. al Fine", "D.S. al Coda".
| Parameter | Type | Description |
|---|---|---|
bar * | integer | |
value * | string | |
beat | string | |
flow | integer |
add_rehearsal_mark
A rehearsal mark (next letter in sequence) at the start of a bar.
| Parameter | Type | Description |
|---|---|---|
bar * | integer | |
flow | integer |
add_break
Force a system or frame (page) break before a bar.
| Parameter | Type | Description |
|---|---|---|
bar * | integer | |
flow | integer | |
kind | string |
set_property
Set any event property (all layouts), e.g. kNoteVelocity=100, kEventColour=#ffff0000, kEventScale=kCue, kNoteForcedVoiceDirection... Omit value to reset to default. See describe_property. kDynamicGradualChangeDuration (hairpin length in crotchets) also works on a hairpin joined to a dynamic (p<); part: the hairpin's "sub" from read_markings when its group holds several hairpins (> <).
| Parameter | Type | Description |
|---|---|---|
event_ids * | array | |
name * | string | |
flow | integer | |
part | ||
value |
set_option
Set a house-style option (paths and values from get_options). kind: kEngraving, kNotation (flow_ids), kLayout (layout_ids). Written via Dorico's own commands (the setoptions message ignores layout ids).
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
path * | string | |
value * | string | |
flow_ids | ||
layout_ids |
add_player
Add a solo (or section) player holding an instrument from the library, e.g. instrument.strings.violin, instrument.wind.flute (list_library kInstrumentCollection).
| Parameter | Type | Description |
|---|---|---|
instrument * | string | |
section | boolean |
add_instrument
Give an existing player (index in get_score_overview players) an extra instrument (doubling).
| Parameter | Type | Description |
|---|---|---|
instrument * | string | |
player_id * | integer |
rename_player
Rename a player (index in get_score_overview players).
| Parameter | Type | Description |
|---|---|---|
name * | string | |
player_id * | integer | |
short_name |
add_flow
Add a new flow (movement) at the end of the project, with all players.
rename_flow
Rename a flow (ids from get_score_overview flows).
| Parameter | Type | Description |
|---|---|---|
flow_id * | integer | |
name * | string |
delete_flow
Delete a flow and all its music (one undo step; undo restores it). Dorico's "all music ... will also be deleted" confirmation is answered OK. The last flow cannot be deleted.
| Parameter | Type | Description |
|---|---|---|
flow_id * | integer |
remove_instrument
Remove an instrument and all its music (one undo step; undo restores it). Instrument ids are in get_score_overview players. Dorico's "will also delete all its music" confirmation is answered OK.
| Parameter | Type | Description |
|---|---|---|
instrument_id * | integer |
add_layout
Add a custom score layout (optionally named). Part layouts are created automatically with players.
| Parameter | Type | Description |
|---|---|---|
name |
rename_layout
Rename a layout (ids from get_score_overview layouts).
| Parameter | Type | Description |
|---|---|---|
layout_id * | integer | |
name * | string |
layout_flows
Include or exclude flows in a layout (Dorico does not expose a layout's flows for read-back).
| Parameter | Type | Description |
|---|---|---|
flow_ids * | array | |
layout_id * | integer | |
include | boolean |
set_score_order
Instrument order template, e.g. instrumentscoreorder.orchestral, instrumentscoreorder.windband, instrumentscoreorder.choral (list_library kInstrumentScoreOrderCollection).
| Parameter | Type | Description |
|---|---|---|
order * | string |
go_to
Scroll Dorico's view to a bar.
| Parameter | Type | Description |
|---|---|---|
bar * | integer | |
flow | integer |
select_events
Select an event in Dorico (e.g. to show the user). Note: selection changes are undo steps in Dorico.
| Parameter | Type | Description |
|---|---|---|
event_ids * | array | |
flow | integer |
play
Start playback (from a bar, or from the playhead).
| Parameter | Type | Description |
|---|---|---|
flow | integer | |
from_bar |
stop
Stop playback.
undo
Undo the last `count` edits in Dorico (every tool write is one step). Selection steps left by this server's tempo reads are skipped; other selection changes (by hand, select_events) count as steps.
| Parameter | Type | Description |
|---|---|---|
count | integer |
redo
Redo `count` steps. Only possible right after undo: every MCP read runs a Dorico script, and any script clears Dorico's redo stack (verified).
| Parameter | Type | Description |
|---|---|---|
count | integer |