Skip to content

Run MCP server CI on Windows #124

Closed
Closed

Description

@TMHSDigital

Summary

The MCP server is meant to run on the user's machine, and CLAUDE.md names Windows (SSH and PowerShell) as the management platform, but ci.yml builds and tests only on ubuntu-latest.

Where

  • .github/workflows/ci.yml:15 (runs-on: ubuntu-latest)
  • Windows-specific code: mcp-server/src/utils/ssh-api.ts:188-194 (expandHome handles ~\), :384 (agent auth via SSH_AUTH_SOCK, which the Windows OpenSSH agent does not set)

Impact

Path, line-ending or agent regressions on Windows can ship unnoticed.

Suggested fix

  • Add windows-latest with Node 22 to the build-and-test matrix.
  • Add unit tests for key resolution with Windows-style paths (C:\\Users\\x\\.ssh\\id_ed25519, ~\\.ssh\\id_ed25519).

Acceptance criteria

  • npm run build && npm test runs and passes on Windows in CI.

Getting started

  • Relevant files: .github/workflows/ci.yml, mcp-server/src/utils/__tests__/ssh-api.test.ts

Filed by repo-audit/full-audit at a59395f. Severity: low. Effort: S. audit-key: testing|.github/workflows/ci.yml|build-and-test

Activity

  1. added
    good first issue
    testing
    severity: low
    on Nov 18, 2026
  2. TMHSDigital commented on Nov 18, 2026

    @TMHSDigital
    OwnerAuthor

    Fixed in 221089f. ci.yml now runs build-and-test on windows-latest with Node 22 next to ubuntu (22, 24), with fail-fast off; added tests for Windows-style key paths (absolute C:\... paths unchanged by expandHome, loadPrivateKey reading platform-separator and forward-slash paths). Verified: the Windows job passed in CI (runs 44351143080 and 44351421868).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueseverity: lowtesting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions