list_projects
Retrieve all Redmine projects to view and manage team tasks and workflows.
Instructions
Returns a list of Redmine projects.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- redmine_mcp_interface.py:95-103 (handler)The MCP tool registration and entry point for 'list_projects'. It calls the underlying Redmine client.
@mcp.tool() def list_projects() -> List[Dict[str, Any]]: """Returns a list of Redmine projects.""" logger.info("tool=list_projects") try: return _client().list_projects() except RedmineError as e: logger.error(f"list_projects error: {e}") raise - redmine_mcp_server.py:23-29 (handler)The actual implementation of the project listing logic, interacting with the Redmine API.
def list_projects(self) -> List[Dict[str, Any]]: try: return [_project_dict(p) for p in self._redmine.project.all()] except (AuthError, ForbiddenError) as e: raise RedmineError(f"Authentication failed: {e}") from e except Exception as e: raise RedmineError(f"list_projects failed: {e}") from e