MCPcopy
hub / github.com/composio-community/open-claude-cowork / updateOpencodeConfig

Function updateOpencodeConfig

server/server.js:42–54  ·  view source on GitHub ↗
(mcpUrl, mcpHeaders)

Source from the content-addressed store, hash-verified

40
41// Write MCP config to opencode.json
42function updateOpencodeConfig(mcpUrl, mcpHeaders) {
43 const opencodeConfigPath = path.join(__dirname, 'opencode.json');
44 const config = {
45 mcp: {
46 composio: {
47 type: 'remote',
48 url: mcpUrl,
49 headers: mcpHeaders
50 }
51 }
52 };
53 fs.writeFileSync(opencodeConfigPath, JSON.stringify(config, null, 2));
54}
55
56// Middleware
57app.use(cors());

Callers 2

server.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected