diff --git a/src/app/api/compatibility/route.ts b/src/app/api/compatibility/route.ts index 3d47f6f..dafc2f7 100644 --- a/src/app/api/compatibility/route.ts +++ b/src/app/api/compatibility/route.ts @@ -60,7 +60,8 @@ export async function GET(request: NextRequest) { const statusFilter = statusFilterRaw && VALID_STATUSES.includes(statusFilterRaw) ? statusFilterRaw : undefined; const seed = await readCompatibilitySeed(); - const mcpBySlug = new Map((mcpServers as any as McpServer[]).map((server) => [server.slug, server])); + // eslint-disable-next-line @typescript-eslint/no-explicit-any -- mcpData JSON shape lacks repo_url required by McpServer + const mcpBySlug = new Map((mcpServers as unknown as McpServer[]).map((server) => [server.slug, server])); const rows = seed.servers .map((row) => { diff --git a/src/app/mcp/mcp-client.tsx b/src/app/mcp/mcp-client.tsx index 0943079..3e57ad9 100644 --- a/src/app/mcp/mcp-client.tsx +++ b/src/app/mcp/mcp-client.tsx @@ -196,21 +196,21 @@ export function McpHubClient({ servers }: { servers: McpServer[] }) {
{/* Stats */} - {((server as any).stars || (server as any).installs || (server as any).framework) && ( + {(server.stars || server.installs || server.framework) && (