Skip to main content
Glama

Worksona MCP Server

Official
by worksona
clean-agent-tools.jsโ€ข6.03 kB
#!/usr/bin/env node const fs = require('fs'); const path = require('path'); console.log('๐Ÿงน CLEANING AGENT TOOL REFERENCES'); console.log('=================================\n'); // Get all agent.md files that contain tool references const agentFiles = [ 'teams/investor-panel/angel-investor/agent.md', 'teams/board-of-directors/independent-director/agent.md', 'teams/investor-panel/vc-partner/agent.md', 'teams/board-of-directors/audit-committee-chair/agent.md', 'teams/investor-panel/strategic-investor/agent.md', 'teams/c-suite-executives/ciso/agent.md', 'teams/c-suite-executives/chro/agent.md', 'teams/c-suite-executives/coo/agent.md', 'teams/c-suite-executives/cmo/agent.md', 'teams/investor-panel/lead-investor/agent.md', 'teams/board-of-directors/board-chairman/agent.md', 'teams/c-suite-executives/cto/agent.md', 'teams/c-suite-executives/cfo/agent.md', 'teams/c-suite-executives/ceo/agent.md', 'teams/security-operations/incident-responder/agent.md', 'teams/security-operations/security-auditor/agent.md', 'teams/security-operations/risk-manager/agent.md', 'teams/elite-research/trend-analyst/agent.md', 'teams/elite-research/research-coordinator/agent.md', 'teams/elite-research/fact-checker/agent.md', 'teams/elite-research/report-generator/agent.md', 'teams/elite-research/source-indexer/agent.md', 'teams/elite-research/expert-synthesizer/agent.md', 'teams/elite-research/deep-miner/agent.md', 'teams/elite-research/content-analyzer/agent.md', 'teams/elite-research/research-synthesizer/agent.md', 'teams/elite-research/executive-summarizer/agent.md', 'teams/elite-research/pov-analyst/agent.md', 'teams/elite-research/search-specialist/agent.md', 'teams/elite-research/academic-analyst/agent.md', 'teams/content-documentation/shadcn-ui-builder/agent.md', 'teams/content-documentation/doc-writer/agent.md', 'teams/software-engineering/refactor/agent.md', 'teams/software-engineering/code-reviewer/agent.md', 'teams/software-engineering/api-developer/agent.md', 'teams/software-engineering/test-automator/agent.md', 'teams/software-engineering/frontend-developer/agent.md', 'teams/software-engineering/tdd-specialist/agent.md', 'teams/software-engineering/mobile-developer/agent.md', 'teams/ai-machine-learning/ai-engineer/agent.md', 'teams/ai-machine-learning/mlops-engineer/agent.md', 'teams/ai-machine-learning/ml-engineer/agent.md', 'teams/ai-machine-learning/prompt-engineer/agent.md', 'teams/software-architecture/graphql-architect/agent.md', 'teams/software-architecture/project-planner/agent.md', 'teams/software-architecture/backend-architect/agent.md', 'teams/software-architecture/architect-review/agent.md', 'teams/business-strategy/marketing-writer/agent.md', 'teams/business-strategy/business-analyst/agent.md', 'teams/business-strategy/product-manager/agent.md', 'teams/data-engineering/quant-analyst/agent.md', 'teams/data-engineering/data-scientist/agent.md', 'teams/data-engineering/data-engineer/agent.md', 'teams/devops-automation/devops-engineer/agent.md', 'teams/devops-automation/legacy-modernizer/agent.md', 'teams/devops-automation/context-manager/agent.md', 'teams/devops-automation/dx-optimizer/agent.md', 'teams/programming-languages/rust-pro/agent.md', 'teams/programming-languages/sql-pro/agent.md', 'teams/programming-languages/javascript-pro/agent.md', 'teams/programming-languages/python-pro/agent.md', 'teams/programming-languages/cpp-pro/agent.md', 'teams/programming-languages/c-pro/agent.md', 'teams/programming-languages/golang-pro/agent.md', 'teams/cloud-infrastructure/devops-troubleshooter/agent.md', 'teams/cloud-infrastructure/cloud-architect/agent.md', 'teams/cloud-infrastructure/deployment-engineer/agent.md', 'teams/cloud-infrastructure/terraform-specialist/agent.md', 'teams/consultancy-agents/market-researcher/agent.md', 'teams/consultancy-agents/ai-strategist/agent.md', 'teams/consultancy-agents/competitive-analyst/agent.md', 'teams/consultancy-agents/strategy-consultant/agent.md', 'teams/performance-reliability/performance-engineer/agent.md', 'teams/performance-reliability/error-detective/agent.md', 'teams/performance-reliability/database-admin/agent.md', 'teams/performance-reliability/database-optimizer/agent.md', 'teams/performance-reliability/network-engineer/agent.md', 'teams/distributed-systems/payment-integration/agent.md', 'teams/distributed-systems/akka-pro/agent.md', 'teams/distributed-systems/api-documenter/agent.md', 'teams/customer-engagement/content-marketer/agent.md', 'teams/customer-engagement/sales-automator/agent.md', 'teams/customer-engagement/customer-support/agent.md' ]; let processedCount = 0; let errorCount = 0; console.log(`๐Ÿ“‹ Processing ${agentFiles.length} agent files...\n`); agentFiles.forEach((filePath, index) => { try { const fullPath = path.resolve(filePath); if (!fs.existsSync(fullPath)) { console.log(`โš ๏ธ File not found: ${filePath}`); errorCount++; return; } // Read the file const content = fs.readFileSync(fullPath, 'utf8'); // Check if it contains a tools line if (!content.includes('tools:')) { console.log(`โœ… ${filePath} - No tools line found`); return; } // Remove the tools line const lines = content.split('\n'); const filteredLines = lines.filter(line => !line.startsWith('tools:')); const newContent = filteredLines.join('\n'); // Write back the file fs.writeFileSync(fullPath, newContent, 'utf8'); processedCount++; console.log(`โœ… ${filePath} - Tools line removed`); } catch (error) { console.error(`โŒ Error processing ${filePath}:`, error.message); errorCount++; } }); console.log(`\n๐ŸŽ‰ CLEANUP COMPLETE!`); console.log(`โœ… Processed: ${processedCount} files`); console.log(`โŒ Errors: ${errorCount} files`); console.log(`๐Ÿ“Š Total: ${agentFiles.length} files`);

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/worksona/-worksona-mcp-server'

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