BUFI Financial Workspace MCP

v0.2.1
tech.bufi/mcp Checked 20 hours ago Published 21 hours ago

BUFI workspaces, custom widgets, and human-approved invoice and reimbursement drafts via OAuth.

Model Context Protocol (MCP) server for BUFI economic intelligence, Shiva /agent-tools, Liveblocks + WebMCP collaboration, and embedded documentation search. Or connect any streamable HTTP MCP client to the hosted endpoint: Full documentation lives in apps/docs/ai/mcp-server.mdx and apps/docs/ai/connect-agents.mdx.

Summary extracted from the README.

@bu/mcp-server (bufi-mcp)

Model Context Protocol (MCP) server for BUFI economic intelligence, Shiva /agent-tools, Liveblocks + WebMCP collaboration, and embedded documentation search.

Usage

# Default dynamic discovery mode (~1,045 tokens initial context; 98.2% smaller than --tools all)
bun ./packages/mcp-server/src/cli.ts --tools dynamic

# Full catalog mode (registers all 180 tools immediately)
bun ./packages/mcp-server/src/cli.ts --tools all

# Curated Claude Directory surface
bun ./packages/mcp-server/src/cli.ts --surface claude_directory

Or connect any streamable HTTP MCP client to the hosted endpoint:

https://mcp.bufi.tech/mcp

Tool Loading Modes

Mode Flag / Env Tools Registered at Startup
Dynamic (default) --tools dynamic (BUFI_MCP_TOOLS=dynamic) connection_status, whoami, workspace_capabilities, docs_search, docs_query, and execute_tool (6 tools, ~1,045 tokens).
All --tools all (BUFI_MCP_TOOLS=all) All 180 tools across discovery, docs, Shiva /agent-tools, and /api/collaboration/agent (collaboration_identity, collaboration_connect, collaboration_disconnect, collaboration_message, collaboration_propose_document, collaboration_presence, collaboration_document_duet_read, collaboration_document_duet_update).

Security & HITL Contract

  • Supabase MCP Auth (role: "bufi_mcp_agent"): Authenticates via OAuth 2.1 + PKCE Bearer tokens or reuses ~/.config/bufi/session.json from bufi login.
  • Explicit Scope (personal, team, w2w): Never infers a workspace. Call whoami and workspace_capabilities first.
  • Yellow-Tray HITL Boundary: Money-proposing tools carry destructiveHint: true and stage proposals in the BuIsland miniplayer and Pending Decisions Inbox (pending_decisions) rather than settling funds unilaterally.

Documentation

Full documentation lives in apps/docs/ai/mcp-server.mdx and apps/docs/ai/connect-agents.mdx.