Skip to content

About

Token-efficient Windows automation and durable research MCP server for Codex and Claude Code, powered by TypeSafe Jev.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

WindowsJev — Windows Automation and Research MCP Server

CI License: MIT Windows MCP

Give Codex or Claude Code one command to control Windows, run durable multi-source web research, checkpoint results, and return compact typed evidence instead of burning tokens on screenshot-by-screenshot loops.

Keywords: Windows AI automation, MCP server, Codex tools, Claude Code tools, TypeSafe Jev, UI Automation, autonomous research agent, local computer control, token-efficient browser automation.

WindowsJev is a local MCP tool for Codex and Claude Code. Give the LLM one complete instruction—such as “open the browser and search for Belize beachfront homes”—and one tool call performs the sequence on Windows and returns a compact verified trace. It does not stream screenshots back into the conversation.

Simple browser searches and URL navigation use deterministic Windows code and consume zero TypeSafe tokens. General desktop tasks use Microsoft UI Automation to create a bounded action list; TypeSafe Jev chooses among only those actions. The host LLM waits for the MCP call and receives one final result rather than spending a model turn on every click.

MCP tools

  • run_windows_task(goal, maxSteps): executes one bounded local task.
  • get_windows_snapshot(maxTargets): returns actionable foreground controls without AI or screenshots.
  • get_windows_jev_capabilities(): reports supported behavior and safety limits.
  • start_research_job(goal, queries, urls, outputDirectory): starts an independent durable research worker and returns a job ID immediately.
  • get_research_job(jobId) / list_research_jobs(): read checkpointed progress and artifact paths.
  • cancel_research_job(jobId) / retry_research_job(jobId): stop at a checkpoint or resume unfinished sources.
  • read_research_artifact(jobId, offset, maxCharacters): page through bounded report chunks.
  • search_research_artifact(jobId, term, maxMatches): find relevant report lines locally before spending host-model context.
  • rank_research_evidence(jobId, objective, maxCandidates): explicitly spend one batched Jev call to rerank a deterministic shortlist.
  • verify_research_claim(jobId, evidenceId, claim): check one claim against one exact stored passage and return probabilities/confidence.
  • get_compatibility_report(): read-only Windows, runtime, key-presence, and foreground-automation diagnostics.

Long research jobs

Research collection does not depend on Chrome's accessibility tree. WindowsJev searches for public sources, downloads bounded public HTTP/HTTPS pages directly, extracts readable text, and writes a cited Markdown artifact after every query or URL. Jobs accept up to 100 ordered inputs, continue in an independent hidden worker after the MCP call returns, and preserve completed work across retry.

Default artifacts: %USERPROFILE%\Documents\WindowsJev Research. Job state: %LOCALAPPDATA%\WindowsJev\jobs.

The collector blocks loopback and private-network addresses, limits downloads to 3 MB per page, uses request timeouts, and never sends page contents to Jev. A host LLM can synthesize the saved report once, while future Jev stages can cheaply score or filter bounded excerpts for relevance.

Every completed step also writes a .evidence.jsonl sidecar. Each evidence passage has a stable content-derived ID, canonical source URL, deterministic quality score, query, and title. Duplicate URLs, tracking parameters, and duplicate passages are removed before storage. Jev reranking is opt-in and reports exact token usage; claim verification is tied to one evidence ID and routes confidence below 0.80 to review.

Install, update, and release

.\install.ps1 -RegisterClaude
.\update.ps1 -PackagePath .\WindowsJev-version-win-x64.zip -Sha256 EXPECTED_HASH
.\scripts\build-release.ps1 -Version 0.3.0
.\scripts\benchmark.ps1

The installer never copies .env* files. The offline updater requires an expected SHA-256 before replacing installed files. Public releases additionally require Authenticode signing; see SECURITY.md and RELEASE_CHECKLIST.md.

Safety model

  • Password fields never enter observations.
  • Jev can select only actions created by deterministic code.
  • Typed text must be a literal span from the user's goal.
  • Low-confidence decisions, unsupported completion, and stalled interfaces stop.
  • MCP mode blocks passwords, CAPTCHAs, elevation, financial transactions, destructive actions, sending messages/email, and publishing.
  • General tasks stop after 12 actions by default (maximum 20).
  • The API key stays local and is never returned in tool output.
  • WindowsJev cannot control a process running at a higher Windows integrity level.

Build and verify

dotnet build .\WindowsJev.sln
dotnet test .\WindowsJev.sln
dotnet publish .\src\WindowsJev\WindowsJev.csproj -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true -o .\dist\win-x64

Put TYPESAFE_API_KEY=... in a .env.local beside the app or in one of its parent folders. URL/search fast paths do not require the key.

Install in Claude Code

claude mcp add windows-jev --scope user -- "C:\path\to\WindowsJev.exe" --mcp
claude mcp get windows-jev

Install in Codex

Current Codex releases support:

codex mcp add windows-jev -- "C:\path\to\WindowsJev.exe" --mcp
codex mcp list

In the Codex desktop app, the same local stdio server can be added under Settings → MCP servers. Some older Codex CLI builds do not provide mcp add; use the desktop setting or add this to %USERPROFILE%\.codex\config.toml:

[mcp_servers.windows-jev]
command = 'C:\path\to\WindowsJev.exe'
args = ['--mcp']

Restart the host after adding the server. Ask it: “Use WindowsJev to open the browser and search for Belize real estate.”

Direct CLI diagnostics

WindowsJev.exe --snapshot
WindowsJev.exe "click the Settings button"                 # dry run
WindowsJev.exe --execute "open Notepad"                    # guarded execution
WindowsJev.exe --mcp                                       # stdio MCP server

Architecture

one host-LLM tool call
  -> deterministic router (URL/search: zero Jev tokens)
  -> otherwise: foreground UI Automation accessibility tree
  -> bounded actions + literal text spans
  -> one Jev request per step: Choice + completion Noul
  -> local schema, confidence, and policy validation
  -> one Windows action, fresh observation, progress check
  -> compact final trace returned to the host LLM

Current limits

  • UI Automation works best with standard Windows applications and accessible web/browser controls. Canvas, WebGL, games, remote desktops, and custom-drawn controls may expose little state.
  • This build is unsigned and does not yet include an installer UI, automatic updater, per-application benchmark suite, or code-signing/release pipeline.
  • Search opens Google in the user's default browser. Configurable providers and richer deterministic browser recipes are planned next.
  • “Works in every circumstance” is not a truthful software guarantee: inaccessible custom controls, anti-bot pages, authentication, network outages, and higher-integrity Windows processes remain explicit failure states. WindowsJev records these instead of silently claiming completion.
  • The durable researcher collects and cites source text; it does not yet deduplicate claims, score source quality, or generate a final narrative synthesis by itself.

About

Token-efficient Windows automation and durable research MCP server for Codex and Claude Code, powered by TypeSafe Jev.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages