Skip to main content
Glama

Autodocument MCP Server

by PARS-DOE
config.js2.14 kB
/** * Default configuration values for the autodocument MCP server. */ export const defaultConfig = { openRouter: { apiKey: process.env.OPENROUTER_API_KEY || '', model: 'anthropic/claude-3-7-sonnet', baseUrl: 'https://openrouter.ai/api/v1', temperature: 0.5, // Lower temperature for more focused, deterministic responses maxTokens: 4000, // Reduced max tokens to limit response size }, fileProcessing: { codeExtensions: ['.ts', '.js', '.tsx', '.jsx', '.py', '.java', '.c', '.cpp', '.cs', '.php', '.rb', '.go', '.rs'], maxFileSizeKb: 100, maxFilesPerDirectory: 10, }, documentation: { outputFilename: 'documentation.md', fallbackFilename: 'undocumented.md', updateExisting: true, }, }; /** * Gets the current configuration by merging defaults with environment variables. */ export function getConfig(overrides) { const config = { ...defaultConfig }; // Override with environment variables if present if (process.env.OPENROUTER_API_KEY) { config.openRouter.apiKey = process.env.OPENROUTER_API_KEY; } if (process.env.OPENROUTER_MODEL) { config.openRouter.model = process.env.OPENROUTER_MODEL; } if (process.env.MAX_FILE_SIZE_KB) { config.fileProcessing.maxFileSizeKb = parseInt(process.env.MAX_FILE_SIZE_KB, 10); } if (process.env.MAX_FILES_PER_DIR) { config.fileProcessing.maxFilesPerDirectory = parseInt(process.env.MAX_FILES_PER_DIR, 10); } // Apply manual overrides if provided if (overrides) { return { ...config, ...overrides, openRouter: { ...config.openRouter, ...(overrides.openRouter || {}), }, fileProcessing: { ...config.fileProcessing, ...(overrides.fileProcessing || {}), }, documentation: { ...config.documentation, ...(overrides.documentation || {}), }, }; } return config; } //# sourceMappingURL=config.js.map

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/PARS-DOE/autodocument'

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