list_wiki_pages
Retrieve wiki pages from a specific project on the Taiga platform using session and project IDs for efficient project documentation management.
Instructions
Lists wiki pages within a specific project.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_id | Yes | ||
| session_id | Yes |
Implementation Reference
- src/server.py:1195-1213 (handler)The handler function for the 'list_wiki_pages' MCP tool. It retrieves wiki pages for a specified project using the authenticated Taiga client wrapper by calling taiga_client_wrapper.api.wiki.list(project_id=project_id).def list_wiki_pages(session_id: str, project_id: int) -> List[Dict[str, Any]]: """Lists wiki pages for a project.""" logger.info( f"Executing list_wiki_pages for project {project_id}, session {session_id[:8]}...") taiga_client_wrapper = _get_authenticated_client(session_id) # Use wrapper variable name try: # Use pytaigaclient syntax: client.wiki.list(project_id=...) pages = taiga_client_wrapper.api.wiki.list(project_id=project_id) # return [p.to_dict() for p in pages] # Remove .to_dict() return pages # Return directly except TaigaException as e: logger.error( f"Taiga API error listing wiki pages for project {project_id}: {e}", exc_info=False) raise e except Exception as e: logger.error( f"Unexpected error listing wiki pages for project {project_id}: {e}", exc_info=True) raise RuntimeError(f"Server error listing wiki pages: {e}")