Skip to content

Conversation

@YuriNachos
Copy link

🎯 Summary

Fixes #1652

📝 Description

The MCP tool md endpoint was missing a docstring, which caused inspect.getdoc() in _list_tools() to return an empty description. This degraded the UX as LLMs rely on descriptions to understand what tools do.

🔧 Changes

  • Added comprehensive docstring to get_markdown() function in deploy/docker/server.py
  • The docstring describes the tool's purpose and supported extraction modes (fit, raw, bm25, llm)

✅ Verification

The _list_tools() function in mcp_bridge.py uses inspect.getdoc() to pull tool descriptions. With this docstring in place, the md tool will now have a proper description that LLMs can use to understand when and how to use this tool.

📚 References

YuriNachos and others added 2 commits January 17, 2026 11:04
Fixes unclecode#1652

The MCP tool `md` endpoint was missing a docstring, which caused
`inspect.getdoc()` in `_list_tools()` to return an empty description.
This degraded the UX as LLMs rely on descriptions to understand tools.

Added comprehensive docstring describing the tool's purpose and
supported extraction modes.

Co-Authored-By: Claude <[email protected]>
Fixes unclecode#1652

The `get_markdown` function in `deploy/docker/server.py` was missing
a docstring, which caused the MCP tool description to be empty when
listed via `list_tools()`. This degraded UX for LLMs and developers.

Added comprehensive docstring describing the tool's purpose and
supported extraction modes (fit, raw, bm25, llm).

Co-Authored-By: Claude <[email protected]>
@YuriNachos
Copy link
Author

Closing as duplicate of #1722 (same changes for issue #1652)

@YuriNachos YuriNachos closed this Jan 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: MCP tool md has no description due to missing docstring

1 participant