We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/neondatabase-labs/mcp-server-neon'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
client-application.ts•933 B
type KnownClientApplication =
| 'cursor'
| 'claude-code'
| 'claude-desktop'
| 'v0'
| 'vscode';
export type ClientApplication = KnownClientApplication | 'unknown';
/**
* Detects the client application type from the MCP client name or User-Agent.
* @param clientName - The name of the MCP client
* @returns The detected client application type
*/
export function detectClientApplication(
clientName?: string,
): ClientApplication {
if (!clientName) return 'unknown';
const normalized = clientName.toLowerCase();
// Known clients
if (normalized.includes('cursor')) return 'cursor';
if (normalized.includes('claude-code')) return 'claude-code';
if (
normalized.includes('claude-user') ||
normalized.includes('claude desktop')
)
return 'claude-desktop';
if (normalized.includes('v0bot')) return 'v0';
if (normalized.includes('visual studio code')) return 'vscode';
return 'unknown';
}