How brightwing-systems-llc/mcp-manager works
Brightwing is a desktop control plane for finding, installing, authenticating, proxying, filtering, and governing MCP servers across AI tools. The main workflow runs from the app UI through its shared state and Tauri bridge into Rust commands, which manage tool configs and persistent state. OAuth, proxying, credential storage, and governance are distinct product stages. Edges are limited to documented README behavior or relationships visible in excerpts and SOURCE INDEX references; some backend wiring is unsampled and is therefore omitted or marked unverified.
Main entry points: tauri.ts Tauri Bridge · App.tsx App Shell · flow.rs OAuth Flow · lib.rs Governance Commands
Components 24
Desktop Control Plane
- App Shell
src/App.tsx - UI State
src/store.ts - Tauri Bridge
src/lib/tauri.ts - Server Dashboard
src/components/Dashboard.tsx
Discovery and Installation
- Server Search
src/components/Search.tsx - Install Server
src/components/InstallDialog.tsx - Add Server
src/components/AddServer.tsx - Tool Definitions
src-tauri/src/tools/definitions.rs - Tool Detection
src-tauri/src/config/reader.rs - Tool Config Writer
src-tauri/src/config/writer.rs - MCP Scoreboard
- AI Tool Configs
Authentication and Proxy
- OAuth Connect
src/components/OAuthConnect.tsx - OAuth Flow
src-tauri/src/oauth/flow.rs - OAuth Discovery
src-tauri/src/oauth/discovery.rs - Token Exchange
src-tauri/src/oauth/exchange.rs - Proxy Management
src/components/ProxyServers.tsx - Proxy Daemon
src-tauri/src/bin/brightwing_proxy.rs - Encrypted Vault
src-tauri/crates/proxy-common/src/stronghold_vault.rs
Governance
- Governance UI
src/components/Governance.tsx - Governance Commands
src-tauri/src/lib.rs
Rust Runtime and State
- SQLite Database
src-tauri/src/db/queries.rs - bw CLI
src-tauri/src/bin/bw.rs
Other components
- Desktop User
Connections 30
- Desktop User → App Shell: uses
README.md - App Shell → UI State: loads data
src/App.tsx - App Shell → Server Dashboard: shows view
src/App.tsx - App Shell → Server Search: shows view
src/App.tsx - App Shell → Install Server: shows view
src/App.tsx - App Shell → Add Server: shows view
src/App.tsx - UI State → Tauri Bridge: invokes commands
src/store.ts - Server Search → UI State: searches servers
src/components/Search.tsx - MCP Scoreboard → Server Search: supplies results
README.md - Install Server → OAuth Connect: offers auth
src/components/InstallDialog.tsx - Add Server → OAuth Connect: offers auth
src/components/AddServer.tsx - Server Dashboard → Tauri Bridge: registers proxy
src/components/Dashboard.tsx - Tauri Bridge → Tool Definitions: requests tool metadata
- Tool Detection → Tool Definitions: uses definitions
src-tauri/src/config/reader.rs - Tool Config Writer → Tool Definitions: uses definitions
src-tauri/src/config/writer.rs - Tool Config Writer → AI Tool Configs: writes configs
README.md - OAuth Connect → Tauri Bridge: starts OAuth
src/components/OAuthConnect.tsx - Tauri Bridge → OAuth Flow: requests OAuth commands
- OAuth Flow → OAuth Discovery: discovers metadata
src-tauri/src/oauth/flow.rs - OAuth Flow → Token Exchange: exchanges code
src-tauri/src/oauth/flow.rs - OAuth Flow → SQLite Database: reads metadata
src-tauri/src/oauth/flow.rs - OAuth Flow → Encrypted Vault: stores tokens
src-tauri/src/oauth/flow.rs - Proxy Management → Tauri Bridge: manages daemon
- Proxy Daemon → Encrypted Vault: retrieves credentials
- Proxy Daemon → AI Tool Configs: proxies requests
README.md - Governance UI → Tauri Bridge: sends policy actions
src/components/Governance.tsx - Tauri Bridge → Governance Commands: invokes commands
- Governance Commands → SQLite Database: records allowlist
src-tauri/src/lib.rs - Governance Commands → AI Tool Configs: checks install policy
README.md - bw CLI → Proxy Daemon: uses shared proxy
README.md