gabriel / musehub public
__init__.py python
38 lines 1.2 KB
Raw
sha256:8e05daa29ba6702b4a2380a16d690ba31cc099d69c5c859bc6e6f16a0e945f99 Merge 'fix/deploy-memory-limits-and-log-group' into 'dev' —… Human 7 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:8e05daa29ba6702b4a2380a16d690ba31cc099d69c5c859bc6e6f16a0e945f99 Merge 'fix/deploy-memory-limits-and-log-group' into 'dev' —… Human 7 days ago
sha256:3fadb0439bba9451b89229676971c0d4a40900dec7810e9d5f8791b8d950d505 fix: install.sh version from latest published tarball, not … Sonnet 4.6 minor 98 days ago
sha256:763eb2cb8675073b84c19345b27586d2ed939a9aee97c5479b69f502f1a70eff fix(tests): update test suite to match current implementation Sonnet 4.6 patch 119 days ago