API and MCP: give your agent the cloud

Everything you can do in Mayadyn's console, you can do through its REST API at https://console.mayadyn.com/v1, and AI agents can do through its MCP endpoint at https://console.mayadyn.com/mcp. Both use the same API tokens, permissions, operations and audit log.

The MCP endpoint

URL https://console.mayadyn.com/mcp
Transport Streamable HTTP
Authentication Authorization: Bearer myd_…

To add it to Claude Code:

claude mcp add --transport http mayadyn https://console.mayadyn.com/mcp --header "Authorization: Bearer myd_..."

Other MCP clients that support streamable HTTP and custom headers take the same URL and header. Ask something read-only first, such as “what is running where?”.

What agents can do

Area Tools Permission
Orientation whoami, list_catalog, list_connections, connection_setup view
Machines list_resources, get_resource, create_vm, start_vm, stop_vm, sync_connection view, create/start/stop
Machines (removal) delete_vm delete
Apps list_apps, get_app, create_app, deploy_app, list_releases, rollback_app, app_logs, set_app_env view, create/start/stop
Apps (removal) delete_app delete
Operations get_operation, wait_operation, list_operations view

Changes return an operation the agent can wait on. Most accept dry_run and an idempotency_key. Failed calls return an error code, a message and usually a hint the agent can follow.

The REST API

  • Base URL https://console.mayadyn.com/v1, JSON in and out.
  • Tokens are created in the console under API tokens, shown once, and can be scoped (read, write, destroy, admin), limited to one project and set to expire.
  • Long-running changes return an operation; wait on it or poll it.
  • The catalog of providers, regions, sizes and images is public at GET /v1/catalog.
curl -s https://console.mayadyn.com/v1/catalog

Choose safe scopes

The agent’s job Scopes
Answer questions about what runs where read
Create, start and stop machines; deploy apps read, write
Also clean up machines and apps read, write, destroy

Avoid admin for agents: no MCP tool needs it. Read the AI agents guide for the full setup.

Questions people ask

How does an agent authenticate?

With a Mayadyn API token (myd_…) sent as a bearer token in the Authorization header. Console sessions are not accepted on the MCP endpoint.

Is there a command line too?

Yes. The mayadyn CLI covers the same actions. See the CLI guide.

Where is the full reference?

In the API reference on docs.mayadyn.com.

Connect your first cloud account in minutes

Create a workspace, connect Oracle Cloud or Google Cloud without handing over a key, and run your first machine. You pay only for what you use.