Multi-Workspace MCP Server
Click on "Deploy 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., "@Multi-Workspace MCP Server Read the iOS FlowCoordinator.swift to help me port it to Android"
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.
Multi-Workspace MCP Server
Enables coding agents to access configured repository workspaces from a single session, especially companion repos outside the current project workspace.
Problem Solved
AI coding agents are normally confined to a single workspace. When developing cross-platform features (e.g., FlowCoordinator on both Android/Kotlin and iOS/Swift), the agent loses all context when switching platforms. This MCP server gives the agent simultaneous access to both repositories, enabling:
Port features from Kotlin to Swift (or vice versa) without context loss
Read iOS code to learn conventions while working in Android Studio
Generate Swift files directly in the iOS repo
Search and inspect another repo without leaving the current agent session
Related MCP server: Coding Tools MCP
Tools Provided
read_crossproject
Read a file from a configured workspace root — usually a companion repo outside the current project workspace. Prefer the IDE's built-in read/navigation tools for files in the current workspace. Returns up to 500 lines by default with line numbers and metadata (totalLines, startLine, endLine, truncated). Use offset/limit to paginate.
read_crossproject(workspace: "ios", path: "Modules/Messaging/Sources/MessagingCoordinator/StreamState.swift")
read_crossproject(workspace: "ios", path: "Modules/.../LargeFile.swift", offset: 100, limit: 50)write_crossproject
Create or overwrite a file in a configured workspace root — typically another repo exposed through this MCP, not the current project. Prefer the IDE's built-in editing/refactoring tools for current-workspace files. If a writeAllowlist is configured, only matching paths are writable.
write_crossproject(
workspace: "ios",
path: "Modules/Messaging/Sources/MessagingCoordinator/v2/KeyReducer.swift",
content: "// Swift code here"
)list_crossproject
List files and directories in a configured workspace root, usually an external or companion repo rather than the current project workspace. Returns metadata (type, size, modified date) and supports recursive tree listing.
list_crossproject(workspace: "ios", path: "Modules/Messaging/Sources")
list_crossproject(workspace: "ios", path: "Modules", recursive: true, maxDepth: 2)search_crossproject
Search text/regex in files inside a configured workspace root, usually a companion repo outside the current project workspace. Prefer the IDE's built-in code navigation/LSP tools in the current workspace when they apply. Supports output modes (content, files, count), context lines, path scoping (directory or file), and pagination.
search_crossproject(workspace: "ios", pattern: "FlowCoordinator", glob: "**/*.swift")
search_crossproject(workspace: "ios", pattern: "class.*Coordinator", path: "Modules/Messaging", outputMode: "files")edit_crossproject
Apply search-and-replace edits to one or more files in a configured workspace root, typically for companion repos outside the current project workspace. Prefer the IDE's built-in refactoring/editing tools for typed changes in the current workspace. Supports regex with backreferences.
// Single file
edit_crossproject(
workspace: "ios",
paths: "Modules/.../MyFile.swift",
oldString: "func oldName()",
newString: "func newName()",
)
// Multiple files (same replacement applied to all)
edit_crossproject(
workspace: "ios",
paths: ["FileA.swift", "FileB.swift", "FileC.swift"],
oldString: "oldValue",
newString: "newValue",
replaceAll: true,
)
// Regex with backreferences
edit_crossproject(
workspace: "ios",
paths: "Modules/.../MyFile.swift",
oldString: "func (\\w+)\\(param: String\\)",
newString: "func $1(param: Int)",
useRegex: true,
)run_crossproject
Run a shell command in a configured workspace root. Supports pipes, redirects, and chained commands. Returns stdout, stderr, and exit code. Use for build tools, codegen, git operations, or any command that needs to run in the workspace directory.
run_crossproject(workspace: "ios", command: "git status")
run_crossproject(workspace: "ios", command: "fastlane ios codegen_messaging")
run_crossproject(workspace: "android", command: "./gradlew :messaging:impl:test")
run_crossproject(workspace: "ios", command: "git log --oneline | head -5", timeout: 10000)Configuration
Create a workspace-config.json in the repo root (see workspace-config.example.json):
{
"workspaces": {
"ios": {
"root": "$HOME/git/zillow/ZillowMap",
"name": "iOS (ZillowMap)"
}
}
}By default, the agent can write to any file and run any command within the workspace root. To restrict either, add optional allowlists:
{
"workspaces": {
"ios": {
"root": "$HOME/git/zillow/ZillowMap",
"name": "iOS (ZillowMap)",
"writeAllowlist": ["Modules/**/*.swift", "Tests/**/*.swift"],
"runAllowlist": ["git", "fastlane", "xcodebuild", "swift"]
}
}
}writeAllowlist(optional): Glob patterns. If omitted, all writes allowed. Controlswrite_crossprojectandedit_crossproject.runAllowlist(optional): Command prefixes. If omitted, all commands allowed. Controlsrun_crossproject. When configured, the first word of the command must match one of the prefixes (e.g.,"git status"matches"git").
Supports $HOME and ~ expansion in root paths. There are no hardcoded defaults — all workspaces must be defined in this file. If missing, the server starts with zero workspaces and logs instructions.
Installation
npm install -g @exaudeus/workspace-mcpFirebender Registration
Add to ~/.firebender/firebender.json:
{
"mcpServers": {
"workspace": {
"command": "npx",
"args": ["-y", "@exaudeus/workspace-mcp"]
}
}
}Alternatively, if installed globally:
{
"mcpServers": {
"workspace": {
"command": "workspace-mcp"
}
}
}Usage Pattern
Agent reads Android Kotlin file:
read_file("libraries/illuminate/flow-coordinator/v2/KeyReducer.kt")Agent reads iOS conventions:
read_crossproject("ios", "Modules/Messaging/Sources/MessagingCoordinator/SubjectCoordinator.swift")Agent references Rosetta mapping: (read
.firebender/rosetta-kotlin-swift.mdin Android workspace)Agent generates Swift equivalent
Agent writes:
write_crossproject("ios", "Modules/.../KeyReducer.swift", content)
All in one session, no context loss.
Companion Projects
Memory MCP:
memory-mcp— persistent codebase knowledge for AI agents (separate repo)Rosetta rules:
.firebender/rosetta-kotlin-swift.mdin Android workspace — idiom mapping reference
Development
# Install dependencies
npm install
# Build
npm run build
# Run in dev mode
npm run dev
# Run tests
npm testSafety Features
Stateless Safety Model
The MCP uses stateless validation instead of session tracking - no brittle state to manage:
Edit Safety:
Verifies old string exists before editing (reads file fresh every time)
Enforces uniqueness (unless replaceAll=true)
Fails fast with clear errors if string not found or not unique
No need to "read first" - the verification IS the safety check
Write Safety:
Warns when overwriting existing files (logged to stderr)
Agent can still overwrite if intentional (not blocked)
Optional
writeAllowlistrestricts writes to matching paths (omit to allow all)
Why Stateless?
No session state = no brittleness across restarts/reconnects
Always reads fresh from disk (catches external changes)
Works across multiple agents/sessions
Self-documenting (failures explain what's wrong)
Other Safety Features
Write allowlist (optional): When configured, only allows writes to paths matching the allowlist patterns
Path validation: Resolved paths are verified to stay within workspace root (prevents directory traversal)
Shell injection prevention: All external commands use
execFilewith argument arrays (no shell interpolation)Audit logging: All write/edit operations logged to stderr
Future Enhancements
Git operations (
git_crossproject)Additional workspaces (backend repos, etc.)
Auto-context loading (inject
.firebender/platform-context.mdon first access)
Available Tools
6 toolsedit_crossprojectA
Apply search-and-replace edits to one or more files in a configured workspace root, typically for companion repos outside the current project workspace. Prefer built-in IDE refactoring/editing tools for typed changes in the current workspace. The same find/replace runs on all specified files; oldString must be unique per file unless replaceAll is true. If a writeAllowlist is configured, only matching paths are editable. When useRegex=true, newString supports regex backreferences ($1, $2, etc.).
Inputs: paths (required), newString (required), oldString (required), workspace (required), +2 more.
list_crossprojectA
List files and directories in a configured workspace root, usually an external or companion repo rather than the current project workspace. Returns metadata (type, size, modified date) and supports recursive tree listing.
Inputs: workspace (required), path, maxDepth, recursive.
read_crossprojectA
Read a file from a configured workspace root, usually a companion repo outside the current project workspace. Prefer the IDE built-in read/navigation tools for files in the current workspace. Returns up to 500 lines by default with line numbers and metadata (totalLines, range, truncated); use offset/limit to paginate.
Inputs: path (required), workspace (required), limit, offset.
run_crossprojectA
Run a shell command in a configured workspace root, typically a companion repo outside the current project workspace. Supports pipes, redirects, and chained commands. Returns stdout, stderr, and exit code. Use for build tools, codegen, git operations, or any command that needs to run in the workspace directory.
Inputs: command (required), workspace (required), timeout, maxBuffer.
search_crossprojectA
Search text or regex in a configured workspace root, usually a companion repo outside the current project workspace. Prefer built-in code navigation/LSP tools in the current workspace when they apply. Uses ripgrep with output modes, context lines, case-insensitive matching, and pagination; when using contextLines, results include contextBefore/contextAfter arrays.
Inputs: pattern (required), workspace (required), glob, path, +5 more.
write_crossprojectA
Create or overwrite a file in a configured workspace root, typically another repo exposed through this MCP rather than the current project. Prefer built-in IDE editing/refactoring tools for current-workspace files. If a writeAllowlist is configured, only matching paths are writable. All writes are logged.
Inputs: path (required), content (required), workspace (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool maps to a distinct filesystem operation: read, write, edit, list, search, and run. Even the two mutation tools are clearly separated by whole-file overwrite versus targeted search-and-replace.
All six tool names follow the same `verb_crossproject` pattern with snake_case throughout. The naming makes the domain and operation immediately predictable.
Six tools is well-scoped for a companion-repo file and command operations server. Each tool covers a distinct need without bloat or redundancy.
The set covers list, read, write, edit, search, and arbitrary command execution, which is strong for the stated purpose. A direct delete or rename tool is missing, though `run_crossproject` can compensate via shell commands.
Maintenance
Related MCP Connectors
Persistent cloud workspaces for AI agents: run commands, edit files, use git and a browser.
Shared work memory for Claude Code, Codex, Cursor and chat, scoped to each repository.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Memory for AI agent teams across tools, sessions, repositories, and teammates.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to explore, search, and reference code implementation details across different project repositories. It also supports a task delegation protocol for agents to request and track work between separate codebases.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to develop within a local project workspace by reading and modifying files, running commands and tests, checking Git state, and persisting progress as history sessions that can be restored in later conversations.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to work with administrator-approved Git repositories on a self-hosted VPS, supporting cloning, file edits, and full Git operations within persistent workspaces.European Union Public 1.2
- AlicenseNot gradedqualityBmaintenanceEnables AI coding agents to initialize and maintain persistent, local-first project memory, retrieve task-scoped context, and synchronize edited files so they can work across repositories without repeatedly scanning the entire codebase.37 npm3MIT