mirror of
https://github.com/samvallad33/vestige.git
synced 2026-04-24 16:26:22 +02:00
Some checks are pending
CI / Test (macos-latest) (push) Waiting to run
CI / Test (ubuntu-latest) (push) Waiting to run
CI / Release Build (aarch64-apple-darwin) (push) Blocked by required conditions
CI / Release Build (x86_64-unknown-linux-gnu) (push) Blocked by required conditions
CI / Release Build (x86_64-apple-darwin) (push) Blocked by required conditions
Test Suite / Unit Tests (push) Waiting to run
Test Suite / MCP E2E Tests (push) Waiting to run
Test Suite / User Journey Tests (push) Blocked by required conditions
Test Suite / Dashboard Build (push) Waiting to run
Test Suite / Code Coverage (push) Waiting to run
Nine tool modules in crates/vestige-mcp/src/tools/ had zero callers after
the v2.0.x unification work shipped *_unified + maintenance::* replacements.
They'd been #[allow(dead_code)]-papered over and forgotten. Verified each
module independently: grep for tools::<name>::, string dispatch in server.rs,
cross-crate usage — all nine returned zero external callers.
Removed modules (all superseded):
checkpoint (364 LOC) — no callers anywhere
codebase (298) — superseded by codebase_unified
consolidate (36) — superseded by maintenance::execute_consolidate
ingest (456) — superseded by smart_ingest
intentions (1,093) — superseded by intention_unified
knowledge (106) — no callers anywhere
recall (403) — superseded by search_unified
search (184) — superseded by search_unified
stats (132) — superseded by maintenance::execute_system_status
Also removed:
- EmotionCategory::base_arousal (10 LOC, zero callers)
Kept (still string-dispatched from server.rs):
- context, feedback, memory_states, review, tagging
Doc fixes (ghost env vars that were documented but zero Rust source reads):
- docs/CONFIGURATION.md — dropped VESTIGE_DATA_DIR, VESTIGE_LOG_LEVEL rows
(neither is read anywhere; --data-dir CLI flag + RUST_LOG are the real
mechanisms). Added the full real env-var table.
- packages/vestige-mcp-npm/README.md — same two ghost rows dropped
- docs/VESTIGE_STATE_AND_PLAN.md:399 — dropped VESTIGE_DATA_DIR row
- docs/VESTIGE_STATE_AND_PLAN.md:709 — typo VESTIGE_API_KEY
-> VESTIGE_AUTH_TOKEN (matches shipping convention), "open if unset"
-> "auto-generated if unset" to match actual behavior
Verified post-cleanup:
- cargo check --workspace clean
- cargo clippy --workspace -D warnings clean
- cargo test --workspace 1,223 passing / 0 failed
- cargo build --release -p vestige-mcp clean
Net: -3,091 LOC (14 files), zero behavior change, zero regressions.
65 lines
1.7 KiB
Rust
65 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 graph;
|
|
pub mod health;
|
|
|
|
// v2.1: Cross-reference (connect the dots)
|
|
pub mod cross_reference;
|
|
|
|
// v2.0.5: Active Forgetting — Anderson 2025 + Davis Rac1
|
|
pub mod suppress;
|
|
|
|
// Internal/backwards-compat tools still dispatched by server.rs for specific
|
|
// tool names. Each module below has live callers via string dispatch in
|
|
// `server.rs` (match arms on request.name). The #[allow(dead_code)]
|
|
// suppresses warnings for the per-module schema/struct items that aren't
|
|
// yet consumed.
|
|
//
|
|
// The nine legacy siblings here pre-v2.0.8 (checkpoint, codebase, consolidate,
|
|
// ingest, intentions, knowledge, recall, search, stats) were removed in the
|
|
// post-v2.0.8 dead-code sweep — all nine had zero callers after the
|
|
// unification work landed `*_unified` + `maintenance::*` replacements.
|
|
#[allow(dead_code)]
|
|
pub mod context;
|
|
#[allow(dead_code)]
|
|
pub mod feedback;
|
|
#[allow(dead_code)]
|
|
pub mod memory_states;
|
|
#[allow(dead_code)]
|
|
pub mod review;
|
|
#[allow(dead_code)]
|
|
pub mod tagging;
|