MCP Pagination CLI
Command-line interface for paginating through MCP server tools, resources, and prompts.Commands Overview
| Command | Description |
|---|---|
praisonai mcp list-tools | List tools with pagination |
praisonai mcp list-resources | List resources with pagination |
praisonai mcp list-prompts | List prompts with pagination |
List Tools with Pagination
Basic Usage
Options
| Option | Description | Default |
|---|---|---|
--limit <n> | Maximum tools per page | 50 |
--cursor <cursor> | Pagination cursor from previous response | None |
--json | Output in JSON format | False |
Pagination with Cursor
JSON Output
Iterate Through All Pages
List Resources with Pagination
List Prompts with Pagination
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Error (invalid cursor, etc.) |
Error Handling
Invalid Cursor
Out of Range Cursor
Examples
Quick Tool Count
Export All Tools to File
Filter by Annotation in Shell
Combine with Tools Search
See Also
- MCP Pagination Module - Code-based pagination usage
- MCP Tool Search CLI - Search and filter tools via CLI
- MCP CLI Overview - All MCP CLI commands

