@posthog/wizard
Version:
The PostHog wizard helps you to configure your project
31 lines • 1.13 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDefaultServerConfig = exports.DefaultMCPClientConfig = void 0;
const zod_1 = __importDefault(require("zod"));
exports.DefaultMCPClientConfig = zod_1.default
.object({
mcpServers: zod_1.default.record(zod_1.default.string(), zod_1.default.object({
command: zod_1.default.string().optional(),
args: zod_1.default.array(zod_1.default.string()).optional(),
env: zod_1.default.record(zod_1.default.string(), zod_1.default.string()).optional(),
})),
})
.passthrough();
const getDefaultServerConfig = (apiKey) => ({
command: 'npx',
args: [
'-y',
'mcp-remote@latest',
'https://mcp.posthog.com/sse',
'--header',
`Authorization:\${POSTHOG_AUTH_HEADER}`,
],
env: {
POSTHOG_AUTH_HEADER: `Bearer ${apiKey}`,
},
});
exports.getDefaultServerConfig = getDefaultServerConfig;
//# sourceMappingURL=defaults.js.map