feat: Teams multi-user OAuth, workspace isolation, and admin UI#324
Open
feat: Teams multi-user OAuth, workspace isolation, and admin UI#324
Conversation
Deploying mcpproxy-docs with
|
| Latest commit: |
efbca20
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://282ab6b8.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://024-teams-multiuser-oauth.mcpproxy-docs.pages.dev |
…ping bugs
- Register admin, user, and activity endpoints in setup.go with teams
auth middleware (session cookie/JWT), fixing 401 errors on all teams pages
- Implement getDashboard handler with user/session/server stats
- Fix AdminUsers.vue: backend returns array directly, not {users: [...]}
- Fix UserServers.vue: map {personal, shared} response to flat array
- Fix UserActivity.vue: use data.items not data.activities
- Fix UserDiagnostics.vue: map ownership->owner_type, synthesize health
- Fix SidebarNav: remove duplicate Dashboard/Admin Overview, add Sessions
- Add nil-safety for activityFilter in admin and user activity handlers
- Enhance CLI status command to show edition and teams info (OAuth provider,
admin emails) with build-tag separation for personal/teams editions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… log isolation
- Add `Shared` field to ServerConfig for admin-controlled server sharing
- Add admin REST endpoints: GET /admin/servers, POST /admin/servers/{name}/shared
- Add AdminServers.vue page for toggling servers between shared/private
- Add per-user shared server preferences (BBolt bucket: shared_prefs:{userID})
- Users can now enable/disable shared servers (stored as user preference)
- UserServers.vue shows enable/disable buttons on shared servers
- Wire user identity (UserID, UserEmail) through activity event pipeline
- getAuthMetadata now includes user_id/user_email for session-based auth
- ActivityService extracts _auth_user_id/_auth_user_email from event args
- Per-user activity filtering now works (EnrichRecord data flow complete)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…activity enrichment Teams infrastructure: OAuth providers (Google/GitHub/Microsoft), JWT session management, per-user workspace isolation, multiuser MCP routing with tool filtering, activity log user identity enrichment, and storage model extensions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…edesign
Backend:
- Admin server enable/disable/restart endpoints via management service injection
- Per-user agent token CRUD (create, list, revoke, regenerate) with ownership enforcement
- Extended Dependencies with ManagementService and StorageManager
- Enriched admin server list with shared field from config
- Fixed token list response format (wrapped in {tokens:[...]})
Frontend:
- Rewrote AdminServers.vue: stats row, health badges, search/filter bar, context menu actions
- Improved UserServers.vue: table layout, clickable server names, shared server display
- New UserTokens.vue: full token management with create modal, secret display, revoke/regenerate
- Updated SidebarNav: "Agent Tokens" under user workspace, "Server Management" for admin
- Updated TopHeader: "Add Personal Server" in teams mode
- Added /my/tokens route and API service methods
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Swagger spec regenerated with default build (no -tags teams) to match the make swagger-verify check in CI. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Auto-fixed by pre-push hooks (trailing whitespace, missing newlines, gofmt formatting). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add swaggerignore:"true" to Config.Teams field to prevent swag from non-deterministically parsing build-tagged TeamsConfig definitions. Without this, swag sometimes picks up teams_config.go and sometimes teams_config_stub.go, producing different output each run. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
3b2e33e to
efbca20
Compare
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 22890655560 --repo smart-mcp-proxy/mcpproxy-go
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
//go:build serverbuild tag — personal edition unaffectedTest plan
go build ./cmd/mcpproxy— personal edition compiles without server codego build -tags server ./cmd/mcpproxy— server edition compilesgo test -tags server ./internal/teams/... -v -race— all server tests pass🤖 Generated with Claude Code