feat: Add Close/Get Deployment #11
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add Close and Get Deployment Tools to Akash MCP Server
Summary
This PR adds two essential tools to the Akash MCP server for improved deployment lifecycle management:
close-deployment- Terminate deployments on the Akash Networkget-deployment- Query deployment details including status, groups, and escrowMotivation
The Akash MCP server previously lacked critical deployment management capabilities. Users could create and update deployments but had no programmatic way to:
These gaps prevented complete deployment lifecycle management through the MCP interface.
Changes
New Tools Added
1. Close Deployment Tool (
src/tools/close-deployment.ts)MsgCloseDeploymenttransaction to the Akash blockchain2. Get Deployment Tool (
src/tools/get-deployment.ts)Files Modified
src/tools/close-deployment.ts- New file (48 lines)src/tools/get-deployment.ts- New file (51 lines)src/tools/index.ts- Added exports for both toolssrc/AkashMCP.ts- Registered both tools inregisterTools()methodImplementation Details
Both tools follow the established patterns in the codebase:
createOutput()utilityTesting
Impact
These additions complete the core deployment management capabilities, enabling:
Breaking Changes
None. These are additive changes that maintain backward compatibility.
Checklist