patchwork-os
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| openFileA | Open a file in the editor and optionally select a range of text |
| openDiffA | Open a diff view comparing old file content with new file content. Creates temporary files on disk. |
| openInBrowserA | Write HTML to temp file and open in default browser. For visual reports and dashboards. |
| getOpenEditorsA | Open files/tabs with isDirty, isActive when ext connected. Fallback: session-opened files only. |
| getWorkspaceFoldersA | Get all workspace folders currently open in the IDE |
| getArchitectureContextA | Architectural overview via codebase-memory graph: module boundaries, dependencies, ADRs, hotspot files. Returns structured query plan. Requires codebase-memory connected. |
| getProjectInfoA | Project overview: name/version, languages, pkg manager, scripts, deps, config, git. Call at session start. |
| getCurrentSelectionA | Get the current text selection in the editor |
| getLatestSelectionA | Get the most recent text selection (even if not in the active editor) |
| getDiagnosticsA | Errors/warnings from TS, ESLint, Pyright, Ruff, Cargo, Go vet, Biome. Real-time LSP when ext connected. |
| checkDocumentDirtyA | Check if file has unsaved changes. Uses VS Code buffer when ext connected; heuristic otherwise. |
| saveDocumentA | Save workspace document via VS Code buffer when ext connected. No-op otherwise (editText writes to disk). |
| closeTabA | Close editor tab by file path. Prompts to save if dirty. Requires ext. |
| closeAllDiffTabsA | Close all diff tabs and clean up temp diff directories. |
| getToolCapabilitiesA | Available CLI tools, ext connection state, and which features are functional vs stub-only. |
| bridgeDoctorA | Health check: extension, git, linters, test runners, GitHub CLI. Use when tools misbehave. |
| searchWorkspaceA | Search workspace files via ripgrep. Returns matching lines with file paths and line numbers. |
| searchAndReplaceA | Find and replace across workspace files. Supports regex with capture groups. Returns modified files. |
| findFilesA | Find files by name/glob pattern in the workspace. Respects .gitignore. |
| getFileTreeA | Workspace file tree. Respects .gitignore. Skips node_modules, .git, dist, build, coverage. |
| getGitStatusA | Git status: branch, staged/unstaged/untracked files, ahead/behind counts. |
| getGitDiffA | Get the git diff output for the workspace or a specific file |
| getGitLogA | Get recent git log entries for the workspace or a specific file |
| getCommitDetailsA | Full commit details: author, date, message, changed files, optional diff patch. |
| getDiffBetweenRefsC | Diff between two git refs (branches/tags/commits). statOnly for file-level summary only. |
| gitAddA | Stage files for commit. Omit to stage all tracked (git add -u). addUntracked:true for new files. |
| gitCommitA | Commit staged changes. Pass files to stage-and-commit in one step. Returns hash, branch, files. |
| gitCheckoutA | Switch to a branch, or create and switch to a new branch. Use create: true to create from HEAD or a specified base. |
| gitBlameA | Per-line last modifier and commit. Trace why code was written or find the introducing commit. |
| gitFetchA | Fetch updates from a remote without merging. Updates remote-tracking branches so gitListBranches and gitCheckout see the latest state. Use gitPull to fetch and merge in one step. |
| gitListBranchesA | List git branches. Returns local branches with the current branch marked. Pass includeRemote: true for remote-tracking branches. |
| gitPullA | Pull changes from a remote into the current branch. Defaults to origin with merge. Use rebase: true for linear history. |
| gitPushA | Push the current branch to a remote. Use setUpstream: true on the first push. Force push uses --force-with-lease. Blocked on main/master. |
| gitStashA | Stash current changes to get a clean working tree. Required before switching branches with uncommitted changes. Use gitStashPop to restore. Pass includeUntracked: true to also stash new files. |
| gitStashPopA | Restore stashed changes to the working tree. Pops the most recent stash by default, or a specific entry by index (from gitStashList). |
| gitStashListA | List all stash entries in the repository. Returns each entry's index, branch it was stashed from, message, and age. Use before gitStashPop to identify the right entry to restore. |
| runCommandA | Execute allowlisted command. Returns stdout, stderr, exit code, timing. No shell for security. |
| getDocumentSymbolsA | List symbols (fns, classes, interfaces, methods) in a file: names, kinds, lines, parents. |
| goToDefinitionB | Go to the definition of a symbol at a given position using VS Code LSP. |
| findReferencesA | Find all references to a symbol at a given position using VS Code LSP. |
| findImplementationsA | Find implementations of interface, abstract method, or abstract class. |
| goToTypeDefinitionA | Go to the type definition of a symbol. Unlike goToDefinition (navigates to declaration), this navigates to where the type itself is defined. |
| goToDeclarationA | Go to the declaration of a symbol (header file in C/C++, .d.ts entry in TypeScript). Unlike goToDefinition, navigates to the 'declare' statement rather than the implementation. |
| getHoverA | Get hover information (type info, documentation) for a symbol at a given position. |
| getCodeActionsA | Get available code actions (quick fixes, refactorings) for a range in a file. |
| applyCodeActionA | Apply code action by title. Use getCodeActions first to see options. |
| previewCodeActionA | Preview edits a code action would make without applying. Use before applyCodeAction. |
| refactorPreviewA | Preview refactoring edits across files without applying. Use getCodeActions first. |
| renameSymbolA | Rename symbol across all files via LSP. Returns affected files and edit counts. |
| searchWorkspaceSymbolsB | Search workspace symbols (classes, fns, vars, interfaces) by name via LSP. |
| getCallHierarchyB | Get the call hierarchy for a function or method. Use direction="incoming" to find callers, "outgoing" to see everything it calls, or "both" (default). |
| explainSymbolA | Get comprehensive symbol info in one call: type signature, docs, definition location, call hierarchy, and reference count. |
| prepareRenameA | Check if symbol can be renamed. Returns canRename:false with reason if not. Use before renameSymbol. |
| formatRangeA | Format a line range via LSP formatter. Faster than full formatDocument for large files. |
| signatureHelpA | Function signature and param info at a call site. Returns active sig, param index, overloads. |
| refactorAnalyzeA | Refactor impact: rename safety, ref/caller counts, risk level (low/medium/high). Use before renameSymbol. |
| foldingRangesA | Foldable regions in a file (functions, classes, imports, comments). Returns {startLine, endLine, kind}. |
| selectionRangesB | Hierarchical selection ranges at position: identifier→expression→block→function→class. |
| contextBundleA | Collect IDE context in one call: active file, diagnostics, diff, editors, handoff note, git status. |
| createPlanB | Create .claude-plan.md in workspace root. Markdown with sections and task checklists. |
| updatePlanA | Update plan file: mark tasks done/undone, add tasks or sections. |
| getPlanA | Read plan file. Returns title, sections, tasks, and completion status. |
| deletePlanA | Delete a plan file from the workspace root. |
| listPlansA | List all plan files in the workspace root. Returns filenames with titles from frontmatter. |
| runTestsA | Run tests (Vitest/Jest/Pytest/Cargo/Go). Returns pass/fail, failures, file:line. Cached 30s. |
| getActivityLogA | Query recent tool call log: names, timing, status, percentiles, co-occurrence. |
| watchActivityLogA | Long-poll for new activity log entries. Pass lastId as sinceId on next call. |
| getBridgeStatusA | IDE bridge status: ext connection, circuit breaker, uptime, tool availability. |
| watchFilesA | Watch glob pattern for file changes (created/modified/deleted). Use unwatchFiles to stop. |
| unwatchFilesA | Stop watching files for a previously registered watcher by ID. |
| listTerminalsA | List active VS Code terminals: names, indices, output capture availability. |
| getTerminalOutputA | Get recent output from a VS Code integrated terminal. Identify by name or index (from listTerminals). Returns last N lines. On headless VPS/SSH, use runInTerminal instead. |
| createTerminalC | Create VS Code integrated terminal. Options: name, cwd, env vars, shell. |
| disposeTerminalA | Close a VS Code terminal by name or index. |
| sendTerminalCommandA | Send text/command to VS Code terminal. Fire-and-forget; use getTerminalOutput to check results. |
| runInTerminalA | Execute command and wait for completion. Returns exit code and output. Prefer over runCommand. |
| waitForTerminalOutputA | Block until regex matches terminal output. Returns {matched, matchedLine, elapsed} or timedOut. |
| createFileA | Create file or directory within workspace. Uses VS Code when connected, native fs fallback. |
| deleteFileA | Delete workspace file or directory. VS Code (with trash) when connected, native fs fallback. |
| renameFileA | Rename or move workspace file/directory. Uses VS Code when connected, native fs fallback. |
| getBufferContentA | Read workspace file from VS Code buffer including unsaved changes. Use before editText. Returns isDirty flag. Workspace files only. |
| replaceBlockA | Replace exact text block in a workspace file by content match, no line numbers. Fails clearly if not found or ambiguous. |
| editTextA | Insert/delete/replace text at 1-based line/col. Atomic multi-edit. Uses VS Code or native fs. Workspace files only. |
| formatDocumentA | Format file via VS Code formatter or CLI fallback (prettier/biome/black/gofmt/rustfmt). |
| formatAndSaveA | Format a file and save it in one call (formatDocument + saveDocument). Formatter errors propagate; save is not attempted on format failure. |
| jumpToFirstErrorA | Jump to first workspace error (getDiagnostics→openFile→decoration). Returns {found:false} if none. |
| navigateToSymbolByNameA | Find symbol by name and jump to definition. Replaces searchSymbols→goToDefinition pattern. |
| fixAllLintErrorsA | Auto-fix lint errors. VS Code source.fixAll when connected, falls back to eslint/biome/ruff. |
| organizeImportsA | Organize/sort imports in workspace file. Uses VS Code ext when connected; falls back to Biome or Prettier. |
| watchDiagnosticsA | Long-poll for diagnostic changes. Use after edits to wait for LSP re-validation. |
| readClipboardA | Read system clipboard. Returns up to 100 KB of text. |
| writeClipboardA | Write text to system clipboard. Max 1 MB. |
| getHandoffNoteA | Retrieve handoff note from prior session (Desktop or CLI). Call at session start to resume. |
| setHandoffNoteA | Save context note that persists across sessions. Use when switching between CLI and Desktop. |
| getWorkspaceSettingsA | Read VS Code workspace settings. Filter by section (e.g. 'editor', 'typescript'). Returns source scope. |
| setWorkspaceSettingA | Write VS Code workspace setting (dot notation e.g. editor.tabSize). security.* writes blocked. |
| captureScreenshotA | Capture screenshot → base64 PNG. macOS/Linux with display only. Not available on headless servers. |
| executeVSCodeCommandA | Execute VS Code command by ID. Use listVSCodeCommands to discover IDs. |
| listVSCodeCommandsA | List all registered VS Code commands (up to 2000). Filter by substring to find IDs. |
| listVSCodeTasksA | List VS Code tasks from tasks.json and extensions. Returns name, type, group, source. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| review-changes | Review uncommitted changes to a specific file: diff, diagnostics, churn risk, and architectural context. |
| review-file | Code review: correctness, style, performance, security, and coverage gaps. |
| explain-diagnostics | Explain diagnostics (errors/warnings) for a file and suggest fixes. |
| generate-tests | Generate missing unit tests for a file using the project's test conventions. |
| debug-context | Snapshot IDE state (open editors, diagnostics, recent terminal output) as debugging context. |
| git-review | Review uncommitted changes (staged + unstaged) against a base branch before commit or PR. |
| cowork | Load IDE context (open files, diagnostics, git status, project info, handoff note) and propose a Cowork action plan. Run before any computer-use task. |
| gen-claude-md | Generate bridge workflow rules and quick-reference table, then write them into CLAUDE.md. |
| set-effort | Prepend a model-effort instruction to the next task. low=quick, medium=normal, high=complex refactors/deep analysis. |
| project-status | Quick health check: git status, diagnostics, and test results. Terse output for Dispatch/mobile. |
| quick-tests | Run tests and return a concise pass/fail summary with failure details. |
| quick-review | Git diff summary plus diagnostics for changed files. Concise output. |
| build-check | Check if the project builds successfully. Returns pass/fail with error summary. |
| recent-activity | Last N git log entries plus uncommitted changes summary. |
| team-status | Active agent sessions and recent tool activity. For team leads coordinating parallel agents. |
| health-check | Full health check: tests, diagnostics, security advisories, git status, dependency audit. For scheduled nightly/hourly runs. |
| orient-project | Set up a project for Claude IDE Bridge: detects project type, generates/updates CLAUDE.md, scaffolds docs, and verifies connectivity. Idempotent. |
| find-callers | Find every caller of a symbol with file:line locations. Wraps searchWorkspaceSymbols + getCallHierarchy(incoming) + findReferences. |
| blast-radius | Blast radius at a position: diagnostics + reference counts + risk badge. Wraps getChangeImpact. |
| why-error | Explain a diagnostic in plain English with surrounding type context. Wraps getDiagnostics + explainSymbol. |
| unused-in | List unused exports, parameters, and imports in a file. Wraps detectUnusedCode + findReferences. |
| trace-to | Trace call chain to a target symbol with type signatures at each hop. Wraps getCallHierarchy(outgoing) + getImportedSignatures. |
| imports-of | List files importing a symbol with reference counts. Wraps findReferences + getImportTree. |
| circular-deps | Detect circular import dependencies. Wraps getImportTree with cycle detection. |
| refactor-preview | Preview exact edits a rename would make plus blast-radius risk. Wraps refactorAnalyze + refactorPreview. |
| module-exports | List exported symbols with type signatures as Markdown. Wraps getDocumentSymbols + getHover. |
| type-of | Type signature at a position (no docs). Wraps getHoverAtCursor + getTypeSignature. |
| deprecations | Find @deprecated APIs and count callers. Wraps searchWorkspace + findReferences. |
| coverage-gap | Identify untested functions by correlating coverage with document symbols. Wraps getCodeCoverage + getDocumentSymbols. |
| explore-type | Explore a type: declaration, definition, and all implementations. Wraps getHover + goToDeclaration + goToTypeDefinition + findImplementations. |
| ide-coverage | Generate an HTML coverage heatmap and open in browser. Requires --full mode (getCodeCoverage + openInBrowser). |
| ide-deps | D3 force-directed dependency graph for an entry point, opened in browser. Requires --full mode. |
| ide-diagnostics-board | Workspace diagnostics grouped by severity/file, rendered as a sortable HTML table in the browser. |
| safe-refactor | Multi-file refactor with preview-before-apply: shows unified diff per file, asks for confirmation, then applies atomically via transaction. |
| diagnose-and-fix | Explain the first diagnostic error, propose and preview a fix, apply it, then re-check diagnostics. |
| session-delta | Orient at session start: diff + diagnostic changes since last handoff note, with suggested next action. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| claude-ide-bridge-subprocess-settings-15.json | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/0014c7b4 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/03f36f82 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/06f773c7 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/09dde953 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/0f0c8433 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/15dac900 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/16b76a41 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/1ac49b5c | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/1c575097 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/23a412ce | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/23c95ffc | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/298138b1 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/2bc0d199 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/2c66374b | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/2cbb34c0 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/311bad02 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/3280507c | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/38c4fc01 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/3c39e184 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/3c3fb401 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/3f3308c6 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/44dc7b81 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/45efdcd8 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/4652bac2 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/4a2f7337 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/4a7f67b1 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/4c58a332 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/559b7e2b | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/59c632ba | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/712742d6 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/71bde3a2 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/758cf23f | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/78e935bf | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/7b81fa86 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/7ba1b446 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/7f1b44b8 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/804cf119 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/828a1323 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/828ac9b3 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/844075b3 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/86f038a4 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/875d5b8b | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/8840590a | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/8cee33a3 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/963c3aee | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/973c40c2 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/9b798567 | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/9c2a21eb | |
| node-compile-cache/v24.15.0-x64-cf738c9d-0/9ccf5632 |
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/Oolab-labs/patchwork-os'
If you have feedback or need assistance with the MCP directory API, please join our Discord server