Skip to content

Build a Local AI Coding Workspace with MCP for Claude Code, Codex, and More

Claude Code, Codex, and other AI coding clients can read your repository, but that is only part of a real development environment. They still need the runtime versions, local services, site URLs, logs, and managed config your project actually depends on.

FlyEnv turns that missing layer into one native local workflow. It manages the stack your project actually runs on, launches AI coding CLIs, and exposes that same environment through the built-in FlyEnv MCP Server.

Why AI Clients Need the Real Local Environment

An AI client is much more useful when it can work against the same local context you use yourself:

  • the active PHP, Node.js, or Python version
  • whether MySQL, Redis, or web services are running
  • local site URLs, managed files, configs, and logs
  • a safe, structured way to inspect or operate on that stack

FlyEnv does that by keeping the runtime layer and the AI access layer in the same workspace.

What the AI needsTypical shell-only setupWhat FlyEnv adds
Correct runtime versionManual switching and driftProject-level runtime switching
Running servicesStart everything by handService management in the same app
Local sites, configs, and logsScattered across terminals and filesStructured MCP access to site details and managed files
Safe machine controlToo much shell access or no access at allTool toggles, approvals, and audit logs

What FlyEnv Adds to a Local MCP Workflow

FlyEnv closes the gap in two layers:

  1. Local stack layer: manage runtimes, services, local domains, SSL, and project-level switching from one desktop app.
  2. AI bridge layer: expose that same environment to AI clients through MCP, with token auth, tool controls, approval policies, and audit logs.

This is the workflow behind the homepage promise: "Manage local runtimes, services, AI coding CLIs, and the MCP bridge in one place."

Step 1: Manage AI Coding CLIs in One Workspace

In the FlyEnv app, AI coding CLIs are first-class modules alongside local runtimes and services. Today the workspace can manage:

  • Claude Code
  • Codex
  • OpenCode
  • Kimi Code CLI
  • GitHub Copilot CLI
  • Antigravity CLI

That means you can keep the project runtime and the AI client in one place instead of stitching together separate installers and shell profiles by hand.

Step 2: Start the FlyEnv MCP Server

Open the MCP Server panel in FlyEnv and configure:

  • Host
  • Port
  • Token
  • Auto Start
  • Allow remote access
  • Enabled Tools
  • Approval policy for higher-risk tools

By default, FlyEnv is designed for local development:

  • it listens on 127.0.0.1
  • it uses a bearer token for client auth
  • it lets you turn tools on or off individually
  • it keeps an audit log of MCP activity

This gives you a practical local default without exposing your machine more broadly than necessary.

Step 3: Connect Claude Code, Codex, OpenCode, and Other Clients

FlyEnv supports two connection patterns.

HTTP MCP

FlyEnv can generate HTTP MCP config snippets directly in the app. The UI currently supports config output and one-click registration for:

  • Claude Code
  • Antigravity CLI
  • Codex
  • GitHub Copilot CLI
  • OpenCode
  • Kimi

Example Claude Code-style config:

json
{
  "mcpServers": {
    "flyenv": {
      "type": "http",
      "url": "http://127.0.0.1:7682",
      "headers": {
        "Authorization": "Bearer <your-token>"
      }
    }
  }
}

Example Codex config:

toml
[features]
rmcp_client = true

[mcp_servers.flyenv]
url = "http://127.0.0.1:7682"

[mcp_servers.flyenv.http_headers]
Authorization = "Bearer <your-token>"

Option B: Use the stdio MCP Bridge for Desktop Clients

For clients that prefer local stdio MCP servers, FlyEnv also exposes a bridge script. The app can generate a stdio snippet for clients such as:

  • Cursor
  • Cline
  • Windsurf
  • Claude Desktop

Example stdio config:

json
{
  "mcpServers": {
    "flyenv": {
      "command": "node",
      "args": ["<FlyEnv>/mcp/flyenv-mcp-stdio.mjs"],
      "env": {
        "FLYENV_MCP_URL": "http://127.0.0.1:7682",
        "FLYENV_MCP_TOKEN": "<your-token>"
      }
    }
  }
}

FlyEnv generates these snippets for you, so in most cases you do not need to hand-write config from scratch.

Step 4: Decide What the AI Is Allowed to Do

FlyEnv's MCP panel is not just an on/off switch. It also lets you scope what the AI can access.

Typical read and inspection tools include:

  • listing FlyEnv-managed services and installed versions
  • checking one service's status
  • listing local sites
  • resolving a site's runtime, URLs, and managed files
  • listing known config files and log files
  • listing downloadable service versions
  • reading database or cache connection details

Higher-impact tools include:

  • starting, stopping, or restarting services
  • creating or updating a site
  • deleting a site
  • installing a service version

For those higher-risk tools, FlyEnv supports:

  • tool-level enable/disable
  • approval mode
  • audit logging

That lets you keep AI agents useful without handing them an unrestricted control surface by default.

Step 5: Run a Practical Local AI Coding Workflow

Here is the common setup loop inside FlyEnv:

  1. Open your project in FlyEnv.
  2. Let FlyEnv switch to the correct runtime versions for that project.
  3. Start the local services your project needs.
  4. Launch or configure your preferred AI coding CLI from the same workspace.
  5. Start the FlyEnv MCP Server.
  6. Add the FlyEnv MCP config to the AI client by using the generated snippet or the in-app "Add to Client" action.
  7. Let the AI inspect the same local services, sites, configs, and logs you use yourself.

This is where FlyEnv differs from a generic shell-only workflow: the runtime, services, AI CLI, and MCP connection all point at the same local context.

Why This Works Well Without Docker-First Overhead

If your goal is a local AI coding workspace, you do not always need to start by containerizing the workflow. FlyEnv already manages native runtimes and local services, then gives AI clients structured MCP access to that stack.

For teams that want a lighter alternative to wiring Docker, shell scripts, and client config together by hand, that is often the simpler path.

Security Notes for Local MCP Setups

For most setups, keep these defaults:

  • keep MCP on 127.0.0.1
  • keep the token enabled
  • enable only the tools you need
  • use approval for risky operations

Only turn on remote access if you understand the network exposure and explicitly need it.

Frequently Asked Questions (FAQ)

Q: Does FlyEnv work as a Docker alternative for local AI coding?

A: In many local development workflows, yes. FlyEnv manages native runtimes, services, local sites, and MCP access without requiring a container-first setup.

Q: Which AI clients can connect to the FlyEnv MCP Server?

A: FlyEnv can generate HTTP MCP config for Claude Code, Codex, OpenCode, Kimi, GitHub Copilot CLI, and Antigravity CLI, plus stdio bridge config for clients such as Cursor, Cline, Windsurf, and Claude Desktop.

Q: Can I limit what an AI agent can change on my machine?

A: Yes. FlyEnv supports tool-level enable/disable controls, approval mode for riskier actions, and audit logs for MCP activity.

Next Steps

Set up the full workflow by installing FlyEnv, starting the MCP Server, and connecting your preferred AI coding client to the same local stack your project already uses.

Download FlyEnv to build a local AI coding workspace with runtimes, services, AI CLIs, and MCP in one place.