Skip to main content
Glama

e_set_workspace

Change the current project workspace path at runtime to correct incorrect directories or switch between projects. Automatically creates cache folders and optionally re-indexes the new workspace for accurate code search.

Instructions

Change the project workspace path at runtime. Use this when you detect the current workspace is incorrect or you need to switch to a different project directory. Creates cache folder automatically and optionally re-indexes the new workspace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesAbsolute path to the new workspace directory
clearCacheNoWhether to clear existing cache before switching (default: false)
reindexNoWhether to trigger re-indexing after switching (default: true)

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/omar-haris/smart-coding-mcp'

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