File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed
Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ dev = [
3232[project .entry-points ."mcpstack .tools" ]
3333your_tool_name = " mcpstack_your_tool_name.tool:YourTool"
3434
35+ # Let MCPStack discover tool-specific CLIs (mounted by the mother library)
36+ [project .entry-points ."mcpstack .tool_clis" ]
37+ your_tool_name = " mcpstack_your_tool_name.cli:YourToolCLI.get_app"
38+
3539[tool .ruff ]
3640line-length = 88
3741target-version = " py310"
Original file line number Diff line number Diff line change @@ -600,8 +600,13 @@ def doctor() -> None:
600600 pkg_dirs = [p for p in (SRC ).glob ("mcpstack_*" ) if p .is_dir ()]
601601 rows .append (("Package dirs" , ", " .join (p .name for p in pkg_dirs ) or "(none)" ))
602602 pt = (TEMPLATE_ROOT / "pyproject.toml" ).read_text (encoding = "utf-8" )
603- ep_ok = '[project.entry-points."mcpstack.tools"]' in pt
604- rows .append (("Entry point" , "present" if ep_ok else "missing" ))
603+
604+ # Check both entry-point groups
605+ ep_tools_ok = '[project.entry-points."mcpstack.tools"]' in pt
606+ ep_clis_ok = '[project.entry-points."mcpstack.tool_clis"]' in pt
607+ rows .append (("Entry point (tools)" , "present" if ep_tools_ok else "missing" ))
608+ rows .append (("Entry point (tool_clis)" , "present" if ep_clis_ok else "missing" ))
609+
605610 ph = [f"{ k } → `{ v } `" for k , v in PLACEHOLDERS .items ()]
606611 rows .append (("Placeholders" , "; " .join (ph )))
607612
Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ dev = [
3232[project .entry-points ."mcpstack .tools" ]
3333your_tool_name = " mcpstack_your_tool_name.tool:YourTool"
3434
35+ # Let MCPStack discover tool-specific CLIs (mounted by the mother library)
36+ [project .entry-points ."mcpstack .tool_clis" ]
37+ your_tool_name = " mcpstack_your_tool_name.cli:YourToolCLI.get_app"
38+
3539[tool .ruff ]
3640line-length = 88
3741target-version = " py310"
@@ -46,4 +50,4 @@ testpaths = ["tests"]
4650python_files = [" test_*.py" ]
4751
4852[tool .uv .sources ]
49- mcpstack = { path = " ../MCPStack" }
53+ mcpstack = { path = " ../../ MCPStack" }
You can’t perform that action at this time.
0 commit comments