mia-platform / mia-platform/console-mcp-server
[Bug]: paginated requests do not include `perPage` query parameter
@ThisIsDemetrio is already working on this.
Since Sep 16, 2025.
- Dominant language
- TypeScript
- Stars
- 3
- Forks
- 3
- Avg merge
- 2h 28m
- Merged PRs (30d)
- 2
Description
### What version or versions you have tested?
1.0.5
### Which operating systems have you used?
- [ ] macOS
- [ ] Windows
- [x] Linux
### What did you expect to happen?
Looking at the code, specifically on the [`getPaginated` method in the HttpClient class](https://github.com/mia-platform/console-mcp-server/blob/main/src/apis/http-client/index.ts#L85), we noticed that the `get_page` query parameter to set the number of elements retrieved in a single page.
However, several Mia-Platform APIs does not use the `per_page` param, since it is deprecated in favor of `perPage`. We should include also this param to reflect these changes.
### What happened instead?
It actually works the same, but some API (e.g. Marketplace) uses the new syntax and this might create issues (depending on the default `perPage` value assigned).
### Code of Conduct
- [x] I agree to follow this project’s Code of Conduct
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.