/**
* Error thrown when multiple regex matches are found but not allowed
*/
export class MultipleMatchesError extends Error {
constructor(matchCount: number, pattern: string) {
super(
`Found ${matchCount} matches for pattern "${pattern}" but allowMultipleOccurrences is false. ` +
"Use allowMultipleOccurrences: true to replace all matches, or provide a more specific regex.",
);
this.name = "MultipleMatchesError";
}
}
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/langadventurellc/task-trellis-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server