# WasmAgent MCP server

> Provides WASM-sandboxed code execution and tool management through a single execute_code interface to reduce context costs.

- Repository: https://github.com/WasmAgent/wasmagent-js
- Page: https://hostedmcp.org/servers/wasmagent/mcp-server
- Transport: stdio
- Stars: 7
- License: Apache-2.0
- Latest version: 1.1.1

## Install

### Claude Code

```sh
claude mcp add mcp-server -- npx -y @wasmagent/mcp-server
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@wasmagent/mcp-server"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@wasmagent/mcp-server"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp-server","type":"stdio","command":"npx","args":["-y","@wasmagent/mcp-server"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@wasmagent/mcp-server"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add mcp-server -- npx -y @wasmagent/mcp-server
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.mcp-server]
command = "npx"
args = ["-y", "@wasmagent/mcp-server"]
```

### Gemini CLI

```sh
gemini mcp add -s user mcp-server npx -- -y @wasmagent/mcp-server
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@wasmagent/mcp-server"
      ]
    }
  }
}
```

## FAQ

### How does this server reduce context costs?

Instead of exposing every tool directly to the host, it provides a single execute_code surface where the model dispatches tools internally, significantly lowering bootstrap-token costs.

### How is security enforced during code execution?

Security is enforced via a CapabilityManifest that restricts network access and filesystem paths at the kernel boundary.
