feat(mcp): add remote auth, interaction flows, and prompt/resource support#344
Merged
GCWing merged 12 commits intoGCWing:mainfrom Apr 3, 2026
Merged
feat(mcp): add remote auth, interaction flows, and prompt/resource support#344GCWing merged 12 commits intoGCWing:mainfrom
GCWing merged 12 commits intoGCWing:mainfrom
Conversation
Keep remote MCP tool, resource, prompt, and result metadata nearly lossless when adapting rmcp types into BitFun protocol types. Preserve titles, icons, annotations, output schemas, structured tool results, _meta payloads, and resource links instead of flattening them away during remote transport mapping. Also advertise supported client capabilities during initialize and add focused tests for metadata retention and streamable HTTP initialization behavior.
- normalize MCP source and transport parsing for stdio, streamable-http, and sse servers\n- expose transport and start capability metadata through the desktop API and settings page\n- improve the OAuth callback handoff UI and register dynamic MCP tools for agents # Conflicts: # src/crates/core/src/agentic/agents/registry.rs
# Conflicts: # src/web-ui/src/flow_chat/components/ChatInput.tsx
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
This PR expands BitFun's MCP integration across the core service layer, desktop bridge, and web UI.
It adds a complete remote-auth and reauth flow, surfaces MCP interaction requests in the app UI, and exposes MCP prompt/resource capabilities both to the agent runtime and to end users in the chat input and settings UI.
What changed
prompts/get.Verification
cargo check -p bitfun-core --libcargo check -p bitfun-desktop --libpnpm run type-check:web