Skip to content

UseCreateMcpServer

katanakit-js / 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.

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

SafeResult<{ command?: string[]; disabled?: boolean; environment?: Record<string, string>; headers?: Record<string, string>; name: string; type: "local" | "remote"; url?: string; }>