cachedTools returns the cached tool list. Thread-safe.
()
| 730 | |
| 731 | // cachedTools returns the cached tool list. Thread-safe. |
| 732 | func (m *Manager) cachedTools() []workspacesdk.MCPToolInfo { |
| 733 | m.mu.RLock() |
| 734 | defer m.mu.RUnlock() |
| 735 | |
| 736 | return slices.Clone(m.tools) |
| 737 | } |
| 738 | |
| 739 | // CallTool proxies a tool call to the appropriate MCP server. |
| 740 | func (m *Manager) CallTool(ctx context.Context, req workspacesdk.CallMCPToolRequest) (workspacesdk.CallMCPToolResponse, error) { |