Sweet Assist MCP Server

Sweet Assist MCP Server

Standalone MCP server exposing Sweet Assist transactions, contacts, envelopes, and agent profiles to Claude, behind an OAuth 2.1 login and approve flow.

Category
访问服务器

README

Sweet Assist MCP Server

Standalone MCP server exposing Sweet Assist transactions, contacts, envelopes and agent profiles to Claude, behind an OAuth 2.1 login + approve flow.

Running locally

npm install
node index.js                      # http://localhost:3000

Expose it over HTTPS (Claude will not accept an http:// connector URL):

ngrok http 3000                    # then set SERVER_URL to the https URL it prints

SERVER_URL in .env must match the public URL exactly. It is used to build the OAuth metadata, the authorize/token endpoints and the redirect targets. If it still says http://localhost:3000 while Claude reaches you over a tunnel, the login redirect breaks.

Then in Claude: Settings → Connectors → Add custom connector → paste https://<your-host>/mcp.

The connector flow

Step Endpoint What happens
1 POST /mcp (no token) 401 + WWW-Authenticate pointing at the metadata
2 GET /.well-known/oauth-protected-resource names the authorization server
3 GET /.well-known/oauth-authorization-server endpoint metadata
4 POST /register Claude registers itself (RFC 7591). No human step.
5 GET /oauth/authorize branded Sweet Assist login page
6 POST /oauth/login verifies the broker's password against users
7 POST /oauth/approve the consent screen; redirects back with a code
8 POST /oauth/token code + PKCE verifier → access token
9 POST /mcp (with token) brokerId comes from the token, never a default

Public client with PKCE S256 — there is no client secret. Authorization codes are single-use and expire in 60 seconds.

Before production

  1. Move clients / codes / tokens out of memory (oauth/store.js). They are Maps today, so a restart invalidates every connector and each broker must re-approve. These need database tables.
  2. Add token revocation. revokeToken() exists but nothing calls it. Removing the connector in Claude should kill the token server-side.
  3. Rate-limit POST /oauth/login. There is no throttling on password attempts.
  4. Tighten CORS. app.use(cors()) currently allows any origin.
  5. Serve over real HTTPS, not a dev tunnel.
  6. Set a refresh token flow — access tokens currently last 30 days with no refresh.

Tools

list_transactions, get_transaction, list_envelopes, list_contacts, list_agents, get_my_profile — all read-only, all scoped to the authenticated broker and the agents beneath them via getScopedUserIds().

Transaction status

txn_transactions.status is an int owned by the Laravel app (TxnConstant::TXN_STATUS). It is surfaced as a label via STATUS_LABEL in constants.jskeep the two in step:

Int Name
1 Active
2 Closed (archived in the DB)
3 Canceled
4 Expired
5 Deleted
6 Canceled, Closed — matches both the closed and canceled filters

status: 'all' (the default) excludes deleted. An unrecognised status returns an error listing the valid ones rather than silently falling back to everything.

Transaction phase — prefer this filter

What the product calls a phase is not one column. Each tab a broker sees is a combination of phase, status and for_closed. PHASE_TABS in constants.js mirrors the Laravel app's Livewire/Transaction/Mongos/txnTable.php pipeline — if those tabs change, this must change too:

Tab phase status for_closed
Active 1 1 0
Pending 0 1 0
Submitted For Closing 1 or 0 1 1
Closing 3 1
Closed 3 2
Canceled 3

Note the trap: "Submitted For Closing" is not a phase value. It is for_closed = 1 while phase stays 1 or 0. Filtering on phase alone silently returns the wrong rows.

expired (status 4) and deleted (status 5) have no tab of their own but are accepted as phase names. Omitting phase returns everything except deleted.

list_transactions no longer advertises a status parameter. Offering both was the bug: asked for "my active transactions" the model picked status: 'active', which is the raw column — and a transaction moved to Closing still has status = 1, so it kept appearing under active. A status argument from an older client is still accepted and routed through the same tab table, so both spellings now mean the Active tab.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选