Skip to main content
Glama
sanitize5.test.js359 B
'use strict' const { test } = require('node:test') const build = require('..') test('sanitize 5', t => { const payload = '(throw "pwoned")' t.assert.throws(() => { build({ patternProperties: { '*': { type: `*/${payload}){//` } } }) }, { message: 'schema is invalid: data/patternProperties must match format "regex"' }) })

Latest Blog Posts

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/krtw00/search-mcp'

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