Skip to main content
Glama
confluence-page.ts976 B
import { Argument, PromptObject, Response } from "../models/prompt.model"; import { ConfluenceService } from "../services/confluence.service"; import { getTextContent } from "../utils"; export class ConfluencePagePrompt { promptObject: PromptObject = { name: "confluence-page", description: "Retrieve confluence page content", arguments: [ { name: "pageId", description: "The id of the page to fetch", required: true, }, ], }; _confluenceService: ConfluenceService = new ConfluenceService(); async handler(pageId: any) { const document = await this._confluenceService.requestPage(pageId); return { description: `Confluence page id ${pageId}`, messages: [ { role: "user", content: { type: "text", text: getTextContent( JSON.parse(document.body.atlas_doc_format.value), ), }, }, ], }; } }

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/mouhamadalmounayar/mcp-confluence'

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