Fluid Workspace VSCode Extension
Add editor file context from VSCode/Cursor to your Fluid app.
Features
- Right-click in the editor or Explorer → "Add to Fluid context"
- Sends selection if present; otherwise sends the whole file
- Includes metadata: repo/file path, workspace, language, optional Git remote
- Configurable Fluid base URL (prod vs local) and optional API token
Settings
fluid.baseUrl (default: https://www.fluid.app)
fluid.apiToken (optional): sent as Bearer token
fluid.openOnSuccess (default: true): open returned URL in browser
To test locally, set:
"fluid.baseUrl": "http://localhost:3000"
HTTP contract (Fluid)
POST /api/context/add
- Request body includes
content, optional selection, file, workspace, optional repo, client.
- Response:
{ id: string, url?: string }
MCP (optional)
Run a local WebSocket server exposing fluid.add_context that forwards to the same HTTP endpoint.
- Build:
npm run compile
- Start MCP:
npm run mcp
- Env:
FLUID_BASE_URL (default https://www.fluid.app)
FLUID_API_TOKEN (optional)
FLUID_MCP_PORT (default 8765)
Point Cursor MCP provider to ws://127.0.0.1:8765.
| |