Skip to main content
Glama

DevDocs MCP Server

by cyberagiinc
storage.ts1.01 kB
export async function saveMarkdown(url: string, content: string) { try { const response = await fetch('/api/storage', { method: 'POST', headers: { 'Content-Type': 'application/json', }, body: JSON.stringify({ url, content }), }) if (!response.ok) { throw new Error('Failed to save markdown') } return await response.json() } catch (error) { console.error('Error saving markdown:', error) return { success: false, error: error instanceof Error ? error.message : 'Failed to save markdown' } } } export async function loadMarkdown(url: string) { try { const response = await fetch(`/api/storage?url=${encodeURIComponent(url)}`) if (!response.ok) { throw new Error('Failed to load markdown') } return await response.json() } catch (error) { console.error('Error loading markdown:', error) return { success: false, error: error instanceof Error ? error.message : 'Failed to load markdown' } } }

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/cyberagiinc/DevDocs'

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