get_available_assignees
Retrieve users eligible for assignment to work packages in a specified OpenProject project to facilitate task delegation.
Instructions
Get list of users who can be assigned to work packages in a project.
Args:
project_id: Project identifier or ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes |
Implementation Reference
- Core implementation of get_available_assignees tool: fetches available assignees from OpenProject API for a given project using OpenProjectClient.async def get_available_assignees(project_id: str) -> dict[str, Any]: """Get list of users who can be assigned to work packages in a project. Args: project_id: Project identifier or ID Returns: Collection of available assignee users """ client = OpenProjectClient() try: result = await client.get(f"projects/{project_id}/available_assignees") return result finally: await client.close()
- src/openproject_mcp/server.py:127-134 (registration)MCP tool registration and handler wrapper that delegates to the work_packages module implementation.@mcp.tool() async def get_available_assignees(project_id: str): """Get list of users who can be assigned to work packages in a project. Args: project_id: Project identifier or ID """ return await work_packages.get_available_assignees(project_id=project_id)