Summary
Complete the deferred inbound MCP scope from #1013: governed group/public/all-scope tools plus enterprise-readiness hardening.
Deferred Tools
Keep these disabled until this issue is implemented and explicitly reviewed:
list_group_workspaces
list_group_documents
list_group_prompts
list_public_workspaces
list_public_documents
list_public_prompts
- All-scope
search_documents
- All-scope
send_chat_message
Scope
- Reuse existing group/public role checks and workspace-status checks.
- Add governance controls per tool and scope.
- Add tenant/client/user audit logging.
- Add pagination and result limits.
- Add negative tests for users without workspace access.
- Add admin UX for enabling specific tools/scopes rather than relying on environment variables.
- Add correlation IDs across MCP requests, tool execution, and downstream SimpleChat operations.
- Track caller app ID, delegated user ID, tool name, duration, result status, and error type.
- Redact tokens, secrets, prompts, and sensitive document content.
- Avoid in-memory token/session caches as production state.
- Add bounded request timeouts, safe retry behavior, and health/readiness endpoints.
- Ensure multi-instance deployments behave consistently.
- Document app registration, PRM metadata, inbound MCP governance setup, supported tools, non-goals, and disablement workflows.
Acceptance Criteria
Notes
Parent: #1013
Depends on the inbound auth/governance foundation and initial personal tool issues.
Planning doc: docs/explanation/features/MCP_PLUGIN_ROBUSTNESS_PLAN.md
Priority: P1
Size: XL
Summary
Complete the deferred inbound MCP scope from #1013: governed group/public/all-scope tools plus enterprise-readiness hardening.
Deferred Tools
Keep these disabled until this issue is implemented and explicitly reviewed:
list_group_workspaceslist_group_documentslist_group_promptslist_public_workspaceslist_public_documentslist_public_promptssearch_documentssend_chat_messageScope
Acceptance Criteria
Notes
Parent: #1013
Depends on the inbound auth/governance foundation and initial personal tool issues.
Planning doc:
docs/explanation/features/MCP_PLUGIN_ROBUSTNESS_PLAN.mdPriority: P1
Size: XL