Skip to main content
Glama
config-factory.ts668 B
/** * Factory for creating test configurations */ import { NextcloudConfig } from '../../config/config.js'; /** * Factory for creating configuration objects for tests */ export class ConfigFactory { /** * Create a Nextcloud configuration with default test values * @param overrides Properties to override defaults * @returns A NextcloudConfig instance */ static createNextcloudConfig(overrides: Partial<NextcloudConfig> = {}): NextcloudConfig { const defaults: NextcloudConfig = { baseUrl: 'https://nextcloud.example.com', username: 'testuser', appToken: 'test-token', }; return { ...defaults, ...overrides }; } }

Latest Blog Posts

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/Cheffromspace/mcp-nextcloud-calendar'

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