Skip to content

MCP: Suspend instance - #8487

Closed
ZJvandeWeg wants to merge 1 commit into
mainfrom
zj-mcp-suspend
Closed

ZJvandeWeg wants to merge 1 commit into
mainfrom
zj-mcp-suspend

Conversation

@ZJvandeWeg

Copy link
Copy Markdown
Member

Description

I tried this today, and it failed:

Screenshot 2026-09-11 at 13 36 30

Adds platform_suspend_hosted_instance, calling the existing project
suspend action route. Marked as a non-destructive write action
(destructiveHint: false): suspending stops the running container but
keeps the instance's flows, credentials, and settings intact, and it
can simply be started again, so it doesn't warrant the stricter
destructive-write gating.

Also documents the new tool in the Expert chat docs' platform actions
reference table.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Check platform_get_hosted_instance_status first if you need to confirm the instance is currently running before suspending it.`,
annotations: { readOnlyHint: false, destructiveHint: false },
inputSchema: {
hostedInstanceId: z.string().describe('The ID or hashid of the hosted instance')

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The questions is a bit if a z.number() or so would be better. The fact we're interpolating it later made me decide a string was fine.

@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.86%. Comparing base (2cc29db) to head (8fa182b).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8487   +/-   ##
=======================================
  Coverage   76.86%   76.86%           
=======================================
  Files         460      460           
  Lines       24751    24754    +3     
  Branches     6601     6601           
=======================================
+ Hits        19025    19028    +3     
  Misses       5726     5726           
Flag Coverage Δ
backend 76.86% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@andypalmi andypalmi left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you can, please add the unified tool to handle an instance status as detailed in this issue #7685

platform_instance_action

In the file for shared tools between instances and devices

@andypalmi

Copy link
Copy Markdown
Contributor

Closing in favor of #8504

This branch was successfully deployed

1 active deployment
staging — 8fa182bc Deployed Sep 14, 2026 by andypalmi via Remove application #11630
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants