mcpToolWrapper adapts a single MCP tool into a fantasy.AgentTool. It stores the prefixed name for Info() but strips the prefix when forwarding calls to the remote server.
| 499 | // fantasy.AgentTool. It stores the prefixed name for Info() but |
| 500 | // strips the prefix when forwarding calls to the remote server. |
| 501 | type mcpToolWrapper struct { |
| 502 | configID uuid.UUID |
| 503 | prefixedName string |
| 504 | originalName string |
| 505 | description string |
| 506 | parameters map[string]any |
| 507 | required []string |
| 508 | modelIntent bool |
| 509 | client *client.Client |
| 510 | providerOptions fantasy.ProviderOptions |
| 511 | } |
| 512 | |
| 513 | // MCPServerConfigID returns the database ID of the MCP server |
| 514 | // config that this tool originates from. |
nothing calls this directly
no outgoing calls
no test coverage detected