PlayByKey Music Theory
Chords, scales, progressions, transposition, and MIDI tools for music theory AI agents.
ماذا يمكنك أن تفعل مع PlayByKey Music Theory؟
- npm: npmjs.com/package/@playbykey/theory
- Documentation: theory-engine.docs.playbykey.com - interactive playgrounds
- Changelog: GitHub Releases
التثبيت
أضف هذا إلى إعدادات MCP في عميلك (Claude Desktop: claude_desktop_config.json، وCursor: .cursor/mcp.json، ويستخدم VS Code وغيره الصيغة نفسها «mcpServers»).
@playbykey/theory-mcpclaude mcp add playbykey-music-theory -- npx -y @playbykey/theory-mcp@1.6.0
{
"mcpServers": {
"playbykey-music-theory": {
"command": "npx",
"args": [
"-y",
"@playbykey/theory-mcp@1.6.0"
]
}
}
}
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
Developer Tools
Packages for PlayByKey - see the table below for what's here.
- npm: npmjs.com/package/@playbykey/theory
- Documentation: theory-engine.docs.playbykey.com - interactive playgrounds
- Changelog: GitHub Releases
Install
npm install @playbykey/theory
pnpm add @playbykey/theory
yarn add @playbykey/theory
bun add @playbykey/theory
Quickstart and API examples: packages/theory/README.md
Why @playbykey/theory
- Foundation music theory engine: music theory as code. Modes, keys, intervals, and scale relationships resolved deterministically; one source of truth every app, notation tool, or AI agent can build on.
- Zero dependencies: no transitive baggage; safe for agents, edge runtimes, and tight bundles
- Strictly typed: every function's types exported alongside it, no
any - Agent-ready: copy-paste LLM context prompt and interactive docs
- Sharps-only notation: one canonical spelling per note (
C#, notDb) keeps theNotetype safe and unambiguous. Flats are fully supported for both input (parseNote/parseNoteTokenacceptDb,Eb,Gb,Ab,Bb) and output (getFlats/getEnharmonicLabels), without extendingNoteitself.
Packages
| Package | Description | Links |
|---|---|---|
@playbykey/theory | Zero-dependency music theory engine - scales, modes, intervals, chords, progressions, key relationships | npm · docs · changelog |
@playbykey/theory-mcp | MCP server that exposes the theory engine as AI-callable tools | npm · README |
theory-docs | Starlight documentation site (private workspace package) | live site · README |
License
MIT for the repository tooling and @playbykey/theory. See LICENSE.
Individual packages may declare their own license in their package.json.
الأسئلة الشائعة
ما هو PlayByKey Music Theory؟
Chords, scales, progressions, transposition, and MIDI tools for music theory AI agents.
كيف أثبّت PlayByKey Music Theory؟
يعمل على جهازك. في Claude Code: claude mcp add playbykey-music-theory -- npx -y @playbykey/theory-mcp@1.6.0. وفي العملاء الآخرين، الصق إعداد JSON من هذه الصفحة في إعدادات MCP الخاصة بهم.
هل يحتاج PlayByKey Music Theory إلى مفتاح API؟
لا يذكر إدراجه في السجل أي مفتاح أو سر إلزامي. قد تتطلب بعض الميزات حسابًا لدى الخدمة التي يتصل بها.
هل PlayByKey Music Theory مفتوح المصدر؟
نعم. شيفرته متاحة على GitHub بترخيص MIT.
من يصون PlayByKey Music Theory؟
ينشره DigitalBrewLLC. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من سجل MCP الرسمي. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.