Skip to main content
Glama
ttpears

BookStack MCP Server

by ttpears

get_page

Retrieve the complete content of a BookStack documentation page by specifying its unique page ID. Use this tool to access detailed information stored in your knowledge management system.

Instructions

Get full content of a specific page

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesPage ID

Implementation Reference

  • The actual implementation of fetching a page by ID using the BookStack API client.
    async getPage(id: number): Promise<any> {
      const response = await this.client.get(`/pages/${id}`);
      return await this.enhancePageResponse(response.data);
    }
  • src/index.ts:179-194 (registration)
    Registration of the 'get_page' tool and its handler logic, which calls the BookStack client.
    server.registerTool(
      "get_page",
      {
        title: "Get Page Content",
        description: "Get full content of a specific page",
        inputSchema: {
          id: z.coerce.number().min(1).describe("Page ID")
        }
      },
      async (args) => {
        const page = await client.getPage(args.id);
        return {
          content: [{ type: "text", text: JSON.stringify(page, null, 2) }]
        };
      }
    );

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/ttpears/bookstack-mcp'

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