Skip to content

McpServerSchema

katanakit-js / McpServerSchema

const McpServerSchema: ZodObject<
{
command: ZodOptional<ZodArray<ZodString>>;
disabled: ZodOptional<ZodBoolean>;
environment: ZodOptional<ZodRecord<ZodString, ZodString>>;
headers: ZodOptional<ZodRecord<ZodString, ZodString>>;
name: ZodString;
type: ZodEnum<{
local: "local";
remote: "remote";
}>;
url: ZodOptional<ZodString>;
},
$strip
>;

Defined in: schemas/keyvault.schema.ts:66

One MCP server. Mirrors the OpenCode mcp.servers contract: a local server runs a command over stdio, a remote server is an absolute Streamable HTTP URL. Credential values use {env:NAME} substitution — the vault keeps the real secret, config files keep the reference.