feat: Update MCP tool response format, remove urls tool#62
Conversation
ka2n
commented
May 27, 2025
- test: use embedded resource
- feat(mcp): remove fetch_library_urls and update fetch_library_docs response format
There was a problem hiding this comment.
Pull Request Overview
This PR removes the deprecated "fetch_library_urls" tool and updates the response format for the "fetch_library_docs" tool to use resource objects instead of plain text.
- Removed the SearchURLs function and its corresponding import and tool registration.
- Updated the fetch_library_docs response format to return resource objects for various document types (README, documentation, homepage, registry, repository).
- Removed the "fetch_library_urls" tool reference from the README.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| mcp/tools.go | Removed the obsolete fetch_library_urls tool and updated the response format of fetch_library_docs to use mcp.NewToolResultResource. |
| README.md | Removed the reference to the now-deleted fetch_library_urls tool. |
There was a problem hiding this comment.
Pull Request Overview
This PR removes the outdated fetch_library_urls tool and enhances the fetch_library_docs tool by updating its response format and improving its descriptions. Key changes include the deletion of the fetch_library_urls functionality in mcp/tools.go, updating the fetch_library_docs tool to use resource-based results, and updating the README.md to remove the obsolete tool reference.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| mcp/tools.go | Removed fetch_library_urls and updated fetch_library_docs response format and descriptions. |
| README.md | Removed the reference to the fetch_library_urls tool. |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>