gabriel / musehub public
__init__.py python
38 lines 1.2 KB
Raw
sha256:323d1a9842e033f3faeb38ae8d11bafde590ac7e9c553963325b961e944f3889 docs: Gabriel assessment closeout — F7 review-fix NEXT Human patch 76 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 1 commit
sha256:323d1a9842e033f3faeb38ae8d11bafde590ac7e9c553963325b961e944f3889 docs: Gabriel assessment closeout — F7 review-fix NEXT Human patch 76 days ago