Skip to main content
Glama

Scout Monitoring MCP

Official
by scoutapp
shared.ts1.09 kB
import chalk from 'chalk'; import clack from '@/lib/utils/clack'; /** * Prompts the user to confirm opening a URL and optionally opens it * @param message - The confirmation message to show the user * @param url - The URL to open if confirmed * @param fallbackMessage - Message to show if user declines to open the URL * @returns Promise<void> */ export const promptAndOpenUrl = async ( message: string, url: string, fallbackMessage: string ): Promise<void> => { const shouldOpen = await clack.confirm({ message, initialValue: true, }); if (shouldOpen) { await openUrl(url); } else { console.log(chalk.yellow(fallbackMessage)); } }; /** * Opens a URL in the default browser * @param url - The URL to open */ export const openUrl = async (url: string): Promise<void> => { const open = (await import('open')).default; await open(url); }; /** * Get the base URL for Scout APM, either from env or default * @returns string - The base URL */ export const getBaseUrl = (): string => { return process.env.SCOUT_HOST || 'https://scoutapm.com'; };

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/scoutapp/scout-mcp-local'

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