mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-17 13:39:44 +02:00
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:
parent
8dd2b78935
commit
4514a35d1d
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user