UNPKG

planka-mcp

Version:

A Model Context Protocol (MCP) server for managing Planka boards, cards, lists, and labels via CLI and NPX.

22 lines (21 loc) 1.01 kB
import { plankaColors } from "../lib/planka.js"; export default (server, planka) => { server.registerTool("get_available_colors", { title: "Gets the available colors for labels, lists and cards", description: "Returns a list of colors that can be used for labels, lists, and cards in Planka.", inputSchema: {} }, async ({}) => { return { content: [{ type: "text", text: `Colors that you can use are: ${plankaColors.map(color => `\`${color}\``).join(", ")}` }], }; }); server.registerTool("get_available_gradients", { title: "Gets the available gradients for the project background", description: "Returns a list of gradients that can be used for the project background in Planka.", inputSchema: {} }, async ({}) => { return { content: [{ type: "text", text: `Gradients that you can use are: ${plankaColors.map(color => `\`${color}\``).join(", ")} for the project` }], }; }); };