-
- MCP Provider Test
-
-
- {/* Add Server Section */}
-
-
- Add MCP Server
-
-
- {/* Quick Add Examples */}
-
-
- Quick Add Examples
-
-
-
-
-
-
- Click to auto-fill common server configurations
-
-
-
-
- setNewServerName(e.target.value)}
- />
- setNewServerUrl(e.target.value)}
- />
-
-
-
-
-
-
-
-
- {/* Server List */}
-
-
- Connected Servers ({connections.length})
-
-
- {connections.length === 0 ? (
-
No servers added yet.
- ) : (
-
- {connections.map((connection) => (
-
-
-
-
-
{getStatusIcon(connection.status)}
-
-
- {connection.name}
-
-
- {connection.url}
-
-
-
-
-
-
- Status: {connection.status}
-
-
- Transport: {connection.transport}
-
-
- Tools: {connection.tools.length}
-
-
- Resources: {connection.resources.length}
-
- {connection.connectionAttempts > 0 && (
-
- Attempts: {connection.connectionAttempts}
-
- )}
-
-
- {connection.error && (
-
- Error: {connection.error}
-
- )}
-
- {connection.lastConnected && (
-
- Last connected: {connection.lastConnected.toLocaleString()}
-
- )}
-
-
-
- {connection.status === 'failed' && (
-
- )}
-
-
-
-
- ))}
-
- )}
-
-
- {/* Tool Testing */}
- {connectedServers.length > 0 && (
-
-
- Tool Testing
-
-
-
- {/* Server Selection */}
-
-
-
-
-
- {/* Tool Selection */}
-
-
-
-
-
-
- {/* Tool Arguments */}
-
-
-
-
- {/* Call Tool Button */}
-
-
- {/* Tool Result */}
- {toolResult && (
-
-
-
- {toolResult}
-
-
- )}
-
- )}
-
- {/* Summary Stats */}
-
-
-
- {connections.length}
-
-
- Total Servers
-
-
-
-
-
- {connectedServers.length}
-
-
- Connected
-
-
-
-
-
- {allTools.length}
-
-
- Total Tools
-
-
-
-
-
- {allResources.length}
-
-
- Total Resources
-
-
-
-
- {/* Error Display */}
- {error && (
-
- )}
-
- {/* All Tools List */}
- {allTools.length > 0 && (
-
-
- All Available Tools ({allTools.length})
-
-
- {allTools.map((tool, index) => (
-
-
- {tool.function.name}
-
- {tool.function.description && (
-
- {tool.function.description}
-
- )}
-
- ))}
-
-
- )}
-