Frasma

io.github.francemazzi由 GitHub 帳號 francemazzi 發布v1.0.0更新於 Oct 24, 2026

Read-only Frasma MCP: profile, knowledge search, diagnostic handoff. No email.

已驗證Streamable HTTP可網頁執行知識與記憶商業與電商

概覽

AI 產生的概覽

唯讀的 Frasma MCP 伺服器,讓助理查詢該顧問方的已驗證簡介、服務與診斷方法,並準備交接用的簡報。

可以做什麼
  • 取得 Frasma 的已驗證公開簡介、關注領域、產業、商業界線與探索連結
  • 搜尋已驗證的服務、產業、案例研究、方法論、適用條件與商業界線
  • 取得診斷框架,包括需蒐集的證據、適用條件與商業限制
  • 驗證診斷摘要並回傳交接內容,或驗證用於報價的流程簡報
適用情境
適合在助理需要就 Frasma 的服務與適用條件做出準確、可查證的陳述之前使用,或協助使用者整理診斷摘要與報價所需的流程簡報。
執行需求
遠端 Streamable HTTP 端點;未宣告任何套件、環境變數或請求標頭。僅支援 stdio 的用戶端需透過 mcp-remote 等橋接工具(以 npx 執行)。
安裝前請注意
prepare 類工具只驗證輸入並回傳交接內容,不會寄送電子郵件;使用者須確認後才會提交至網站的流程評估請求端點。流程簡報包含姓名、工作電子郵件與流程資訊,應視為個人資料處理。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Frasma,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.francemazzi%2Ffrasma/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "frasma": {
      "type": "http",
      "url": "https://www.frasma.org/api/mcp"
    }
  }
}

README

[smithery badge]

Frasma on Smithery

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

bash
npm run dev# oryarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

Process brief (quote request)

The landing form and the chat widget both submit a process brief to POST /api/request-process-assessment. Francesco uses that brief to prepare a quote.

Fields: name, work email, optional company and role, process (required), optional current tools and volume.

When MONGODB_URI is set, the same endpoint upserts users, inserts leads, and logs project_brief_submitted.

Required environment variables

Create a .env.local file in the project root with:

bash
# Destination email (defaults to [email protected])[email protected]
# Sender identity (defaults to SMTP_USER if using SMTP)[email protected]
# Sender display name (defaults to "Frasma")MEETING_FROM_NAME=Frasma
# --- Option A (recommended): Gmail SMTP via App Password ---SMTP_HOST=smtp.gmail.comSMTP_PORT=465SMTP_SECURE=true[email protected]SMTP_PASS=your_gmail_app_password
# --- Option B: Resend ---# RESEND_API_KEY=your_resend_api_key
# Notion: inbound leads go to ricerca_clienti (Frasma view)# NOTION_TOKEN=ntn_your_integration_token# NOTION_LEADS_DATABASE_ID=32e90196-c414-80b3-9a53-c00ffe4019c9
# OpenAI Ads Measurement Pixel (ChatGPT Ads conversions). Public, inlined at build# time: set it in Vercel before the deploy that should carry the pixel.# NEXT_PUBLIC_OAI_PIXEL_ID=your_pixel_id

Notes:

  • In production you should set these variables in your hosting provider (e.g. Vercel).
  • If neither SMTP nor Resend is configured, the API returns an error and the popup shows it to the user.

Diagnostic chat agent

The website chat is a process-diagnostic assistant. It uses the bilingual, versioned knowledge base in lib/knowledge/ to:

  • identify operational bottlenecks;
  • collect workflow, systems, volumes, baseline metrics, data, and constraints;
  • map the need to Frasma capabilities;
  • prepare an editable process brief;
  • submit that brief to POST /api/request-process-assessment only after explicit user review.

If the assistant times out, the widget shows the same process brief form, prefilled from the conversation history (no extra LLM call).

Each browser session stores a conversationId in localStorage. Messages are persisted server-side in MongoDB Atlas through the official Node.js driver. On reopen, the widget restores the conversation via GET /api/conversations/:id. If MongoDB is not configured, the chat keeps working in stateless mode.

Do not add prices, guaranteed savings, customer secrets, credentials, or personal data about third parties to the knowledge base or diagnostic examples.

Required OpenAI environment variable (chat agent + voice dictation on the process assessment form):

bash
OPENAI_API_KEY=your_openai_api_key
# Optional; defaults to gpt-4o-miniOPENAI_CHAT_MODEL=gpt-4o-mini
# Optional; defaults to whisper-1 (process assessment voice dictation)OPENAI_WHISPER_MODEL=whisper-1

Chat persistence (MongoDB Atlas)

Persistence is optional but recommended in production. When configured, the API stores:

  • conversation metadata (lang, timezone, pagePath, conversion flags);
  • user and assistant messages;
  • conversion events from the process brief (project_brief_submitted).

Setup:

  1. Create a free M0 cluster on MongoDB Atlas (recommended region: Frankfurt or Ireland).
  2. Create a database user with read/write access.
  3. In Network Access, allow 0.0.0.0/0 (required for Vercel serverless).
  4. Copy the connection string and set these environment variables locally and on Vercel:
bash
MONGODB_URI=mongodb+srv://user:[email protected]/frasma_chat?retryWrites=true&w=majority# Optional. Days from the last contact; defaults to 730 and is capped at 730# (24 months), the retention promised by the privacy policy.CHAT_RETENTION_DAYS=730

Indexes and a TTL policy on expiresAt are created automatically on first use for conversations, messages, events, leads and users. Every contact (registration, message, process brief) extends the deadline of the conversation and of everything the visitor owns, so data expires CHAT_RETENTION_DAYS after the last contact.

Databases created before this policy have documents without expiresAt, which a TTL index never deletes. Backfill them once (idempotent, --dry-run prints counts only):

bash
node scripts/backfill-retention.mjs --dry-runnpm run backfill:retention

Without MONGODB_URI, POST /api/chat and the form APIs continue to work; persistence calls are skipped silently.

Verify the connection:

bash
npm run check:mongodbcurl http://localhost:3000/api/status

Expected when configured correctly:

json
{  "persistence": { "configured": true, "connected": true }}

A successful chat response also includes conversationId.

MongoDB troubleshooting

  1. Network Access on Atlas must include 0.0.0.0/0 for Vercel serverless.
  2. The URI must include the database name: ...mongodb.net/frasma_chat?...
  3. If you reset the Atlas user password, update both .env.local and Vercel, then redeploy.
  4. URL-encode special characters in the password (@, #, %, etc.).
  5. After changing Vercel env vars, trigger a new deployment; env changes are not applied to existing deployments automatically.

AI discovery and public MCP

Public discovery surfaces for agents and humans:

MCP tools (read-only + handoff)

  • get_frasma_profile
  • search_frasma_knowledge
  • get_diagnostic_framework
  • prepare_diagnostic_summary — validates a diagnosis and returns handoff URLs; never sends email
  • prepare_project_brief — validates the process brief used for a quote; never sends email

Example Cursor / Claude Desktop remote config:

json
{  "mcpServers": {    "frasma": {      "url": "https://www.frasma.org/api/mcp"    }  }}

For stdio-only clients:

json
{  "mcpServers": {    "frasma": {      "command": "npx",      "args": ["-y", "mcp-remote", "https://www.frasma.org/api/mcp"]    }  }}

Directory listing (after production deploy)

  1. Confirm /for-agents, /servizi, /llms.txt, /llms-it.txt, and /api/mcp respond in production.
  2. Smoke: curl -H 'Accept: text/markdown' -H 'Accept-Language: it' https://www.frasma.org/servizi/ddt-erp (Italian DDT/Mago copy), plus an MCP initialize + tools/list against /api/mcp.
  3. Submit the server to relevant MCP directories with the short description from /for-agents (mention the services hub).
  4. Keep the agent-skills digest in sync when SKILL.md changes (shasum -a 256).

Quality checks:

bash
npm run lintnpm testnpm run build

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

來源:README.md,提交 dd2b7d2

工具

5

get_frasma_profile

Get Frasma profile

Returns the verified public profile, focus areas, sectors, commercial boundaries, and discovery URLs for Frasma.

輸入參數locale

search_frasma_knowledge

Search Frasma knowledge

Searches verified Frasma services, sectors, case studies, methodology, fit criteria, and commercial boundaries. Use before making factual claims.

輸入參數query必填localepagePath

get_diagnostic_framework

Get diagnostic framework

Returns the diagnostic method, evidence to collect, fit criteria, and commercial limits.

輸入參數locale

prepare_diagnostic_summary

Prepare diagnostic summary handoff

Validates a complete diagnostic summary and returns a handoff payload. Does not send email. Map the diagnosis to a process brief; the user must confirm before POST /api/request-process-assessment.

輸入參數sector必填process必填honeypotlanguage必填nextSteps必填clientName必填bottlenecks必填clientEmail必填constraints必填clientCompanydataAvailable必填openQuestions必填另有 8 個

prepare_project_brief

Prepare process brief handoff

Validates the process brief used for a quote (name, email, process, optional company/role/systems/volume). Does not send email. The user must confirm before POST /api/request-process-assessment.

輸入參數name必填rolevolumecompanyprocess必填systemsclientEmail必填

版本歷史

1
  1. v1.0.0最新Sep 16, 2026

評分

已滿足適用檢查項的 90%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

    請在儲存庫或註冊中心條目中宣告授權條款。