Skip to main content
Glama

Code MCP Server

by block

set_workspace

Define the active workspace directory in VS Code using an absolute path. Enables AI agents and assistants to interact with the specified workspace through the Model Context Protocol.

Instructions

Set the active workspace directory

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path to workspace directory

Input Schema (JSON Schema)

{ "properties": { "path": { "description": "Absolute path to workspace directory", "type": "string" } }, "required": [ "path" ], "type": "object" }

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/block/vscode-mcp'

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