Skip to content

test: add tests and test tooling for MCP-UI #905

test: add tests and test tooling for MCP-UI

test: add tests and test tooling for MCP-UI #905

Triggered via pull request December 11, 2025 19:13
@tscktsck
synchronize #787
tests/mcp-ui
Status Failure
Total duration 4m 29s
Artifacts 6

code-health.yml

on: pull_request
Matrix: Run MongoDB tests
Run Atlas tests
2m 45s
Run Atlas tests
Run Atlas Local tests
3m 30s
Run Atlas Local tests
Run git secrets
55s
Run git secrets
Report Coverage
28s
Report Coverage
Fit to window
Zoom out
Zoom in

Annotations

31 errors and 1 warning
Run MongoDB tests (macos-latest)
Process completed with exit code 1.
tests/integration/ui/mcpUIFeature.test.ts > mcpUI feature with custom UIs > should merge custom UIs with bundled UIs: tests/integration/ui/mcpUIFeature.test.ts#L258
TypeError: server.uiRegistry.has is not a function ❯ tests/integration/ui/mcpUIFeature.test.ts:258:34
tests/integration/ui/mcpUIFeature.test.ts > mcpUI feature with custom UIs > should add new custom UIs for tools without bundled UIs: tests/integration/ui/mcpUIFeature.test.ts#L244
TypeError: server.uiRegistry.has is not a function ❯ tests/integration/ui/mcpUIFeature.test.ts:244:34
tests/integration/ui/mcpUIFeature.test.ts > mcpUI feature with custom UIs > should use custom UI when provided via server options: tests/integration/ui/mcpUIFeature.test.ts#L231
TypeError: server.uiRegistry.has is not a function ❯ tests/integration/ui/mcpUIFeature.test.ts:231:34
tests/integration/ui/mcpUIFeature.test.ts > mcpUI feature - UIRegistry initialization > server UIRegistry > should return list of available tools with UIs: tests/integration/ui/mcpUIFeature.test.ts#L157
TypeError: server.uiRegistry.getAvailableTools is not a function ❯ tests/integration/ui/mcpUIFeature.test.ts:157:58
tests/integration/ui/mcpUIFeature.test.ts > mcpUI feature with feature enabled > list-databases tool with mcpUI enabled > should include system databases in the response: tests/integration/helpers.ts#L321
AssertionError: expected undefined to be defined ❯ expectDefined tests/integration/helpers.ts:321:17 ❯ tests/integration/ui/mcpUIFeature.test.ts:119:17
tests/integration/ui/mcpUIFeature.test.ts > mcpUI feature with feature enabled > list-databases tool with mcpUI enabled > should return UIResource content when mcpUI feature is enabled: tests/integration/ui/mcpUIFeature.test.ts#L71
AssertionError: expected [] to have a length of 1 but got +0 - Expected + Received - 1 + 0 ❯ tests/integration/ui/mcpUIFeature.test.ts:71:42
tests/unit/toolBase.test.ts > ToolBase > appendUIResource > should append UIResource correctly when all conditions are met: tests/unit/toolBase.test.ts#L423
AssertionError: expected 'ui://test-tool-with-output-schema' to match /^ui:\/\/test-tool-with-output-schema…/\ - Expected: /^ui:\/\/test-tool-with-output-schema\/\d+$/ + Received: "ui://test-tool-with-output-schema" ❯ tests/unit/toolBase.test.ts:423:45
tests/unit/toolBase.test.ts > ToolBase > appendUIResource > should not append UIResource when outputSchema validation fails: tests/unit/toolBase.test.ts#L404
AssertionError: expected [ { type: 'text', …(1) }, …(1) ] to have a length of 1 but got 2 - Expected + Received - 1 + 2 ❯ tests/unit/toolBase.test.ts:404:36
Run MongoDB tests (windows-latest)
Process completed with exit code 1.
tests/integration/ui/mcpUIFeature.test.ts > mcpUI feature with custom UIs > should merge custom UIs with bundled UIs: tests/integration/ui/mcpUIFeature.test.ts#L258
TypeError: server.uiRegistry.has is not a function ❯ tests/integration/ui/mcpUIFeature.test.ts:258:34
tests/integration/ui/mcpUIFeature.test.ts > mcpUI feature with custom UIs > should add new custom UIs for tools without bundled UIs: tests/integration/ui/mcpUIFeature.test.ts#L244
TypeError: server.uiRegistry.has is not a function ❯ tests/integration/ui/mcpUIFeature.test.ts:244:34
tests/integration/ui/mcpUIFeature.test.ts > mcpUI feature with custom UIs > should use custom UI when provided via server options: tests/integration/ui/mcpUIFeature.test.ts#L231
TypeError: server.uiRegistry.has is not a function ❯ tests/integration/ui/mcpUIFeature.test.ts:231:34
tests/integration/ui/mcpUIFeature.test.ts > mcpUI feature - UIRegistry initialization > server UIRegistry > should return list of available tools with UIs: tests/integration/ui/mcpUIFeature.test.ts#L157
TypeError: server.uiRegistry.getAvailableTools is not a function ❯ tests/integration/ui/mcpUIFeature.test.ts:157:58
tests/integration/ui/mcpUIFeature.test.ts > mcpUI feature with feature enabled > list-databases tool with mcpUI enabled > should include system databases in the response: tests/integration/helpers.ts#L321
AssertionError: expected undefined to be defined ❯ expectDefined tests/integration/helpers.ts:321:17 ❯ tests/integration/ui/mcpUIFeature.test.ts:119:17
tests/integration/ui/mcpUIFeature.test.ts > mcpUI feature with feature enabled > list-databases tool with mcpUI enabled > should return UIResource content when mcpUI feature is enabled: tests/integration/ui/mcpUIFeature.test.ts#L71
AssertionError: expected [] to have a length of 1 but got +0 - Expected + Received - 1 + 0 ❯ tests/integration/ui/mcpUIFeature.test.ts:71:42
tests/unit/toolBase.test.ts > ToolBase > appendUIResource > should append UIResource correctly when all conditions are met: tests/unit/toolBase.test.ts#L423
AssertionError: expected 'ui://test-tool-with-output-schema' to match /^ui:\/\/test-tool-with-output-schema…/\ - Expected: /^ui:\/\/test-tool-with-output-schema\/\d+$/ + Received: "ui://test-tool-with-output-schema" ❯ tests/unit/toolBase.test.ts:423:45
tests/unit/toolBase.test.ts > ToolBase > appendUIResource > should not append UIResource when outputSchema validation fails: tests/unit/toolBase.test.ts#L404
AssertionError: expected [ { type: 'text', …(1) }, …(1) ] to have a length of 1 but got 2 - Expected + Received - 1 + 2 ❯ tests/unit/toolBase.test.ts:404:36
Run MongoDB tests (ubuntu-latest)
Process completed with exit code 1.
tests/integration/ui/mcpUIFeature.test.ts > mcpUI feature with custom UIs > should merge custom UIs with bundled UIs: tests/integration/ui/mcpUIFeature.test.ts#L258
TypeError: server.uiRegistry.has is not a function ❯ tests/integration/ui/mcpUIFeature.test.ts:258:34
tests/integration/ui/mcpUIFeature.test.ts > mcpUI feature with custom UIs > should add new custom UIs for tools without bundled UIs: tests/integration/ui/mcpUIFeature.test.ts#L244
TypeError: server.uiRegistry.has is not a function ❯ tests/integration/ui/mcpUIFeature.test.ts:244:34
tests/integration/ui/mcpUIFeature.test.ts > mcpUI feature with custom UIs > should use custom UI when provided via server options: tests/integration/ui/mcpUIFeature.test.ts#L231
TypeError: server.uiRegistry.has is not a function ❯ tests/integration/ui/mcpUIFeature.test.ts:231:34
tests/integration/ui/mcpUIFeature.test.ts > mcpUI feature - UIRegistry initialization > server UIRegistry > should return list of available tools with UIs: tests/integration/ui/mcpUIFeature.test.ts#L157
TypeError: server.uiRegistry.getAvailableTools is not a function ❯ tests/integration/ui/mcpUIFeature.test.ts:157:58
tests/integration/ui/mcpUIFeature.test.ts > mcpUI feature with feature enabled > list-databases tool with mcpUI enabled > should include system databases in the response: tests/integration/helpers.ts#L321
AssertionError: expected undefined to be defined ❯ expectDefined tests/integration/helpers.ts:321:17 ❯ tests/integration/ui/mcpUIFeature.test.ts:119:17
tests/integration/ui/mcpUIFeature.test.ts > mcpUI feature with feature enabled > list-databases tool with mcpUI enabled > should return UIResource content when mcpUI feature is enabled: tests/integration/ui/mcpUIFeature.test.ts#L71
AssertionError: expected [] to have a length of 1 but got +0 - Expected + Received - 1 + 0 ❯ tests/integration/ui/mcpUIFeature.test.ts:71:42
tests/unit/toolBase.test.ts > ToolBase > appendUIResource > should append UIResource correctly when all conditions are met: tests/unit/toolBase.test.ts#L423
AssertionError: expected 'ui://test-tool-with-output-schema' to match /^ui:\/\/test-tool-with-output-schema…/\ - Expected: /^ui:\/\/test-tool-with-output-schema\/\d+$/ + Received: "ui://test-tool-with-output-schema" ❯ tests/unit/toolBase.test.ts:423:45
tests/unit/toolBase.test.ts > ToolBase > appendUIResource > should not append UIResource when outputSchema validation fails: tests/unit/toolBase.test.ts#L404
AssertionError: expected [ { type: 'text', …(1) }, …(1) ] to have a length of 1 but got 2 - Expected + Received - 1 + 2 ❯ tests/unit/toolBase.test.ts:404:36
Report Coverage
Unable to download artifact(s): Artifact not found for name: test-results Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact. For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md
Run MongoDB tests (ubuntu-latest)
No files were found with the provided path: coverage/lcov.info. No artifacts will be uploaded.

Artifacts

Produced during runtime
Name Size Digest
atlas-local-test-results
19.3 KB
sha256:93b0bcbcd7a4e514e4e42afd0f74b40ffa99a45f60e4b9a94140f195b3fdb2cc
atlas-test-results
20.9 KB
sha256:f62f8f52dc04d2f3ab680a122008310af278c7c04ab003090da18ec742dfade9
run-atlas-local-tests-permissions-46c08ff7c8b86939eb08ad944277ea81
140 Bytes
sha256:4979d7e5644b9f0ed1099c9d2a7aac435128b9ca464c9f695a39663f565c6eee
run-atlas-tests-permissions-dcd64ee64174e6caf286e45d00727b89
140 Bytes
sha256:49624b78d560f2bbb256e8c89a861a1c2c033ed6932903d1693ea895b4eae0f3
run-git-secrets-permissions-c817bb69a043ddfe925ca6abde08740f
140 Bytes
sha256:dc8bff3c93a39e21d8dc732f8b041494e37b3bc96c49c5ef05faaaa66321f6b7
run-tests-permissions-51cd9ad069ae91210b12dc795a7552a8
140 Bytes
sha256:ee263f166cad396851fc3c5f7ab98660e190d002b9857c22cfeb4c01ce097e02