get_becky_shared_projects
Retrieve projects owned by Becky that are shared for handling tasks in her designated scope per Brian's instructions.
Instructions
Get projects that belong to Becky and are shared for tasks in her ballpark to handle per Brian
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/projects.ts:58-78 (handler)The handler function for the 'get_becky_shared_projects' tool. It executes the core service function, formats the response as MCP content, and handles errors.handler: async () => { console.error('Executing get_becky_shared_projects...'); try { const result = await getBeckySharedProjects(); console.error('get_becky_shared_projects completed successfully'); return { content: [ { type: 'text', text: JSON.stringify(result, null, 2), }, ], }; } catch (error) { throw new Error( `Failed to get Becky shared projects: ${ error instanceof Error ? error.message : 'Unknown error' }` ); } },
- src/tools/projects.ts:48-57 (schema)Schema definition for the tool, specifying name, description, and empty input schema (no parameters required).schema: { name: 'get_becky_shared_projects', description: 'Get projects that belong to Becky and are shared for tasks in her ballpark to handle per Brian', inputSchema: { type: 'object', properties: {}, required: [], }, },
- src/handlers/tool-request-handler.ts:73-73 (registration)Registration of the tool handler in the toolsWithoutArgs registry, mapping 'get_becky_shared_projects' to getBeckySharedProjectsTool.handler.get_becky_shared_projects: getBeckySharedProjectsTool.handler,
- Helper function implementing the core logic: fetches all projects and filters those that are Becky shared using isBeckySharedProject utility.export async function getBeckySharedProjects(): Promise<ProjectsResponse> { try { const allProjects = await listProjects(); const filteredProjects = allProjects.projects.filter(isBeckySharedProject); return { projects: filteredProjects, total_count: filteredProjects.length, }; } catch (error) { throw new Error( `Failed to get Becky shared projects: ${getErrorMessage(error)}` ); } }
- src/index.ts:89-89 (registration)The tool schema is included in the list of tools returned by ListToolsRequestHandler.getBeckySharedProjectsTool.schema,