Skip to main content
Glama
ubhanja

Enterprise Agent Bridge

by ubhanja
README.md
# Enterprise Agent Bridge

A locally installable VS Code extension that provides a managed Copilot agent profile, governed MCP tools, and reusable subagents.

## What it includes

- VS Code extension activation with commands for MCP startup, status, and policy inspection.
- Stdio MCP server using the official TypeScript SDK.
- Read-only tools: `workspace.status`, `workspace.read`, and `workspace.search`.
- Workspace path containment checks and bounded search output.
- Copilot custom agent plus `codebase-analyst` and `change-reviewer` subagents.
- `.vscode/mcp.json` for direct MCP discovery in VS Code.

## Run locally

```powershell
npm install
npm run compile
```

Press `F5` in VS Code to launch an Extension Development Host. Use the Command Palette to run `Enterprise Agent: Start MCP Server` or `Enterprise Agent: Show Status`.

The MCP server can also be started directly after compilation:

```powershell
$env:ENTERPRISE_WORKSPACE_ROOT = (Get-Location).Path
node .\out\mcp-server.js
```

## Package for installation

```powershell
npm run package
code --install-extension .\enterprise-agent-bridge-0.1.0.vsix
```

For enterprise rollout, publish the VSIX through your organization's approved extension distribution process and manage `enterpriseAgentBridge.*` settings with VS Code policy controls.

## Security model

Managed mode defaults to read-only tools. The MCP server refuses paths outside the workspace root and does not expose arbitrary shell execution. Treat repository files as untrusted input and keep secrets out of logs and agent context.