
Lingua Universale MCP Server
io.github.rafapra3008由 GitHub 帳號 rafapra3008 發布v0.1.1更新於 Oct 24, 2026
Verify AI agent communication with session types and formal proofs
概覽
針對 Lingua Universale 的在地 MCP 伺服器,透過會話型別讓助理定義、驗證並強制執行 AI 代理之間的溝通協定。
- 可以做什麼
- 定義包含角色、訊息順序與分支選擇的代理協定,並檢查與形式化驗證終止性、無死鎖、角色參與等性質。對協定進行 lint、格式化與視覺化,並從已驗證範本產生專案骨架。執行協定並稽核 MCP 伺服器的協定清單。從協定原始碼產生 Lean 4 證明與 Python 程式碼。
- 適用情境
- 適合在建置多代理系統時,讓助理撰寫、驗證或除錯代理之間的溝通協定,或把協定驗證加入 CI 流程。
- 執行需求
- 以在地程序透過 stdio 執行,使用 uvx 從 PyPI 套件 lu-mcp-server 啟動,因此需要具備 uv 的 Python 環境。未宣告驗證、環境變數或標頭。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Lingua Universale MCP Server,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Lingua Universale
A language for verified AI agent protocols.
[PyPI] [License: Apache 2.0] [Zero Dependencies] [VS Code] [Discord]
Try it in your browser -- no install needed. Watch AI agents live -- 3 agents on a verified protocol.
The Problem
Your AI agents talk to each other, but nothing guarantees they follow the rules. Wrong sender, wrong message order, missing steps -- and you only find out in production.
Lingua Universale (LU) is a type checker for AI agent conversations. You define the protocol, LU proves it's correct, and the runtime enforces it.
The protocol says reviewer goes next. The runtime blocks it. Not because you trust the code -- because the session type makes it impossible.
Install
Or try it first: Playground (runs in your browser via Pyodide).
Write a Protocol
Then verify it:
Mathematical proof. Not a test that passes today and fails tomorrow.
What You Get
Zero external dependencies. Pure Python stdlib.
CLI
CI Integration
Add protocol verification to your GitHub Actions workflow:
Exit code is non-zero on violations -- works with any CI system.
How It Works
LU is built on multiparty session types (Honda, Yoshida, Carbone -- POPL 2008). Session types describe communication protocols as types: if two processes follow the same session type, they cannot deadlock, messages cannot arrive in the wrong order, and the conversation always terminates.
The pipeline:
LU doesn't replace your AI agent framework. It makes it safe. Like TypeScript for JavaScript -- you keep your tools, you add guarantees.
Examples
LU Debugger -- Live web app: 3 AI agents (Customer, Warehouse, Payment) communicate on a verified OrderProcessing protocol. Click "Break" to see a protocol violation blocked in real time. Source code.
See the examples/ directory:
- Agent Orchestration -- 3 AI agents with nested choice, 8/8 properties proved
- Live Runner -- Real Claude API agents on a verified protocol
- Standard Library -- 20 verified protocols across 5 categories
Or try the interactive Colab notebook -- 2 minutes, zero setup.
More from CervellaSwarm
Lingua Universale is the core project by CervellaSwarm. We also publish these Python packages:
All Apache 2.0, Python 3.11+, tested, documented.
Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
- Bug reports: GitHub Issues
- Security: See SECURITY.md for responsible disclosure
License
Apache License 2.0 -- see LICENSE.
Copyright 2025-2026 CervellaSwarm Contributors.
Lingua Universale -- Verified protocols for AI agents.
Playground | LU Debugger | PyPI | VS Code | Blog | Colab Demo
來源:README.md,提交 e1aea16
工具
0版本歷史
1- v0.1.1最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分