Skip to main content
Glama

mcp-server-cloudflare

Official
by cloudflare
utils.spec.ts510 B
import { describe, expect, it } from 'vitest' import { stripProtocolFromFilePath } from './utils' describe('get_file_name_from_path', () => { it('strips file:// protocol from path', async () => { const path = await stripProtocolFromFilePath('file:///files/contents/cats') expect(path).toBe('/files/contents/cats') }), it('leaves protocol-less paths untouched', async () => { const path = await stripProtocolFromFilePath('/files/contents/cats') expect(path).toBe('/files/contents/cats') }) })

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/cloudflare/mcp-server-cloudflare'

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