UseCreateMcpServer
katanakit-js / useCreateMcpServer
Function: useCreateMcpServer()
Section titled “Function: useCreateMcpServer()”function useCreateMcpServer(input): SafeResult<{ command?: string[]; disabled?: boolean; environment?: Record<string, string>; headers?: Record<string, string>; name: string; type: "local" | "remote"; url?: string;}>;Defined in: core/services/mcp.service.ts:193
Creates a validated MCP server entry. See McpService.useCreateMcpServer.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
{ command?: string[]; disabled?: boolean; environment?: Record<string, string>; headers?: Record<string, string>; name: string; type: "local" | "remote"; url?: string; } |
input.command? |
string[] |
input.disabled? |
boolean |
input.environment? |
Record<string, string> |
input.headers? |
Record<string, string> |
input.name? |
string |
input.type? |
"local" | "remote" |
input.url? |
string |
Returns
Section titled “Returns”SafeResult<{
command?: string[];
disabled?: boolean;
environment?: Record<string, string>;
headers?: Record<string, string>;
name: string;
type: "local" | "remote";
url?: string;
}>