fix: production readiness — resolve build, lint, and code quality issues
- Fix Next.js build failure: remove duplicate route at (dashboard)/listings/[id] that conflicted with (public)/listings/[id] (same URL path in two route groups) - Fix 772 ESLint errors: auto-fix import ordering (import-x/order), remove unused imports/variables, convert empty interfaces to type aliases, replace require() with ESM imports, fix consistent-type-imports violations - Add CLAUDE.md for developer onboarding documentation - All checks pass: 0 lint errors, typecheck clean, 230 tests passing, build success Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
import { Injectable, Inject, type OnModuleInit } from '@nestjs/common';
|
||||
import type { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
|
||||
import { Injectable, Inject, type OnModuleInit } from '@nestjs/common';
|
||||
import type { Client as TypesenseClient } from 'typesense';
|
||||
import { MCP_MODULE_OPTIONS } from './mcp.constants';
|
||||
import type { McpModuleOptions } from './mcp.module';
|
||||
|
||||
@Injectable()
|
||||
export class McpRegistryService implements OnModuleInit {
|
||||
private readonly servers = new Map<string, McpServer>();
|
||||
private typesenseClient: import('typesense').Client | null = null;
|
||||
private typesenseClient: TypesenseClient | null = null;
|
||||
|
||||
constructor(
|
||||
@Inject(MCP_MODULE_OPTIONS) private readonly options: McpModuleOptions,
|
||||
@@ -46,7 +47,7 @@ export class McpRegistryService implements OnModuleInit {
|
||||
);
|
||||
}
|
||||
|
||||
setTypesenseClient(client: import('typesense').Client): void {
|
||||
setTypesenseClient(client: TypesenseClient): void {
|
||||
this.typesenseClient = client;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Controller, Get, Post, Param, Req, Res, HttpException, HttpStatus } from '@nestjs/common';
|
||||
import { SSEServerTransport } from '@modelcontextprotocol/sdk/server/sse.js';
|
||||
import { Controller, Get, Post, Param, Req, Res, HttpException, HttpStatus } from '@nestjs/common';
|
||||
import type { Request, Response } from 'express';
|
||||
import { McpRegistryService } from './mcp-registry.service';
|
||||
import { type McpRegistryService } from './mcp-registry.service';
|
||||
|
||||
@Controller('mcp')
|
||||
export class McpTransportController {
|
||||
|
||||
Reference in New Issue
Block a user