Metadata-Version: 2.5
Name: sheet-music-mcp-core
Version: 0.3.1
Summary: Shared helpers for the sheet-music MCP servers: errors, part selection, annotations, result content, handler wiring, score references, measure ranges, MCP Apps UI resources, artifact handles, expiring tables and health reports
Project-URL: Homepage, https://github.com/raulkivi/sheet-music-mcp
Project-URL: Repository, https://github.com/raulkivi/sheet-music-mcp
Project-URL: Bug Tracker, https://github.com/raulkivi/sheet-music-mcp/issues
Author-email: Raul Kivi <raulkivi@users.noreply.github.com>
License: MIT
Keywords: choir,mcp,music,musicxml
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.11
Requires-Dist: defusedxml>=0.7.1
Requires-Dist: jsonschema>=4.20.0
Requires-Dist: mcp<3.0.0,>=2.3.0
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
Requires-Dist: pytest>=8.4.0; extra == 'dev'
Description-Content-Type: text/markdown

# sheet-music-mcp-core

Shared helpers for the [sheet-music MCP servers](https://github.com/raulkivi/sheet-music-mcp): error responses, voice-part selection, deprecated parameter names, tool annotations, result content (file links, inline PNG images and short WAV clips), MCP handler wiring, score references (scores passed as confined file paths, safe MusicXML and `.mxl` reading, and the shared `describe_score` tool), measure ranges (`measures: [start, end]` in printed bar numbers, cutting a score down to those bars with the key, time, clef and tempo in force), each part's first note, MCP Apps UI resources (`ui://` HTML apps that tools link to, served from the server package, with the microphone or clipboard permissions and CSP they ask the host for), opaque artifact ids that let an app read a large output file, such as a practice WAV, in 1 MiB chunks without ever passing a path, an expiring table for other handles an app holds, and the standard `health_check` report that the shared Setup Doctor app shows as a checklist with one fix per problem.

This is a library, not an MCP server. Install one of the servers instead (for example `uvx render-mcp`); they depend on this package.

See [docs/conventions.md](https://github.com/raulkivi/sheet-music-mcp/blob/main/docs/conventions.md#shared-core-library) for the rules each module implements.
