winjupos-mcp

winjupos-mcp

A local MCP server for Windows and WinJUPOS 12.4.1, providing a guarded workflow for Jupiter image measurement, image de-rotation, and moon-trail repair through 22 MCP tools.

Category
访问服务器

README

WinJUPOS MCP

A local MCP server for Windows + WinJUPOS 12.4.1. It gives Codex, ChatGPT Desktop, and other MCP-compatible clients a guarded workflow for Jupiter image measurement, image de-rotation, and moon-trail repair.

This project is currently Alpha software. GUI automation depends on the window structure of WinJUPOS 12.4.1. Always review the state before and after F11/F12 operations.

English (current) | 简体中文 | Contributing guide in Chinese

Features

  • Inspect the WinJUPOS installation, version, process state, active body, and open modules.
  • Calculate central meridians and altitude through the native WinJUPOS command-line interface.
  • Open image measurement, image de-rotation, ephemerides, and other supported modules.
  • Set UTC timestamps for Jupiter measurements, run an initial F11 outline fit, and normalize north/south orientation.
  • Save new .ims measurement files and .icm de-rotation recipes.
  • Load multiple .ims files, configure per-frame LD values, and run guarded F12 compilation to 48-bit PNG.
  • Repair moons and moon shadows stretched by a long de-rotation span while retaining real single-frame detail and 16-bit RGB output.
  • Capture a selected WinJUPOS window for visual review.
  • List and inspect supported WinJUPOS settings files without modifying them.

The server currently registers 22 MCP tools. Call list_modules to discover the stable module keys.

Requirements

  • Windows 10 or 11
  • Python 3.11
  • WinJUPOS 12.4.1 (default path: D:\WinJUPOS 12.4.1\WinJUPOS.x64.exe)

Installation

git clone https://github.com/nuan-xing/winjupos-mcp.git
cd winjupos-mcp
py -3.11 -m venv .venv
.\.venv\Scripts\python.exe -m pip install --upgrade pip
.\.venv\Scripts\python.exe -m pip install -e .

Start the STDIO server manually:

.\run_server.cmd

An STDIO MCP server does not display a normal interactive prompt after it starts. This is expected.

MCP configuration example

The following example targets Codex config.toml. Replace the repository and allowed astronomy-data directories with paths from your own machine:

[mcp_servers.winjupos]
command = 'C:\path\to\winjupos-mcp\run_server.cmd'

[mcp_servers.winjupos.env]
WINJUPOS_EXE = 'D:\WinJUPOS 12.4.1\WinJUPOS.x64.exe'
WINJUPOS_ALLOWED_ROOTS = 'D:\Astro;D:\WinJUPOS 12.4.1;C:\path\to\winjupos-mcp'
WINJUPOS_ARTIFACTS_DIR = 'C:\path\to\winjupos-mcp\artifacts'

Separate multiple allowed roots with semicolons. Restart the MCP client after changing its configuration.

Environment variables

Variable Purpose
WINJUPOS_EXE Path to the WinJUPOS x64 executable
WINJUPOS_ALLOWED_ROOTS Semicolon-separated local roots that the MCP may read or write
WINJUPOS_ARTIFACTS_DIR Destination for bounded window screenshots
WINJUPOS_MAX_ARTIFACTS Number of recent screenshots to retain; defaults to 50

Recommended image de-rotation workflow

  1. Call set_planet("jupiter").
  2. Open a source image with open_image_for_measurement(...).
  3. Call configure_image_measurement(...), auto_align_jupiter(), and ensure_jupiter_north_up().
  4. Use capture_window("image_measurement") to review the outline, timestamp, central meridians, and orientation.
  5. Save a new .ims with save_image_measurement(...), then repeat for every frame.
  6. Open derotation_images, then call add_derotation_measurements(...), set_derotation_ld_values(...), and configure_derotation_output(...).
  7. Use capture_window("derotation_images") to review frame order, reference time, LD, orientation, and output settings.
  8. Save an .icm with save_derotation_settings(...), then call execute_image_derotation(...).
  9. If a moon or its shadow is stretched, call repair_derotation_satellites(...) to create a separate repaired PNG.

Moon and moon-shadow repair

WinJUPOS planet-surface de-rotation does not track fast-moving satellites. repair_derotation_satellites first suppresses the complete motion trail, then moves high-frequency information from the real source frame nearest the reference time to the interpolated target position. It does not use generative image editing and does not average the already deformed satellite back into the result.

Each item in feature_tracks represents one moon or shadow:

{
  "name": "moon_shadow",
  "centers": [[232, 312], [241, 312], [251, 311], [254, 311]],
  "radius_x": 10.5,
  "radius_y": 8.5
}
  • centers must map one-to-one to time-ordered source_paths.
  • Every timestamp must include Z or an explicit UTC offset.
  • The tool linearly interpolates the target position between adjacent frames by default.
  • If the output has an additional translation, use target_center: [x, y] to override the interpolated coordinate.
  • Source frames and the de-rotated image must have identical dimensions.
  • The output must be a new PNG path. Inputs are never overwritten.

Safety boundaries

  • Every path must be inside WINJUPOS_ALLOWED_ROOTS.
  • GUI operations share a process-level lock to avoid concurrent changes to stateful WinJUPOS windows.
  • The server does not expose arbitrary mouse, keyboard, command-execution, or WinJUPOS macro tools.
  • It does not fabricate or rewrite proprietary .ims/.icm/.ics/.drs/.wjm binary content; WinJUPOS remains the writer.
  • F11 is only a starting fit and never replaces visual outline/grid verification.
  • F12 is exposed only through a high-level guarded tool and refuses to overwrite existing output.
  • artifacts/, jobs/, virtual environments, caches, and user images are excluded from Git by default.

Testing

Run unit tests that do not require a live WinJUPOS GUI:

.\.venv\Scripts\python.exe -m unittest discover -s tests -p "test_*.py" -v

When WinJUPOS is installed locally, run the STDIO smoke test:

.\.venv\Scripts\python.exe .\tests\smoke_stdio.py

smoke_gui_stdio.py opens and controls real WinJUPOS windows. Run it only when there is no unsaved WinJUPOS work.

Contributing

This is a public repository, so anyone may fork it and submit a Pull Request. For long-term co-maintainers, the repository owner may invite selected GitHub accounts under Settings → Collaborators. See the Chinese contribution guide for branch, test, privacy, and safety requirements.

Current limitations

  • Only WinJUPOS 12.4.1 x64 has been verified.
  • GUI labels and window classes may change between WinJUPOS releases.
  • Satellite repair currently requires a center coordinate from each source frame. It automates time interpolation and compositing, but does not automatically detect every satellite.
  • Guarded image de-rotation currently targets PNG. This project does not parse or rewrite WinJUPOS proprietary settings formats.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选