Skip to content
VS Code

AgentFEM for VS Code

io.github.haoming-luo/agentfem

Build, run, inspect, and verify finite-element simulations with AgentFEM.

client:VS Code transport:stdio runtime:pypi

Install AgentFEM in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "agentfem-mcp-roots",
      "description": "AGENTFEM_MCP_ROOTS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "agentfem-command",
      "description": "AGENTFEM_COMMAND",
      "password": true
    }
  ],
  "servers": {
    "agentfem": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "agentfem-mcp"
      ],
      "env": {
        "AGENTFEM_MCP_ROOTS": "${input:agentfem-mcp-roots}",
        "AGENTFEM_COMMAND": "${input:agentfem-command}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

AgentFEM in other clients