// Same logic as https://github.com/sindresorhus/is-interactive/blob/dc8037ae1a61d828cfb42761c345404055b1e036/index.js
// But defaults to check `stdin` for our prompts
// It checks that the stream is TTY, not a dumb terminal
type Options = {
stream?: NodeJS.ReadStream
}
export const isInteractive = ({ stream = process.stdin }: Options = {}): boolean => {
return Boolean(stream && stream.isTTY && process.env.TERM !== 'dumb')
}
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/prisma/prisma'
If you have feedback or need assistance with the MCP directory API, please join our Discord server