V
vigmarcarlo/OntoPrune
Neuro-Symbolic Context Pruning Middleware for Local SLMs & Coding Agents (85% token reduction, 6.7x faster TTFT on CPU, 0% hallucinations)
无 SECURITY.md
在 GitHub 查看 ↗链接已于 2026-11-12 核查 · HTTP 200 · 打开的是厂商自己的官网
我们没有从该仓库取到可核对的安装命令,也没有公开的远端端点。这两样都没有时,我们不出配置——编一条出来比不给更糟。 各客户端的接法 →
- ★ 数取值
- 3 ★ · vigmarcarlo/OntoPrune · 取自 GitHub 搜索 API · (2026-11-13 20:00:50 核对)
- 来源明细
- 收录自 punkpeye/awesome-mcp-servers 榜单(我们从中收集的条目之一) · 条目类型:MCP 服务
- 收录与活跃
- 收录于 2026-10-23 · 最近见到 2026-11-14 · 共见到 26 次 · 被 23 个来源列出
- 评分构成
- 综合分 2,300 · 3 ★ · 23 个来源 · mcp
常见问题(答案都来自我们的记录)
它适合谁 / 用来做什么?
我们把它归在这些标签下: MCP 服务。标签来自条目自身,不是我们强加的分类。
谁维护它、还在更新吗?
仓库
vigmarcarlo/OntoPrune;我们收录于 2026-10-23;最近见到 2026-11-14。这里没有"官方认证"或"质量评级"——我们只记录来源与时间。# OntoPrune
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
Neuro-Symbolic Context Pruning Middleware for Local SLMs and Cloud LLMs
English | Español | 📄 Technical Whitepaper (PDF) | 📄 Whitepaper en Español (PDF)
OntoPrune is an ultra-lightweight ( Ret: ... |
| Flutter / Dart | .dart | tree-sitter-dart | abstract class ... { Ret method(); } |
| Java / Spring Boot | .java | tree-sitter-java | public interface ... { Ret method(); } |
| TypeScript / React | .ts, .tsx, .js | tree-sitter-typescript | export interface ... { method(): Ret; } |
## 🛠️ Usage Modes
### 1. Native Model Context Protocol (MCP) Server
OntoPrune runs out of the box as an MCP server (ontoprune-mcp) compatible with Claude Desktop, Cursor, Gemini CLI, or Antigravity IDE:
bash
ontoprune-mcp
Configuration in claudedesktopconfig.json:
json
"mcpServers": {
"ontoprune": {
"command": "ontoprune-mcp"
Exposed MCP Tools:
prunecontext(filepath, targetsymbol, format='stubs'): Extracts the minimal dependency contract resolving cross-file imports.
verifyresponse(responsecode, contractorfile): Deterministically validates generated code against authorized contracts.
### 2. Command Line Interface (CLI)
bash
# Prune a target method across multi-file projects:
ontoprune translate src/services/OrderService.java processOrder --format stubs
# Direct streaming pipeline with local Ollama:
ontoprune translate services/orderservice.py procesarorden | ollama run qwen2.5-coder:3b
# Deterministically verify LLM output against contract:
ontoprune check --file generatedsolution.py --contract contract.py
### 3. Python API
python
import ontoprune
# 1. Prune a multi-module project to a minimal typed contract
context = ontoprune.translate(
"services/orderservice.py",
target="procesarorden",
fmt="stubs",
multimodule=True,
print(context)
# 2. Verify model output against the contract
violations = ontoprune.check(llmcoderesponse, against=context)
if not violations:
print("Code is 100% compliant and free of hallucinations!")
## 🧪 Test Suite
bash
pytest tests/
# 46 passed in 1.40s
## 🔬 Reproduce Empirical Benchmarks
You can independently replicate the benchmark evaluation in isolated sandboxes on your machine:
bash
# 1. Quick deterministic validation in sandbox (no API key needed):
ontoprune benchmark --backend mock --analyze
# or via Make:
make benchmark-mock
# 2. Live evaluation against Google Gemini (requires GEMINIAPIKEY):
English | Español | 📄 Technical Whitepaper (PDF) | 📄 Whitepaper en Español (PDF)
OntoPrune is an ultra-lightweight ( Ret: ... |
| Flutter / Dart | .dart | tree-sitter-dart | abstract class ... { Ret method(); } |
| Java / Spring Boot | .java | tree-sitter-java | public interface ... { Ret method(); } |
| TypeScript / React | .ts, .tsx, .js | tree-sitter-typescript | export interface ... { method(): Ret; } |
## 🛠️ Usage Modes
### 1. Native Model Context Protocol (MCP) Server
OntoPrune runs out of the box as an MCP server (ontoprune-mcp) compatible with Claude Desktop, Cursor, Gemini CLI, or Antigravity IDE:
bash
ontoprune-mcp
Configuration in claudedesktopconfig.json:
json
"mcpServers": {
"ontoprune": {
"command": "ontoprune-mcp"
Exposed MCP Tools:
prunecontext(filepath, targetsymbol, format='stubs'): Extracts the minimal dependency contract resolving cross-file imports.
verifyresponse(responsecode, contractorfile): Deterministically validates generated code against authorized contracts.
### 2. Command Line Interface (CLI)
bash
# Prune a target method across multi-file projects:
ontoprune translate src/services/OrderService.java processOrder --format stubs
# Direct streaming pipeline with local Ollama:
ontoprune translate services/orderservice.py procesarorden | ollama run qwen2.5-coder:3b
# Deterministically verify LLM output against contract:
ontoprune check --file generatedsolution.py --contract contract.py
### 3. Python API
python
import ontoprune
# 1. Prune a multi-module project to a minimal typed contract
context = ontoprune.translate(
"services/orderservice.py",
target="procesarorden",
fmt="stubs",
multimodule=True,
print(context)
# 2. Verify model output against the contract
violations = ontoprune.check(llmcoderesponse, against=context)
if not violations:
print("Code is 100% compliant and free of hallucinations!")
## 🧪 Test Suite
bash
pytest tests/
# 46 passed in 1.40s
## 🔬 Reproduce Empirical Benchmarks
You can independently replicate the benchmark evaluation in isolated sandboxes on your machine:
bash
# 1. Quick deterministic validation in sandbox (no API key needed):
ontoprune benchmark --backend mock --analyze
# or via Make:
make benchmark-mock
# 2. Live evaluation against Google Gemini (requires GEMINIAPIKEY):
收录徽章(可选)
想把收录标记放进 README 就复制这行,可选,不影响收录。
[](https://anclum.com/zh/s/vigmarcarlo-ontoprune/)
- 来源
- awesome · https://github.com/vigmarcarlo/OntoPrune
- 按领域浏览
- MCP 服务
- Traction
- 3 ★
- 收录来源
- 23 个独立来源
- 收录于
- 今天
- 安全策略
- 我们没在该仓库根目录找到
SECURITY.md(这不代表不安全)
同类推荐
所属领域与标签
每个标签都能点进去看同类的全部条目。数字是当前库里的真实条数。