Skip to main content
Glama
json.tsโ€ข352 B
import type { FormatParser } from '../types.js' import util from '../util.js' const json: FormatParser = { read(path) { const content = util.readFile(path, '{}').trim() return JSON.parse(content) }, write(path, state) { const content = JSON.stringify(state, null, '\t') util.writeFile(path, content) }, } export default json

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/flesler/mcp-tasks'

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