fix(core): Bump Strapi listing version for streamable-http-templated (#38595)

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Thanasis G 2026-09-15 11:11:13 +00:00 committed by GitHub
parent 8dd2b78935
commit 4514a35d1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 7 deletions

View File

@ -143,7 +143,7 @@ describe('McpRegistryApiClient', () => {
expect(mockPaginatedRequest).toHaveBeenCalledWith(
PRODUCTION_URL,
{
version: 2,
version: 3,
pagination: { page: 1, pageSize: 25 },
},
{ throwOnError: true },
@ -297,7 +297,7 @@ describe('McpRegistryApiClient', () => {
expect(mockPaginatedRequest).toHaveBeenCalledWith(
PRODUCTION_URL,
{
version: 2,
version: 3,
fields: ['slug', 'version', 'updatedAt'],
pagination: { page: 1, pageSize: 500 },
},
@ -339,7 +339,7 @@ describe('McpRegistryApiClient', () => {
expect(mockPaginatedRequest).toHaveBeenCalledWith(
PRODUCTION_URL,
{
version: 2,
version: 3,
filters: {
slug: {
$in: ['server-a', 'server-b', 'server-c'],
@ -392,7 +392,7 @@ describe('McpRegistryApiClient', () => {
1,
PRODUCTION_URL,
{
version: 2,
version: 3,
filters: {
slug: {
$in: slugs.slice(0, 100),
@ -408,7 +408,7 @@ describe('McpRegistryApiClient', () => {
2,
PRODUCTION_URL,
{
version: 2,
version: 3,
filters: {
slug: {
$in: slugs.slice(100, 200),
@ -424,7 +424,7 @@ describe('McpRegistryApiClient', () => {
3,
PRODUCTION_URL,
{
version: 2,
version: 3,
filters: {
slug: {
$in: slugs.slice(200, 250),

View File

@ -17,8 +17,9 @@ const MCP_SERVERS_PRODUCTION_URL = 'https://api.n8n.io/api/mcp-servers';
const STRAPI_ARRAY_LIMIT = 100;
/** Version history:
* 2 - introduced authType: `usesCredentials` field
* 3 - introduced remotes[].type: `streamable-http-templated`
*/
const STRAPI_API_VERSION = 2;
const STRAPI_API_VERSION = 3;
@Service()
export class McpRegistryApiClient {