Skip to main content
Glama

tscircuit MCP Server

MIT License
3
  • Apple
install-integration.js•1.57 kB
#!/usr/bin/env bun import { existsSync, mkdirSync, writeFileSync, readFileSync } from 'fs'; import { join } from 'path'; import { homedir } from 'os'; console.log('šŸš€ Installing tscircuit MCP integration for Claude Desktop...\n'); const configDir = join(homedir(), 'Library', 'Application Support', 'Claude'); const configPath = join(configDir, 'claude_desktop_config.json'); const currentDir = process.cwd(); // Create config directory if it doesn't exist if (!existsSync(configDir)) { mkdirSync(configDir, { recursive: true }); console.log('āœ… Created Claude config directory'); } // Read existing config or create new one let config = {}; if (existsSync(configPath)) { try { const configContent = readFileSync(configPath, 'utf8'); config = JSON.parse(configContent); console.log('šŸ“– Found existing Claude config'); } catch (error) { console.log('āš ļø Could not parse existing config, creating new one'); config = {}; } } // Add tscircuit MCP server if (!config.mcpServers) { config.mcpServers = {}; } config.mcpServers.tscircuit = { command: 'bun', args: [join(currentDir, 'build', 'index.js')] }; // Write config writeFileSync(configPath, JSON.stringify(config, null, 2)); console.log('āœ… Added tscircuit MCP server to Claude Desktop config'); console.log('\nšŸ“ Next steps:'); console.log('1. Restart Claude Desktop (Cmd+Q then reopen)'); console.log('2. Look for the hammer icon (šŸ”Ø) in the input area'); console.log('3. Try asking: "Find me some LED components"'); console.log('\nšŸŽ‰ Installation complete!');

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/charlielockyer-rice/tscircuit-mcp'

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