swit-project-list
Retrieve a list of projects from Swit workspaces to manage and organize collaborative tasks, using workspace ID and optional filters for activity, disclosure, or name.
Instructions
Retrieve list of projects
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace_id | Yes | ||
| offset | No | ||
| limit | No | ||
| activity | No | ||
| disclosure | No | ||
| name | No |
Implementation Reference
- src/handlers/core.handlers.ts:36-39 (handler)The main handler function for the 'swit-project-list' tool. It parses the input arguments using ProjectListArgsSchema and delegates to the SwitClient's listProjects method.export const handleProjectList = async (switClient: SwitClient, args: any) => { const validatedArgs = ProjectListArgsSchema.parse(args); return await switClient.listProjects(validatedArgs); };
- src/schemas.ts:132-139 (schema)Zod schema defining the input arguments for the project list tool, including workspace_id and pagination options.export const ProjectListArgsSchema = z.object({ workspace_id: z.string(), offset: z.string().optional(), limit: z.number().min(1).max(100).optional(), activity: z.string().optional(), disclosure: z.string().optional(), name: z.string().optional(), });
- src/tools/core.tools.ts:37-41 (registration)Tool metadata registration in coreTools array, used by the MCP server to list available tools.{ name: 'swit-project-list', description: 'Retrieve list of projects', inputSchema: zodToJsonSchema(ProjectListArgsSchema), },
- src/handlers/core.handlers.ts:47-47 (registration)Handler function mapping for 'swit-project-list' tool within the coreHandlers object returned by the factory function.'swit-project-list': (args: any) => handleProjectList(switClient, args),