Skip to main content
Glama

MCP - Agent to VSC

Local MCP server that connects an MCP-capable VS Code agent such as Cline to OpenAI and workspace file tools.

Flow

Cline / VS Code -> MCP (stdio) -> local Node.js server -> OpenAI API

Related MCP server: Code MCP Server

Tools

  • ask_ai — send prompts to OpenAI

  • read_file — read workspace files

  • write_file — write workspace files

  • list_files — list workspace files/directories

  • workspace_info — inspect configuration

Install

Requirements: Node.js 20+.

npm install

Set OPENAI_API_KEY in the environment. Never commit the real key.

PowerShell:

$env:OPENAI_API_KEY="sk-..."
npm start

Cline

Add this server to Cline's MCP settings:

{
  "mcpServers": {
    "mcp-agent-to-vsc": {
      "command": "node",
      "args": ["C:\\path\\to\\mcp-agent-to-vsc\\server.mjs"],
      "env": {
        "OPENAI_API_KEY": "YOUR_API_KEY",
        "OPENAI_MODEL": "gpt-5.6",
        "WORKSPACE_ROOT": "C:\\path\\to\\your\\workspace"
      }
    }
  }
}

For local VS Code MCP configuration, see .vscode/mcp.json.

Security

The server restricts file access to WORKSPACE_ROOT. Keep your API key in an environment variable or an ignored .env file.

F
license - not found
-
quality - not tested
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    C
    quality
    D
    maintenance
    An experimental MCP server that enables AI assistants to interact with VS Code workspaces through file operations, code execution, and Git management. It also provides tools for Docker integration, project scaffolding, and secure command execution using project-specific configurations.
    76
    22
    3
    MIT
  • A
    license
    -
    quality
    C
    maintenance
    Experimental MCP server for local LLM orchestration with filesystem tools (read, write, list, delete files) and a CLI agent that communicates via Ollama.
    9
    ISC

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/relr-prog/mcp-agent-to-vsc'

If you have feedback or need assistance with the MCP directory API, please join our Discord server