Skip to main content
Glama

ServiceTitan MCP Server

showSettings.js729 B
import path from 'path'; import fs from 'fs'; const filePath = path.join(process.cwd(), 'build', 'index.js'); // look for any env variables inside the file const envVariables = []; // Read the file const fileContent = fs.readFileSync(filePath, 'utf-8'); // Find all env variables const envRegex = /process\.env\.(\w+)/g; let match; while ((match = envRegex.exec(fileContent)) !== null) { envVariables.push({ [match[1]]: '<REPLACE>' }); } const structure = { mcpServers : { "service-titan" : { command : "node", args : [filePath], env : envVariables } } } console.log('Copy/Paste into your MCP client:'); console.log( JSON.stringify(structure, null, 2) );

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/JordanDalton/ServiceTitanMcpServer'

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