mcp-agent-to-vsc
Provides a tool to send prompts to OpenAI's API and retrieve responses.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-agent-to-vscRead package.json and use AI to list dependencies"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 OpenAIread_file— read workspace fileswrite_file— write workspace fileslist_files— list workspace files/directoriesworkspace_info— inspect configuration
Install
Requirements: Node.js 20+.
npm installSet OPENAI_API_KEY in the environment. Never commit the real key.
PowerShell:
$env:OPENAI_API_KEY="sk-..."
npm startCline
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.
Available Tools
5 toolsask_aiC
Send a prompt to OpenAI and return the answer.
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| prompt | Yes | ||
| system | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations provided, the description carries the full burden of behavioral disclosure. It reveals that data is sent to OpenAI (an external service), but it does not disclose authentication requirements, rate limits, latency, costs, privacy implications, error behavior, or whether the operation is asynchronous. This lack of detail for an external API call is a significant gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence of 9 words, cleanly structured and front-loaded with the core action. Every word is purposeful, with no fluff or repetition.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool has 3 parameters, no output schema, and no annotations. The description only explains the basic prompt-and-answer flow, leaving the optional parameters, return type details, and operational context (e.g., network dependencies, API requirements) unexplained. For an external API tool, this is insufficient for an agent to invoke it reliably.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% and the description does not compensate. The description mentions 'prompt' but provides no meaningful semantics for the required 'prompt' parameter or the optional 'model' and 'system' parameters. The schema itself lacks descriptions, and the tool description fails to clarify their roles, defaults, or possible values.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description 'Send a prompt to OpenAI and return the answer' uses a specific verb ('send'), names the resource ('prompt to OpenAI'), and states the outcome ('return the answer'). This clearly distinguishes the tool from its siblings, which are all file/workspace operations.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives, nor any exclusions or prerequisites. The description simply states what the tool does without explaining context for choosing it (e.g., for general AI queries) or how the optional model/system parameters affect usage.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_filesB
List files and directories in the workspace.
| Name | Required | Description | Default |
|---|---|---|---|
| path | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the transparency burden. The verb 'list' implies a read-only operation, which is helpful but not explicit. It omits details like recursive listing, hidden file behavior, or what happens with a nonexistent path. For a simple read tool, this is adequate but not rich.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, clear sentence with no wasted words. It is appropriately brief for the tool's simplicity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description is minimal and does not cover key context such as parameter behavior, return format, or usage nuances. While the tool is simple, the lack of output schema and annotations means the description should provide more detail to be complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0% and the description does not explain the 'path' parameter at all. The agent cannot determine what path does, whether it is optional, or how it affects the listing, making the parameter semantics practically undocumented.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('list') plus a resource ('files and directories in the workspace'), clearly differentiating it from sibling tools like read_file (which reads content) and write_file (which writes files). It unambiguously states the tool's function.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description does not provide any guidance on when to use this tool versus alternatives like read_file or workspace_info. No exclusions or scenarios are mentioned, so the agent must infer usage on its own.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
read_fileA
Read a file inside the VS Code workspace.
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| max_chars | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden. It provides a scope constraint (inside the workspace) and implies a read-only operation. However, it does not disclose behavior such as what happens with large files, whether max_chars truncates output, or how errors are handled. The absence of these details for a safe read operation keeps it at a neutral 3.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, front-loaded sentence with no unnecessary words. It efficiently conveys the core purpose and scope without repetition.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The tool is simple, but with no output schema and no annotations, the description should clarify return value and parameter effects. It does not, leaving gaps about what the tool returns (e.g., file contents as a string) and how max_chars behaves. For a tool with only two parameters, more detail would make it complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has two parameters (path, max_chars) with 0% description coverage, and the tool description provides no explanation of these parameters. The description does not compensate for the schema's lack of context, leaving the agent to infer that 'path' is the file path and 'max_chars' limits output length without clarification.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states a specific action ('Read') on a specific resource ('a file') with an explicit scope ('inside the VS Code workspace'). It differentiates from sibling tools like write_file and list_files by its clear focus on reading content.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The usage is implied: use when you need to read a file's content. However, there is no explicit guidance on when not to use it or mention of alternatives like list_files for discovering files. The description does not state exclusions or prerequisites.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
workspace_infoA
Show MCP workspace and model configuration.
| Name | Required | Description | Default |
|---|---|---|---|
No parameters | |||
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It only says 'Show,' which implies read-only, but does not state what the returned data looks like, whether any side effects occur, or what happens if configuration is unavailable. Minimal transparency.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single concise sentence that front-loads the verb and object. No filler or redundant information is present.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple tool with no parameters and no output schema, the description adequately conveys the core function. However, it lacks details about the return format or any prerequisites, so it is not fully complete, but the low complexity keeps it at a reasonable level.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The tool has zero parameters, and the schema is empty. The baseline for 0 parameters is 4, and the description adds no parameter information, which is acceptable since there are no parameters to explain.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb 'Show' and identifies the resource 'MCP workspace and model configuration.' It clearly distinguishes this tool from siblings like read_file, write_file, and list_files, which focus on file operations or AI interaction.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies use when the user needs workspace or model configuration information, but it provides no explicit guidance about when not to use it or alternative tools. The context is clear but lacks exclusions or comparisons to siblings.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
write_fileC
Write a file inside the VS Code workspace.
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With no annotations, the description carries the full burden of behavioral disclosure. It only says 'write a file' without specifying whether it creates new files or overwrites existing ones, how path resolution works, or any error conditions. The workspace constraint adds some context but falls short of disclosing the mutation behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single sentence with no redundant wording, making it concise and front-loaded. However, it is under-specified for a mutation tool, so it could be slightly expanded without becoming wordy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a mutation tool with no annotations and no output schema, the description is incomplete. It lacks critical information about overwrite behavior, path resolution, and what happens on success or failure. The low complexity of the tool does not excuse the absence of these details.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema has no parameter descriptions and 0% coverage, so the description must compensate. It provides no explanation of what 'path' is relative to, whether 'content' is written exactly as provided, or any other parameter semantics. The agent must infer everything from parameter names.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action (write a file) and the resource (file inside the VS Code workspace). It distinguishes from sibling tools like read_file and list_files, which have clearly different purposes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is provided on when to use this tool versus alternatives. It does not mention when to use write_file instead of read_file or ask_ai, nor any prerequisites or restrictions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
5 tool updates
v1.0.0- First observed
ask_ai - First observed
list_files - First observed
read_file - First observed
workspace_info - First observed
write_file
TDQS
Each tool targets a distinct function: AI query, file read, file write, file listing, and workspace configuration. There is no functional overlap, so an agent can reliably select the correct tool.
Most names follow a verb_noun pattern (ask_ai, read_file, write_file, list_files), but workspace_info breaks the pattern as a noun phrase. Overall the naming is clear and predictable.
Five tools is a well-scoped set for an agent-to-VS Code integration covering the essential file operations, AI interaction, and workspace context. Each tool earns its place without redundancy.
The set covers core file read/write/list and AI query, which covers common agent workflows. Minor gaps include delete or rename file operations, but these are not critical for the apparent purpose.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Hosted MCP server connecting claude.ai, ChatGPT and other AI apps to your own computer
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Related MCP Servers
- AlicenseAqualityBmaintenanceMCP Server that enables LLMs to interact with the local filesystem.1380714MIT
- AlicenseCqualityDmaintenanceAn 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.76323MIT
- AlicenseNot gradedqualityCmaintenanceLocal MCP server bridging ChatGPT Web to local tools for file, shell, git, test, and process management with secure policy controls.MIT
- AlicenseNot gradedqualityCmaintenanceExperimental MCP server for local LLM orchestration with filesystem tools (read, write, list, delete files) and a CLI agent that communicates via Ollama.12ISC
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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