__init__.py
python
sha256:20b27796ed512236119feef48b4577a8fd9ded05a15267dd4e6da23604ad1f1a
docs: update Suggested Ownership Split table to reflect ful…
Sonnet 5
28 days ago
| 1 | """MCP tool registry for MuseHub tools (reads + writes + elicitation). |
| 2 | |
| 3 | ``MUSEHUB_TOOLS`` — all 40 musehub_* / muse_* tool definitions. |
| 4 | ``MUSEHUB_TOOL_NAMES`` — set of all tool names for routing. |
| 5 | ``MUSEHUB_WRITE_TOOL_NAMES`` — set of write/interactive tool names (auth required). |
| 6 | ``MUSEHUB_ELICITATION_TOOL_NAMES`` — set of elicitation-powered tool names. |
| 7 | ``MCP_TOOLS`` — combined list of all registered MCP tools. |
| 8 | ``TOOL_CATEGORIES`` — maps tool name → category string. |
| 9 | """ |
| 10 | |
| 11 | from musehub.types.json_types import StrDict |
| 12 | from musehub.types.mcp_types import MCPToolDef |
| 13 | from musehub.mcp.tools.musehub import ( |
| 14 | MUSEHUB_TOOLS, |
| 15 | MUSEHUB_TOOL_NAMES, |
| 16 | MUSEHUB_WRITE_TOOL_NAMES, |
| 17 | MUSEHUB_ELICITATION_TOOL_NAMES, |
| 18 | ) |
| 19 | |
| 20 | MCP_TOOLS: list[MCPToolDef] = list(MUSEHUB_TOOLS) |
| 21 | |
| 22 | TOOL_CATEGORIES: StrDict = { |
| 23 | name: ( |
| 24 | "musehub-elicitation" if name in MUSEHUB_ELICITATION_TOOL_NAMES |
| 25 | else "musehub-write" if name in MUSEHUB_WRITE_TOOL_NAMES |
| 26 | else "musehub-read" |
| 27 | ) |
| 28 | for name in MUSEHUB_TOOL_NAMES |
| 29 | } |
| 30 | |
| 31 | __all__ = [ |
| 32 | "MUSEHUB_TOOLS", |
| 33 | "MUSEHUB_TOOL_NAMES", |
| 34 | "MUSEHUB_WRITE_TOOL_NAMES", |
| 35 | "MUSEHUB_ELICITATION_TOOL_NAMES", |
| 36 | "MCP_TOOLS", |
| 37 | "TOOL_CATEGORIES", |
| 38 | ] |
File History
3 commits
sha256:20b27796ed512236119feef48b4577a8fd9ded05a15267dd4e6da23604ad1f1a
docs: update Suggested Ownership Split table to reflect ful…
Sonnet 5
28 days ago
sha256:8ea2f75226d5834770ccaddbaa6efda1cc337446fd481bb385de8bec4555ae79
docs: Section 9 CI pipeline — confirm job queue is idempote…
Sonnet 5
28 days ago
sha256:80e1a60a39562f6e616aaafbb27487f03abbec7d8ffc6164302b7a0c0bfc63ee
docs: check off Section 0 items verified in inventory doc, …
Sonnet 5
28 days ago