Skip to main content
Glama

Saffron MCP Server

by tvh
codegen.sh691 B
#!/bin/bash set -e echo "Getting schema..." npx get-graphql-schema https://prod.mysaffronapp.com/graphql > schema.graphql echo "Extracting operations..." mkdir -p operations JS_FILE="https://www.mysaffronapp.com$(curl https://www.mysaffronapp.com/login | rg -o '<script src="/cra/static/js/main.[^"]+">' | rg -o '/cra/.*[.]chunk[.]js')" echo "JS File: $JS_FILE" curl "$JS_FILE.map" | \ jq -r '.sourcesContent[] | select(. | test("sourceMappingURL=apolloComponents.js.map"))' | \ rg -o --pcre2 --multiline --no-filename '(?<=client_1.gql `\n )[^`]+' | \ grep -v '${' > "operations/extracted.graphql" echo "Generating types..." npx graphql-codegen --config codegen.ts echo "Done!"

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/tvh/saffron-mcp'

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