list_modules
Retrieve all modules associated with a specific project using the project_id. This tool supports effective project management by organizing and accessing module details within the Plane MCP Server.
Instructions
Get all modules for a specific project
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | The uuid identifier of the project to get modules for |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"project_id": {
"description": "The uuid identifier of the project to get modules for",
"type": "string"
}
},
"required": [
"project_id"
],
"type": "object"
}
Implementation Reference
- src/tools/modules.ts:14-27 (handler)Handler function that fetches modules for the given project_id via API and returns the JSON response as text content.async ({ project_id }) => { const response = await makePlaneRequest( "GET", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/modules/` ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2), }, ], }; }
- src/tools/modules.ts:11-13 (schema)Input schema defining the required project_id parameter as a string.{ project_id: z.string().describe("The uuid identifier of the project to get modules for"), },
- src/tools/modules.ts:8-28 (registration)Registration of the list_modules tool on the MCP server, specifying name, description, input schema, and handler function.server.tool( "list_modules", "Get all modules for a specific project", { project_id: z.string().describe("The uuid identifier of the project to get modules for"), }, async ({ project_id }) => { const response = await makePlaneRequest( "GET", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/modules/` ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2), }, ], }; } );
- src/tools/index.ts:18-18 (registration)Invocation of registerModuleTools within the main registerTools function, which registers the list_modules tool among others.registerModuleTools(server);