planka-mcp
Version:
A Model Context Protocol (MCP) server for managing Planka boards, cards, lists, and labels via CLI and NPX.
16 lines (15 loc) • 679 B
JavaScript
import z from "zod";
export default (server, planka) => {
server.registerTool("get_members", {
title: "Get Members",
description: "Gets all the members of the currently selected project.",
inputSchema: {
projectId: z.string().optional().describe("The ID of the project to select (Optional, normally don't provide this and instead be sure to use the selectProject tool or be sure you have used that).")
}
}, async ({ projectId }) => {
const project = await planka.getMembers(projectId);
return {
content: [{ type: "text", text: `Selected project: ${JSON.stringify(project)}` }]
};
});
};