Local-Workspace-MCP
by Aparsa40
README.md
# Local-Workspace-MCP
A local, policy-controlled MCP server that gives AI assistants and agents explicitly authorized access to selected files and developer resources on a Windows workstation.
> **Status:** Early foundation implementation. The initial server exposes read-only filesystem tools. Write, delete, Git, terminal, and PowerShell capabilities are not enabled yet.
## Product plan and project direction
The agreed target is an independent Windows desktop application with its own management UI and a separately executable MCP Core. It must remain usable without ParsSynapse Chat or any other specific MCP client. External compatible MCP clients can launch the Core directly over stdio.
The product plan is documented here:
- [Product Blueprint](docs/PRODUCT_BLUEPRINT.md) — product vision, scope, screens, security boundaries, and acceptance criteria.
- [UI/UX Specification](docs/UI_UX_SPEC.md) — navigation, screen behavior, workflows, and required UI states.
- [Implementation Roadmap](docs/IMPLEMENTATION_ROADMAP.md) — current baseline, delivery phases, and acceptance gates.
- [Architecture Decision Records](docs/ARCHITECTURE_DECISIONS.md) — durable decisions and open technical validations.
- [Desktop Architecture](docs/DESKTOP_ARCHITECTURE.md) — Electron security model, IPC contracts, policy persistence, process lifecycle, and delivery sequence.
- [Desktop UI Prototype](desktop-prototype/README.md) — run instructions and prototype limitations.
- [Core Architecture](architecture.md) — logical server components and security design.
- [Security Policy](SECURITY.md) — vulnerability reporting and security requirements.
These documents describe the intended product. They do not imply that planned UI, desktop management, mutation tools, or future modules have already been implemented. Update the roadmap as implementation is verified.
## Features in this foundation
- MCP over local **stdio**; no network listener.
- Explicit workspace roots and capability-based authorization.
- Read-only tools: `list_files`, `read_file`, `get_file_info`, and `search_files`.
- Canonical path validation and symlink/reparse-point escape checks.
- Bounded file size, search depth, and result count.
- Audit events written to stderr so stdout remains reserved for MCP JSON-RPC.
- CI checks for type safety, lint, tests, build, dependency audit, and CodeQL.
## Requirements
- Node.js 22 or later
- npm 10 or later
## Local setup
```powershell
npm install
Copy-Item config/permissions.example.json config/permissions.json
```
Edit `config/permissions.json` and replace the sample root with a real, existing absolute directory. Grant only the capabilities you need. The initial implementation supports `list`, `read`, `search`, and `metadata`.
Start the server:
```powershell
npm run dev
```
The process waits for an MCP client over stdin/stdout. Do not type ordinary commands into the server terminal while it is running.
For a non-default configuration path:
```powershell
$env:LWMCP_CONFIG = "F:\\AI-Config\\local-workspace-mcp.json"
npm run dev
```
## MCP tools
| Tool | Description |
|---|---|
| `list_files` | List direct entries in an authorized directory |
| `read_file` | Read a bounded UTF-8 text file |
| `get_file_info` | Read limited file/directory metadata |
| `search_files` | Search file names with bounded traversal |
Tool paths must be relative to a configured root. Absolute paths and traversal segments are rejected. The most specific matching configured root controls permissions for nested roots.
## Checks
```powershell
npm run typecheck
npm run lint
npm test
npm run build
npm audit --audit-level=high
```
CI runs typecheck, lint, tests, build, and dependency audit. Dependency Review runs on pull requests; CodeQL runs on pushes, pull requests, and a weekly schedule.
## Security notes
- Run as the current user; do not use Administrator.
- Keep `config/permissions.json` private; it is ignored by Git.
- Do not configure broad roots such as an entire drive or user profile.
- Do not expose the server through a network transport.
- This initial implementation is read-only. Future write-capable modules require separate capabilities, tests, and review.
## License
MIT. See [LICENSE](LICENSE).
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues