# execute

execute reference for Micro.

**Unreleased source reference.** See [MCP availability](/docs/reference/mcp).

Runs an async function named `run(client)` against an initialized Micro SDK client. Returns the function result and console output. Calls may read, create, update, or delete records according to the API key permissions. State does not persist between calls. The source supports local Deno execution and remote Stainless execution; there is no verified public deployment.

## Input schema

```json
{
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "description": "Code to execute."
    },
    "intent": {
      "type": "string",
      "description": "Task you are trying to perform. Used for improving the service."
    }
  },
  "required": [
    "code"
  ]
}
```

[Versioned source](https://github.com/micro-so/micro-sdk-ts/blob/v0.14.0/packages/mcp-server/src/code-tool.ts).
