mia-platform / mia-platform/console-mcp-server

[Bug]: paginated requests do not include `perPage` query parameter

Open
#31 0 comments 0 reactions 1 assignee View on GitHub

@ThisIsDemetrio is already working on this.

Since Sep 16, 2025.

bug good first issue
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.