UseFindMcpServer
katanakit-js / useFindMcpServer
Function: useFindMcpServer()
Section titled “Function: useFindMcpServer()”function useFindMcpServer( data, name,): | { command?: string[]; disabled?: boolean; environment?: Record<string, string>; headers?: Record<string, string>; name: string; type: "local" | "remote"; url?: string; } | undefined;Defined in: core/services/mcp.service.ts:213
Finds a server by name. See McpService.useFindMcpServer.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
data |
{ createdAt: string; keys: { createdAt: string; id: string; label: string; note?: string; provider: string; secret: string; status: "active" | "revoked"; updatedAt: string; }[]; mcpServers: { command?: string[]; disabled?: boolean; environment?: Record<string, string>; headers?: Record<string, string>; name: string; type: "local" | "remote"; url?: string; }[]; updatedAt: string; version: 1; } |
data.createdAt? |
string |
data.keys? |
{ createdAt: string; id: string; label: string; note?: string; provider: string; secret: string; status: "active" | "revoked"; updatedAt: string; }[] |
data.mcpServers? |
{ command?: string[]; disabled?: boolean; environment?: Record<string, string>; headers?: Record<string, string>; name: string; type: "local" | "remote"; url?: string; }[] |
data.updatedAt? |
string |
data.version? |
1 |
name |
string |
Returns
Section titled “Returns”| {
command?: string[];
disabled?: boolean;
environment?: Record<string, string>;
headers?: Record<string, string>;
name: string;
type: "local" | "remote";
url?: string;
}
| undefined