Skip to content

Commit 76d8909

Browse files
committed
fix
1 parent b48b536 commit 76d8909

File tree

4 files changed

+6
-7
lines changed

4 files changed

+6
-7
lines changed

.github/workflows/code_health.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
runs-on: ${{ matrix.os }}
2929
steps:
3030
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
31+
if: matrix.os != 'windows-latest'
3132
- uses: actions/checkout@v4
3233
- uses: actions/setup-node@v4
3334
with:

.github/workflows/tests_daily.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
run: npm ci
2020
- name: Run tests
2121
env:
22-
MDB_MCP_API_CLIENT_ID: ${{ secrets.TEST_ATLAS_CLIENT_ID }}
23-
MDB_MCP_API_CLIENT_SECRET: ${{ secrets.TEST_ATLAS_CLIENT_SECRET }}
24-
MDB_MCP_API_BASE_URL: ${{ vars.TEST_ATLAS_BASE_URL }}
22+
MDB_MCP_API_CLIENT_ID: ${{ secrets.TEST_ATLAS_CLIENT_ID }}
23+
MDB_MCP_API_CLIENT_SECRET: ${{ secrets.TEST_ATLAS_CLIENT_SECRET }}
24+
MDB_MCP_API_BASE_URL: ${{ vars.TEST_ATLAS_BASE_URL }}
2525
run: npm test

tests/integration/helpers.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,7 @@ export function validateParameters(tool: ToolInfo, parameters: ParameterInfo[]):
197197
expect(toolParameters).toIncludeAllMembers(parameters);
198198
}
199199

200-
201-
export function describeAtlas (name: number | string | Function | jest.FunctionLike, fn: jest.EmptyFunction) {
200+
export function describeAtlas(name: number | string | Function | jest.FunctionLike, fn: jest.EmptyFunction) {
202201
if (!process.env.MDB_MCP_API_CLIENT_ID?.length || !process.env.MDB_MCP_API_CLIENT_SECRET?.length) {
203202
return describe.skip("atlas", () => {
204203
describe(name, fn);

tests/integration/tools/atlas/listProjects.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { CallToolResult } from "@modelcontextprotocol/sdk/types.js";
22
import { jestTestMCPClient, describeAtlas } from "../../helpers.js";
33

4-
54
describeAtlas("listProjects tool", () => {
65
const client = jestTestMCPClient();
76

@@ -17,7 +16,7 @@ describeAtlas("listProjects tool", () => {
1716
});
1817

1918
it("returns project names", async () => {
20-
const response = await client().callTool({ name: "atlas-list-projects", arguments: {} }) as CallToolResult;
19+
const response = (await client().callTool({ name: "atlas-list-projects", arguments: {} })) as CallToolResult;
2120
expect(response.content).toBeArray();
2221
expect(response.content).toHaveLength(1);
2322
expect(response.content[0].text).toContain("MCP Test");

0 commit comments

Comments
 (0)