You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add tool cache invalidation with differential update logic and manual discovery trigger (#208)
* feat(api): add server tool discovery functionality and auto cache invalidation of tools
- Implemented `discoverServerTools` method in APIService to trigger tool discovery for a specified server.
- Updated ServerDetail.vue to include a button for discovering tools, enhancing user interaction.
- Added backend support for tool discovery in the ServerController and integrated it into the routing.
- Introduced `GetToolsByServer` method in the index manager to retrieve tools associated with a server.
- Enhanced the OpenAPI documentation to reflect the new endpoint for tool discovery.
This feature allows users to manually trigger tool discovery, improving the management of server tools.
* fix: add missing DiscoverServerTools and GetToolsByServer to test mocks
- Add DiscoverServerTools method to MockServerController in contracts_test.go
- Add DiscoverServerTools method to baseController in security_test.go
- Add GetToolsByServer to TestIndexManagerContract expected methods
These methods were added to the interfaces in this PR but the test mocks
were not updated, causing CI failures.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Algis Dumbris <a.dumbris@gmail.com>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
@@ -1054,6 +1056,49 @@ func (s *Server) handleRestartServer(w http.ResponseWriter, r *http.Request) {
1054
1056
s.writeSuccess(w, response)
1055
1057
}
1056
1058
1059
+
// handleDiscoverServerTools godoc
1060
+
// @Summary Discover tools for a specific server
1061
+
// @Description Manually trigger tool discovery and indexing for a specific upstream MCP server. This forces an immediate refresh of the server's tool cache.
0 commit comments