Skip to main content
Glama
makeplane

Plane MCP Server

Official
by makeplane

create_module

Add a new module to a project in Plane MCP Server by specifying project ID and module details, managing issues and workflows effectively.

Instructions

Create a new module in a project

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
module_dataYes
project_idYesThe uuid identifier of the project to create the module in

Implementation Reference

  • MCP server.tool call registering the 'create_module' tool, including its description, input schema using ModuleSchema, and inline handler function.
    server.tool( "create_module", "Create a new module in a project", { project_id: z.string().describe("The uuid identifier of the project to create the module in"), module_data: ModuleSchema.partial().required({ name: true, }), }, async ({ project_id, module_data }) => { const response = await makePlaneRequest( "POST", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/modules/`, module_data ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2), }, ], }; } );
  • The handler function that executes the tool logic: POST request to create module in Plane API and returns JSON response.
    async ({ project_id, module_data }) => { const response = await makePlaneRequest( "POST", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/modules/`, module_data ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2), }, ], }; }
  • Zod schema for Module (imported as ModuleSchema), used to validate the module_data input parameter with partial() and name required.
    export const Module = z.object({ archived_at: z.string().datetime({ offset: true }).optional(), backlog_issues: z.number().int().readonly(), cancelled_issues: z.number().int().readonly(), completed_issues: z.number().int().readonly(), created_at: z.string().datetime({ offset: true }).readonly(), created_by: z.string().uuid().readonly(), deleted_at: z.string().datetime({ offset: true }).readonly(), description: z.string().optional(), description_html: z.any().optional(), description_text: z.any().optional(), external_id: z.string().max(255).optional(), external_source: z.string().max(255).optional(), id: z.string().uuid().readonly(), lead: z.string().uuid().optional(), logo_props: z.any().optional(), members: z.array(z.string().uuid()).optional(), name: z.string().max(255), project: z.string().uuid().readonly(), sort_order: z.number().optional(), start_date: z.string().date().optional(), started_issues: z.number().int().readonly(), status: z.any().optional(), target_date: z.string().date().optional(), total_issues: z.number().int().readonly(), unstarted_issues: z.number().int().readonly(), updated_at: z.string().datetime({ offset: true }).readonly(), updated_by: z.string().uuid().readonly(), view_props: z.any().optional(), workspace: z.string().uuid().readonly(), }); export type Module = z.infer<typeof Module>;
  • Invocation of registerModuleTools which includes the create_module tool registration.
    registerModuleTools(server);

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/makeplane/plane-mcp-server'

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