fix: resolve E2E test failures and API runtime issues for Docker dev environment
- Fix DI issues: circular MCP module dependency, EventBus type import, SearchModule provider, CacheService metric counters placement - Fix Express 5 readonly req.query in SanitizeInputMiddleware - Fix Typesense client lazy initialization (getter instead of constructor) - Fix MinIO bucket init error handling (non-fatal on 403) - Fix missing class-validator decorators on bigint DTO fields (priceVND, amountVND) - Fix subscription plan 404 (was returning 500 for invalid tier) - Disable CSRF and raise rate limits in test environment - Update E2E tests to match actual API response shapes - Update CI workflow with Redis, Typesense, MinIO services and env vars All 101 API E2E tests now pass against Docker dev environment. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
"name": "@goodgo/mcp-servers",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"main": "./src/index.ts",
|
||||
"types": "./src/index.ts",
|
||||
"main": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"typecheck": "tsc --noEmit",
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { Injectable, Inject, type OnModuleInit } from '@nestjs/common';
|
||||
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
||||
import { MCP_MODULE_OPTIONS, type McpModuleOptions } from './mcp.module';
|
||||
import { MCP_MODULE_OPTIONS } from './mcp.constants';
|
||||
import type { McpModuleOptions } from './mcp.module';
|
||||
|
||||
@Injectable()
|
||||
export class McpRegistryService implements OnModuleInit {
|
||||
|
||||
1
libs/mcp-servers/src/nestjs/mcp.constants.ts
Normal file
1
libs/mcp-servers/src/nestjs/mcp.constants.ts
Normal file
@@ -0,0 +1 @@
|
||||
export const MCP_MODULE_OPTIONS = Symbol('MCP_MODULE_OPTIONS');
|
||||
@@ -1,13 +1,14 @@
|
||||
import { Module, type DynamicModule, type Provider } from '@nestjs/common';
|
||||
import { McpRegistryService } from './mcp-registry.service';
|
||||
import { McpTransportController } from './mcp-transport.controller';
|
||||
import { MCP_MODULE_OPTIONS } from './mcp.constants';
|
||||
|
||||
export interface McpModuleOptions {
|
||||
aiServiceBaseUrl: string;
|
||||
typesenseCollectionName?: string;
|
||||
}
|
||||
|
||||
export const MCP_MODULE_OPTIONS = Symbol('MCP_MODULE_OPTIONS');
|
||||
export { MCP_MODULE_OPTIONS };
|
||||
|
||||
@Module({})
|
||||
export class McpModule {
|
||||
|
||||
Reference in New Issue
Block a user