Skip to content

feat(mcp): add autonomous compute provisioning tool for AI agents - #676

Open
vhtgzzl wants to merge 1 commit into
sapiom:mainfrom
vhtgzzl:feat/mcp-compute-provisioner
Open

feat(mcp): add autonomous compute provisioning tool for AI agents#676
vhtgzzl wants to merge 1 commit into
sapiom:mainfrom
vhtgzzl:feat/mcp-compute-provisioner

Conversation

@vhtgzzl

@vhtgzzl vhtgzzl commented Aug 22, 2026

Copy link
Copy Markdown

Summary

Adds an on-demand cloud compute provisioning tool adapter (sapiom_provision_compute) compliant with the Model Context Protocol (MCP) standard, enabling autonomous agents to provision CPU/GPU instances via Sapiom agentic rails with enforced budget limits.

Key Features

  • MCP Tool Definition & Handler: Fully typed schema matching @modelcontextprotocol/sdk tool requirements.
  • Budget Guardrails: Validates instance hourly rate against maxDurationHours and maxBudgetUsd to prevent runaway agent billing.
  • Runtime Validation: Strict schema parsing for parameters (instanceType,
    egion, maxDurationHours, maxBudgetUsd) using Zod.
  • Vitest Suite: Covers valid provisioning, budget overflow rejection, MCP protocol payload handling, and validation error responses.

@github-actions github-actions Bot added contribution: incomplete Required pull request information is incomplete or ambiguous contributor: external Pull request author does not have write, maintain, or admin access to sapiom-js needs-triage Awaiting maintainer review and classification review: manual External pull request requires maintainer review before automation size: medium Review size is 101–500 changed lines area: platform-tools Changes to CLI, MCP, sandbox, tools, or plugins labels Aug 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: platform-tools Changes to CLI, MCP, sandbox, tools, or plugins contribution: incomplete Required pull request information is incomplete or ambiguous contributor: external Pull request author does not have write, maintain, or admin access to sapiom-js needs-triage Awaiting maintainer review and classification review: manual External pull request requires maintainer review before automation size: medium Review size is 101–500 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant