mirror of
https://github.com/samvallad33/vestige.git
synced 2026-05-09 07:42:37 +02:00
New features: - deep_reference tool (#22): 8-stage cognitive reasoning pipeline with FSRS-6 trust scoring, intent classification (FactCheck/Timeline/RootCause/Comparison/ Synthesis), spreading activation expansion, temporal supersession, trust-weighted contradiction analysis, relation assessment, dream insight integration, and algorithmic reasoning chain generation — all without calling an LLM - cross_reference (#23): backward-compatible alias for deep_reference - retrieval_mode parameter on search (precise/balanced/exhaustive) - get_batch action on memory tool (up to 20 IDs per call) - Token budget raised from 10K to 100K on search + session_context - Dates (createdAt/updatedAt) on all search results and session_context lines Bug fixes (GitHub Issue #25 — all 10 resolved): - state_transitions empty: wired record_memory_access into strengthen_batch - chain/bridges no storage fallback: added with edge deduplication - knowledge_edges dead schema: documented as deprecated - insights not persisted from dream: wired save_insight after generation - find_duplicates threshold dropped: serde alias fix - search min_retention ignored: serde aliases for snake_case params - intention time triggers null: removed dead trigger_at embedding - changelog missing dreams: added get_dream_history + event integration - phantom Related IDs: clarified message text - fsrs_cards empty: documented as harmless dead schema Security hardening: - HTTP transport CORS: permissive() → localhost-only - Auth token panic guard: &token[..8] → safe min(8) slice - UTF-8 boundary fix: floor_char_boundary on content truncation - All unwrap() removed from HTTP transport (unwrap_or_else fallback) - Dream memory_count capped at 500 (prevents O(N²) hang) - Dormant state threshold aligned (0.3 → 0.4) Stats: 23 tools, 758 tests, 0 failures, 0 warnings, 0 unwraps in production Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
74 lines
1.7 KiB
Rust
74 lines
1.7 KiB
Rust
//! MCP Tools
|
|
//!
|
|
//! Tool implementations for the Vestige MCP server.
|
|
//!
|
|
//! The unified tools (codebase_unified, intention_unified, memory_unified, search_unified)
|
|
//! are the primary API. The granular tools below are kept for backwards compatibility
|
|
//! but are not exposed in the MCP tool list.
|
|
|
|
// Active unified tools
|
|
pub mod codebase_unified;
|
|
pub mod intention_unified;
|
|
pub mod memory_unified;
|
|
pub mod search_unified;
|
|
pub mod smart_ingest;
|
|
|
|
// v1.2: Temporal query tools
|
|
pub mod changelog;
|
|
pub mod timeline;
|
|
|
|
// v1.2: Maintenance tools
|
|
pub mod maintenance;
|
|
|
|
// v1.3: Auto-save and dedup tools
|
|
pub mod dedup;
|
|
pub mod importance;
|
|
|
|
// v1.5: Cognitive tools
|
|
pub mod dream;
|
|
pub mod explore;
|
|
pub mod predict;
|
|
pub mod restore;
|
|
|
|
// v1.8: Context Packets
|
|
pub mod session_context;
|
|
|
|
// v1.9: Autonomic tools
|
|
pub mod health;
|
|
pub mod graph;
|
|
|
|
// v2.1: Cross-reference (connect the dots)
|
|
pub mod cross_reference;
|
|
|
|
// Deprecated/internal tools — not advertised in the public MCP tools/list,
|
|
// but some functions are actively dispatched for backwards compatibility
|
|
// and internal cognitive operations. #[allow(dead_code)] suppresses warnings
|
|
// for the unused schema/struct items within these modules.
|
|
#[allow(dead_code)]
|
|
pub mod checkpoint;
|
|
#[allow(dead_code)]
|
|
pub mod codebase;
|
|
#[allow(dead_code)]
|
|
pub mod consolidate;
|
|
#[allow(dead_code)]
|
|
pub mod context;
|
|
#[allow(dead_code)]
|
|
pub mod feedback;
|
|
#[allow(dead_code)]
|
|
pub mod ingest;
|
|
#[allow(dead_code)]
|
|
pub mod intentions;
|
|
#[allow(dead_code)]
|
|
pub mod knowledge;
|
|
#[allow(dead_code)]
|
|
pub mod memory_states;
|
|
#[allow(dead_code)]
|
|
pub mod recall;
|
|
#[allow(dead_code)]
|
|
pub mod review;
|
|
#[allow(dead_code)]
|
|
pub mod search;
|
|
#[allow(dead_code)]
|
|
pub mod stats;
|
|
#[allow(dead_code)]
|
|
pub mod tagging;
|