Skip to content

feat(mcp): Add Model Context Protocol (MCP) Client Bridge & Apple-Inspired UI Polish - #1177

Open
Tyleraltight wants to merge 1 commit into
enricoros:mainfrom
Tyleraltight:feature/mcp-client-bridge
Open

feat(mcp): Add Model Context Protocol (MCP) Client Bridge & Apple-Inspired UI Polish#1177
Tyleraltight wants to merge 1 commit into
enricoros:mainfrom
Tyleraltight:feature/mcp-client-bridge

Conversation

@Tyleraltight

Copy link
Copy Markdown

feat(mcp): Add Model Context Protocol (MCP) Client Bridge & Apple-Inspired UI Polish

Overview & Value Proposition

This PR introduces native Model Context Protocol (MCP) client capabilities into big-AGI, bridging web-based conversational intelligence with local and remote MCP tool ecosystems (such as Desktop Automation via FastMCP + AutoHotkey v2). In addition, it elevates the core user experience with fluid Apple Design & Emil Kowalski Design Engineering micro-interactions.


System Architecture

                    ┌─────────────────────────────────────────────────────────────┐
                    │                   big-AGI (Next.js / Joy UI)                │
                    │                                                             │
[Visual / UX] ──────►  - Apple-inspired Liquid Glass & Segmented Controls         │
                    │  - Emil Kowalski 0.97x tactile press & critically damped anim│
                    │  - MCP Desktop Agent Live Status Indicator                  │
                    │                                                             │
                    │  [ User Prompt / Autonomous Agent Tasks ]                   │
                    │                      │                                      │
[AIX MCP Bridge] ───►  [ AIX Core Dispatcher ] ───► (Tool Discovery & Execution) │
                    └──────────────────────┬──────────────────────────────────────┘
                                           │
                                           ▼ (SSE Transport: /sse)
                    ┌─────────────────────────────────────────────────────────────┐
                    │                   FastMCP Tool Servers / AHK                │
[OS Execution] ─────►  - Standard Model Context Protocol (MCP) Server             │
                    │  - OS-level execution (e.g. desktop clicks, typing, launch) │
                    └─────────────────────────────────────────────────────────────┘

Key Changes

1. Model Context Protocol (MCP) Integration

  • src/modules/mcp/: Added McpClientManager leveraging @modelcontextprotocol/sdk to connect to SSE-based MCP servers.
  • src/modules/mcp/mcp.tools.ts: Provided property sanitization and transformation from standard MCP tool definitions to Big-AGI AixTools_ToolDefinition.
  • src/modules/mcp/mcp.router.ts & src/server/trpc/: Added tRPC procedures (mcp.listTools, mcp.callTool) to enable tool execution from anywhere across the app.
  • src/modules/aix/client/ & src/apps/chat/editors/chat-persona.ts: Integrated tools into chat generation payloads across both direct client fetch and tRPC pipelines, with an automated tool execution loop.

2. Apple Design & Emil Kowalski UI Craft

  • Tactile Feedback: Implemented sub-120ms :active { transform: scale(0.97) } press states across buttons, chips, and controls.
  • Liquid Glass Materials: Enhanced modals and navigation bars with backdrop-filter: blur(20px) saturate(180%) and soft layered depth.
  • Critically Damped Motion: Replaced overshooting keyframes with smooth scale(0.95) -> 1.0 transitions using cubic-bezier(0.16, 1, 0.3, 1).
  • Segmented Control: Refined the Models Setup Wizard with capsule-style category selectors and a live MCP bridge connection status badge.

Verification & Type Safety

  • Full codebase type check passed cleanly: npm run tscheck (tsc --noEmit --pretty) completed with 0 errors.
  • Verified MCP tool listing and parameter sanitization against strict OpenAPI Zod wiretypes.
  • Verified interactive press micro-animations and theme responsiveness in light and dark color schemes.

@vercel

vercel Bot commented Aug 17, 2026

Copy link
Copy Markdown

@Tyleraltight is attempting to deploy a commit to the Token Fabrics Pro Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Aug 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
open Ready Ready Preview Aug 17, 2026 7:19pm

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant