Skip to main content
Glama

MCP Printer Server

by steveclarke
index.tsβ€’1.05 kB
/** * @fileoverview Central tool registry. * Registers all MCP tools and prompts with the server instance. */ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js" import { registerPrinterTools } from "./printer.js" import { registerPrintTools } from "./print.js" import { registerPrompts } from "./prompts.js" import { config } from "../config.js" /** * Registers all available MCP tools and prompts with the given server. * Includes printer management tools, file printing, markdown rendering, and workflow prompts. * Write operations (set_default_printer, cancel_print_job) are conditionally * registered based on the MCP_PRINTER_ENABLE_MANAGEMENT configuration. * Prompts are conditionally registered based on the MCP_PRINTER_ENABLE_PROMPTS configuration. * * @param server - The McpServer instance to register tools and prompts with */ export function registerAllTools(server: McpServer) { registerPrinterTools(server) registerPrintTools(server) if (config.enablePrompts) { registerPrompts(server) } }

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/steveclarke/mcp-printer'

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