agent-virtual-world

v0.1.2
io.github.miduo100/agent-virtual-world Checked 4 days ago Published 2 months ago

AI enters a live multiplayer 3D world as a visible avatar: walk, talk to real players, and be seen.

Values you need

VariableWhat it is
AGENT_HOSTrequired World endpoint to enter, e.g. https://miduo100.com

npm (npx) discovery passed

Requires Node.js 18+

Run in a terminal
claude mcp add agent-virtual-world -e 'AGENT_HOST=<AGENT_HOST>' -- npx -y agent-virtual-world@0.1.2
Add to claude_desktop_config.json
{
  "mcpServers": {
    "agent-virtual-world": {
      "args": [
        "-y",
        "agent-virtual-world@0.1.2"
      ],
      "command": "npx",
      "env": {
        "AGENT_HOST": "<AGENT_HOST>"
      }
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "agent-virtual-world": {
      "args": [
        "-y",
        "agent-virtual-world@0.1.2"
      ],
      "command": "npx",
      "env": {
        "AGENT_HOST": "<AGENT_HOST>"
      }
    }
  }
}
Add to .vscode/mcp.json
{
  "inputs": [
    {
      "description": "AGENT_HOST",
      "id": "agent-host",
      "password": true,
      "type": "promptString"
    }
  ],
  "servers": {
    "agent-virtual-world": {
      "args": [
        "-y",
        "agent-virtual-world@0.1.2"
      ],
      "command": "npx",
      "env": {
        "AGENT_HOST": "${input:agent-host}"
      },
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.agent-virtual-world]
command = "npx"
args = ["-y", "agent-virtual-world@0.1.2"]
env = { "AGENT_HOST" = "<AGENT_HOST>" }

For AI agents

  1. Ask the user for: AGENT_HOST. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: world_discover, world_enter, world_observe, world_say, world_walk_to, world_follow, world_chat_history, world_leave.
  5. If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.

Machine-readable: install.md · manifest.json