Skip to content

更新文档

f088b6e
Select commit
Loading
Failed to load commit list.
Open

♻️ Mcp Tools Management Page Development #2771

更新文档
f088b6e
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed May 14, 2026 in 1m 49s

Quality Gate failed

Failed conditions
59 Security Hotspots
3.9% Duplication on New Code (required ≤ 3%)
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check failure on line 616 in backend/apps/remote_mcp_app.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "logging.exception()" instead.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5lZdfdkBgWhNl-12&open=AZ4l5lZdfdkBgWhNl-12&pullRequest=2771

Check failure on line 231 in backend/apps/mcp_management_app.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "logging.exception()" instead.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5lZmfdkBgWhNl-2J&open=AZ4l5lZmfdkBgWhNl-2J&pullRequest=2771

Check warning on line 219 in backend/services/mcp_management_service.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use asynchronous features in this function or remove the `async` keyword.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5laifdkBgWhNl-2a&open=AZ4l5laifdkBgWhNl-2a&pullRequest=2771

Check warning on line 473 in frontend/app/[locale]/mcp-tools/components/add/registry/McpRegistryDetailModal.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'pkg.version || ""' will use Object's default stringification format ('[object Object]') when stringified.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5lRdfdkBgWhNl-z6&open=AZ4l5lRdfdkBgWhNl-z6&pullRequest=2771

Check failure on line 680 in backend/apps/remote_mcp_app.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "logging.exception()" instead.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5lZdfdkBgWhNl-16&open=AZ4l5lZdfdkBgWhNl-16&pullRequest=2771

Check warning on line 240 in backend/apps/mcp_management_app.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "Annotated" type hints for FastAPI dependency injection

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5lZmfdkBgWhNl-2K&open=AZ4l5lZmfdkBgWhNl-2K&pullRequest=2771

Check warning on line 37 in frontend/app/[locale]/mcp-tools/components/add/registry/McpRegistryToolbar.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5lR1fdkBgWhNl-0M&open=AZ4l5lR1fdkBgWhNl-0M&pullRequest=2771

Check failure on line 639 in backend/apps/remote_mcp_app.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "logging.exception()" instead.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5lZdfdkBgWhNl-14&open=AZ4l5lZdfdkBgWhNl-14&pullRequest=2771

Check warning on line 241 in backend/apps/mcp_management_app.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "Annotated" type hints for FastAPI dependency injection

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5lZmfdkBgWhNl-2L&open=AZ4l5lZmfdkBgWhNl-2L&pullRequest=2771

Check warning on line 37 in frontend/app/[locale]/mcp-tools/components/add/community/McpCommunityDetailModal.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This assertion is unnecessary since the receiver accepts the original type of the expression.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5lJvfdkBgWhNl-zn&open=AZ4l5lJvfdkBgWhNl-zn&pullRequest=2771

Check warning on line 1 in frontend/lib/mcpTools.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'McpServer'.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5lYufdkBgWhNl-1a&open=AZ4l5lYufdkBgWhNl-1a&pullRequest=2771

Check warning on line 32 in frontend/app/[locale]/mcp-tools/components/add/community/McpCommunityDetailModal.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5lJvfdkBgWhNl-zm&open=AZ4l5lJvfdkBgWhNl-zm&pullRequest=2771

Check warning on line 152 in backend/apps/mcp_management_app.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "Annotated" type hints for FastAPI dependency injection

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5lZmfdkBgWhNl-2G&open=AZ4l5lZmfdkBgWhNl-2G&pullRequest=2771

Check warning on line 563 in frontend/lib/mcpTools.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Extract this nested ternary operation into an independent statement.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5lYufdkBgWhNl-1f&open=AZ4l5lYufdkBgWhNl-1f&pullRequest=2771

Check failure on line 564 in backend/consts/model.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "New MCP service name" 3 times.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5la3fdkBgWhNl-2e&open=AZ4l5la3fdkBgWhNl-2e&pullRequest=2771

Check failure on line 142 in backend/apps/mcp_management_app.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "logging.exception()" instead.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5lZmfdkBgWhNl-2F&open=AZ4l5lZmfdkBgWhNl-2F&pullRequest=2771

Check warning on line 596 in backend/apps/remote_mcp_app.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "Annotated" type hints for FastAPI dependency injection

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5lZdfdkBgWhNl-11&open=AZ4l5lZdfdkBgWhNl-11&pullRequest=2771

Check warning on line 296 in frontend/services/mcpService.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this useless assignment to variable "errorMessage".

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5lXNfdkBgWhNl-1V&open=AZ4l5lXNfdkBgWhNl-1V&pullRequest=2771

Check failure on line 71 in backend/apps/mcp_management_app.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use "logging.exception()" instead.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5lZmfdkBgWhNl-2A&open=AZ4l5lZmfdkBgWhNl-2A&pullRequest=2771

Check warning on line 499 in frontend/app/[locale]/mcp-tools/components/add/registry/McpRegistryDetailModal.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'pkg.identifier || index' will use Object's default stringification format ('[object Object]') when stringified.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5lRdfdkBgWhNl-z9&open=AZ4l5lRdfdkBgWhNl-z9&pullRequest=2771

Check warning on line 690 in backend/services/remote_mcp_service.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use asynchronous features in this function or remove the `async` keyword.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5laAfdkBgWhNl-2T&open=AZ4l5laAfdkBgWhNl-2T&pullRequest=2771

Check warning on line 40 in frontend/app/[locale]/mcp-tools/components/McpServiceDetailModal.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5lTAfdkBgWhNl-0e&open=AZ4l5lTAfdkBgWhNl-0e&pullRequest=2771

Check warning on line 98 in backend/services/mcp_management_service.py

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Use asynchronous features in this function or remove the `async` keyword.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5laifdkBgWhNl-2Y&open=AZ4l5laifdkBgWhNl-2Y&pullRequest=2771

Check warning on line 26 in frontend/app/[locale]/mcp-tools/components/add/registry/AddMcpServiceRegistrySection.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Mark the props of the component as read-only.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5lRtfdkBgWhNl-0J&open=AZ4l5lRtfdkBgWhNl-0J&pullRequest=2771

Check warning on line 35 in frontend/app/[locale]/mcp-tools/components/add/community/McpCommunityCard.tsx

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Avoid non-native interactive elements. If using native HTML is not possible, add an appropriate role and support for tabbing, mouse, keyboard, and touch inputs to an interactive content element.

See more on https://sonarcloud.io/project/issues?id=ModelEngine-Group_nexent&issues=AZ4l5lRBfdkBgWhNl-zu&open=AZ4l5lRBfdkBgWhNl-zu&pullRequest=2771