obsidian-mcp-server
Version:
MCP server for Obsidian vaults — read, write, search, and surgically edit notes, tags, and frontmatter via the Local REST API plugin. STDIO or Streamable HTTP.
23 lines • 1.24 kB
TypeScript
/**
* @fileoverview Server-specific config for obsidian-mcp-server.
* Loads OBSIDIAN_* env vars used by the Obsidian Local REST API service layer.
* @module config/server-config
*/
import { z } from '@cyanheads/mcp-ts-core';
declare const ServerConfigSchema: z.ZodObject<{
apiKey: z.ZodString;
baseUrl: z.ZodDefault<z.ZodString>;
verifySsl: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
requestTimeoutMs: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
enableCommands: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
readPaths: z.ZodPreprocess<z.ZodPipe<z.ZodOptional<z.ZodArray<z.ZodString>>, z.ZodTransform<string[] | undefined, string[] | undefined>>>;
writePaths: z.ZodPreprocess<z.ZodPipe<z.ZodOptional<z.ZodArray<z.ZodString>>, z.ZodTransform<string[] | undefined, string[] | undefined>>>;
readOnly: z.ZodDefault<z.ZodPreprocess<z.ZodBoolean>>;
omnisearchUrl: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
export type ServerConfig = z.infer<typeof ServerConfigSchema>;
export declare function getServerConfig(): ServerConfig;
/** Test hook to reset the cached config. Not used at runtime. */
export declare function resetServerConfig(): void;
export {};
//# sourceMappingURL=server-config.d.ts.map