mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3324
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1227
Author: @BGonnermann
Created: 10/6/2026
Status: ❌ Closed
Base:
main← Head:mcp/amd-install-plan-990📝 Commits (1)
775a323mcp: the install plan follows setup's AMD rules - Windows AMD and vision=cpu on Linux are planned (#990)📊 Changes
3 files changed (+161 additions, -22 deletions)
View changed files
📝
docs/MCP_SERVER.md(+5 -0)📝
tools/strata_mcp.py(+49 -22)📝
tools/test_strata_mcp.py(+107 -0)📄 Description
Fixes #990.
The problem
strata_install(the MCP server's install planner) kept its own copy of the AMD rules, and the copy was older thansetup's:
backend: hipon Windows was refused ("runs on Linux only"), although setup installs the ready-made Windows AMDengine since 0.1.34.
visionother thannowithbackend: hipwas refused, although--vision cpuworks on Linux AMD since 0.1.32.The change
Strata.amd_images()(new)setup.py's ownhip_visionwhat--visiongives on an AMD card, so the plan and setup cannot drift apart. The same rule is built in for whensetup.pydoes not import. Setup's warning is kept out of stdout.install_planvision: cpuplans where setup supports it.vision: yes/gpuon an AMD card is still refused, because setup would only switch images off; the message now namesvision=cpu.gpuswith an AMD card on Windows is refused, where setup stops too.install_plan, nobackendgivenvision: yespassed the plan and setup dropped the images silently._hardwareamd_gpus_windows()(display adapters and registry).recommenddocs/MCP_SERVER.mdTwo things to know
amd_gpus(): with an AMD engine installed that runsstrata-device --list-devicesand copies runtime files beside it, andstrata_statusis a read-only tool. So thecard numbering can differ from setup's once an AMD engine is installed. Say so if you would rather have setup's
numbering there.
hip_vision. The planner follows it without a change here; one assertion intest_amd_cards_are_listed_on_windows("no images") and the Windows rows oftest_amd_plans_follow_setupwouldthen need updating.
Tests
python -m unittest tools/test_strata_mcp.py: 27 pass (23 before, 4 new), on Windows 11, Python 3.14.7. No GPU and nodownload; the hardware is mocked, and Linux / Windows are both run by patching
WIN.test_amd_plans_follow_setup: Linux AMD +vision: cpuplans;yes/gpurefused; Windows AMD text plans;Windows AMD images refused; Windows AMD
gpusrefused. Every case checks that nothing was started.test_amd_is_recognized_without_backend: the AMD-only PC withbackendleft out orauto; a PC with an NVIDIA cardkeeps
vision: yes.test_amd_image_rule_is_setups:amd_imagesequalssetup.hip_visionfor every value on both systems, and so doesthe built-in rule.
test_amd_cards_are_listed_on_windows: a supported card is recommended with the AMD engine; an integrated Radeon isnamed with setup's reason; the engine probe is not run.
python tools/test_setup_amd.py: 30 pass.Not tested on a real AMD card: this PC has an RTX 5070 Ti and an integrated Radeon (listed as not supported, as it
should be). The issue's own request (
backend: hip,vision: cpu,confirm: false) was replayed here on Windows: itis refused for Windows only, and the same request without
visionreturns a plan.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.