Skip to main content
Glama

mcp-server-circleci

Official
configValidate.ts896 B
import { ConfigValidate } from '../schemas.js'; import { HTTPClient } from './httpClient.js'; export class ConfigValidateAPI { protected client: HTTPClient; constructor(httpClient: HTTPClient) { this.client = httpClient; } /** * Validate a config with the default values * @param params Configuration parameters * @param params.config The config to validate * @returns ConfigValidate * @throws Error if the config is invalid */ async validateConfig({ config, }: { config: string; }): Promise<ConfigValidate> { const rawResult = await this.client.post<unknown>( `/compile-config-with-defaults`, { config_yaml: config }, ); const parsedResult = ConfigValidate.safeParse(rawResult); if (!parsedResult.success) { throw new Error('Failed to parse config validate response'); } return parsedResult.data; } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/CircleCI-Public/mcp-server-circleci'

If you have feedback or need assistance with the MCP directory API, please join our Discord server