npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@exaudeus/workspace-mcp

v1.0.1

Published

Multi-workspace filesystem MCP server for cross-platform development

Readme

Multi-Workspace MCP Server

Enables Firebender agents to read/write files in multiple repository workspaces from a single session.

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

Tools Provided

workspace_read

Read a file from a workspace. Returns up to 500 lines by default with line numbers and metadata (totalLines, startLine, endLine, truncated). Use offset/limit to paginate.

workspace_read(workspace: "ios", path: "Modules/Messaging/Sources/MessagingCoordinator/StreamState.swift")
workspace_read(workspace: "ios", path: "Modules/.../LargeFile.swift", offset: 100, limit: 50)

workspace_write

Write a file to a workspace. Only writes to paths matching the workspace write allowlist (defined in workspace-config.json).

workspace_write(
  workspace: "ios",
  path: "Modules/Messaging/Sources/MessagingCoordinator/v2/KeyReducer.swift",
  content: "// Swift code here"
)

workspace_list

List directory contents with metadata (type, size, modified date). Supports recursive tree listing.

workspace_list(workspace: "ios", path: "Modules/Messaging/Sources")
workspace_list(workspace: "ios", path: "Modules", recursive: true, maxDepth: 2)

workspace_search

Search for text/regex in workspace files using ripgrep. Supports output modes (content, files, count), context lines, path scoping (directory or file), and pagination.

workspace_search(workspace: "ios", pattern: "FlowCoordinator", glob: "**/*.swift")
workspace_search(workspace: "ios", pattern: "class.*Coordinator", path: "Modules/Messaging", outputMode: "files")

workspace_edit

Edit one or more files using search and replace. Supports regex with backreferences.

// Single file
workspace_edit(
  workspace: "ios",
  paths: "Modules/.../MyFile.swift",
  oldString: "func oldName()",
  newString: "func newName()",
)

// Multiple files (same replacement applied to all)
workspace_edit(
  workspace: "ios",
  paths: ["FileA.swift", "FileB.swift", "FileC.swift"],
  oldString: "oldValue",
  newString: "newValue",
  replaceAll: true,
)

// Regex with backreferences
workspace_edit(
  workspace: "ios",
  paths: "Modules/.../MyFile.swift",
  oldString: "func (\\w+)\\(param: String\\)",
  newString: "func $1(param: Int)",
  useRegex: true,
)

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)",
      "writeAllowlist": [
        "Modules/**/*.swift",
        "Tests/**/*.swift",
        "Apps/**/*.swift",
        "Examples/**/*.swift"
      ]
    }
  }
}

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-mcp

Firebender 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

  1. Agent reads Android Kotlin file: read_file("libraries/illuminate/flow-coordinator/v2/KeyReducer.kt")
  2. Agent reads iOS conventions: workspace_read("ios", "Modules/Messaging/Sources/MessagingCoordinator/SubjectCoordinator.swift")
  3. Agent references Rosetta mapping: (read .firebender/rosetta-kotlin-swift.md in Android workspace)
  4. Agent generates Swift equivalent
  5. Agent writes: workspace_write("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.md in Android workspace — idiom mapping reference

Development

# Install dependencies
npm install

# Build
npm run build

# Run in dev mode
npm run dev

# Run tests
npm test

Safety 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)
  • Allowlist enforced for all writes

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: Only allows writes to paths matching the configured allowlist patterns
  • Path validation: Resolved paths are verified to stay within workspace root (prevents directory traversal)
  • Shell injection prevention: All external commands use execFile with argument arrays (no shell interpolation)
  • Audit logging: All write/edit operations logged to stderr

Future Enhancements

  • Git operations (workspace_git)
  • Additional workspaces (backend repos, etc.)
  • Auto-context loading (inject .firebender/platform-context.md on first access)