Skip to main content
Glama

ARC Config MCP Server

by tsviz
resource-optimizer.tsβ€’591 B
// ResourceOptimizer: Suggests optimal CPU/memory requests/limits for ARC runners import * as fs from 'fs'; import * as yaml from 'js-yaml'; export class ResourceOptimizer { static suggestResources(filePath: string, nodeCpu: number, nodeMemory: number): {cpu: string, memory: string} { const doc = yaml.load(fs.readFileSync(filePath, 'utf8')); // Simple logic: suggest 50% of node resources per runner const cpu = nodeCpu ? `${(nodeCpu * 0.5).toFixed(1)}` : '2.0'; const memory = nodeMemory ? `${Math.floor(nodeMemory * 0.5)}Mi` : '1Gi'; return { cpu, memory }; } }

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/tsviz/arc-config-mcp'

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