get_activity
Retrieve details of a specific activity in OpenProject by providing its ID to access task updates, comments, or project changes.
Instructions
Get details of a specific activity.
Args:
activity_id: Activity ID
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activity_id | Yes |
Implementation Reference
- src/openproject_mcp/server.py:234-241 (registration)MCP tool registration for get_activity, which delegates to comments.get_activity@mcp.tool() async def get_activity(activity_id: int): """Get details of a specific activity. Args: activity_id: Activity ID """ return await comments.get_activity(activity_id=activity_id)
- Core implementation that fetches the activity details from OpenProject API using the clientasync def get_activity(activity_id: int) -> dict[str, Any]: """Get details of a specific activity. Args: activity_id: Activity ID Returns: Activity object with details """ client = OpenProjectClient() try: result = await client.get(f"activities/{activity_id}") return result finally: await client.close()