🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@levnikolaevich/hex-research-mcp

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@levnikolaevich/hex-research-mcp

Markdown-first research hypothesis graph MCP server for goals, hypotheses, run manifests, task links, sources, and coherent goal metrics.

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

hex-research-mcp

Markdown-first MCP server for indexing research hypotheses, goals, tasks, sources, and benchmark run manifests into a SQLite research graph.

npm downloads license node

Install

claude mcp add -s user hex-research -- npx -y @levnikolaevich/hex-research-mcp

Local Use

npm --prefix mcp install
npm --prefix mcp --workspace @levnikolaevich/hex-research-mcp run build
node mcp/hex-research-mcp/server.mjs

The server indexes a target project root with this layout:

docs/hypotheses/*.md
docs/goals/*.md
docs/sources/lib.yaml
benchmark/runs/*/manifest.yaml

The SQLite index is written to:

.hex-skills/researchgraph/index.db

Tools

  • index_hypotheses: rebuild the SQLite index.
  • verify_index: validate frontmatter and manifests without rebuilding.
  • find_hypotheses: search hypotheses by status, goal, task state, source, priority, or claim.
  • inspect_hypothesis: inspect one hypothesis and its linked graph data.
  • find_evidence: search evidence entries and cited sources.
  • find_runs: search targeted and explicit comprehensive benchmark runs.
  • trace_lineage: trace hypothesis lineage and dependency edges.
  • analyze_topology: summarize node/edge counts and hubs.
  • audit_orphans: report orphan, stale, evidence, source, task, and goal-run gaps.
  • inspect_goal: inspect one goal and linked hypotheses.
  • trace_goal_tree: trace goal decomposition.
  • audit_goal_alignment: audit hypothesis-goal coverage, explicit comprehensive-run metrics, and coverage candidates.
  • analyze_progress: inspect changed research files and field-level frontmatter deltas from git diff.
  • analyze_proposed: check readiness gaps for one hypothesis.
  • export_canvas: export a JSON Canvas graph.
  • export_research_map: generate docs/research-map.md from canonical split files.

Validation and Sources

Goal metrics_current is derived during indexing from explicit comprehensive run manifests. Do not write metrics_current, children, or achievement_status in goal frontmatter; verify_index reports those as source drift.

Projects may deduplicate citations in docs/sources/lib.yaml:

sources:
  carver-2015-systematic-trading:
    type: book
    title: Systematic Trading
    isbn: "9780857194459"
    year: 2015

Hypotheses and goals can then cite by id:

sources:
  - id: carver-2015-systematic-trading
    pages: "12-14"

Use the validator in Git hooks or CI:

npx -y --package @levnikolaevich/hex-research-mcp hex-research-validate --strict --path .

Example .pre-commit-config.yaml:

repos:
  - repo: local
    hooks:
      - id: hex-research-validate
        name: hex research graph validation
        entry: npx -y --package @levnikolaevich/hex-research-mcp hex-research-validate --strict --path .
        language: system
        pass_filenames: false

Fixture Example

npm --prefix mcp --workspace @levnikolaevich/hex-research-mcp test
npm --prefix mcp --workspace @levnikolaevich/hex-research-mcp run evals
npm --prefix mcp --workspace @levnikolaevich/hex-research-mcp run benchmark
npm --prefix mcp --workspace @levnikolaevich/hex-research-mcp run docs:quality:check

The test fixture covers live, pending implementation, valid refine, refine gap, status-verdict drift, comprehensive runs, targeted runs, cited sources, and opaque runner_environment manifest metadata.

Quality Snapshot

Release readiness: Server MVP verified on deterministic fixtures with npm packaging enabled. btc-trader migration, Phase 7 pull-up, and skill packaging remain out of scope for this snapshot.

MetricValue
MCP tools covered16/16
Eval scenarios16
Benchmark workflows5
Avg estimated benchmark savings78.2%

Methodology: evals call every registered tool against test/fixtures/project with deterministic assertions and structuredContent/text mirror checks. Benchmark token counts are rough ceil(chars / 4) estimates, not production tokenizer measurements.

ToolRiskEvalTest source
index_hypotheseshighverifiedtest/indexing.mjs
verify_indexmediumverifiedtest/schema-contract.mjs
find_hypotheseslowverifiedtest/tools.mjs
inspect_hypothesislowverifiedtest/tools.mjs
find_evidencelowverifiedtest/tools.mjs
find_runslowverifiedtest/tools.mjs
trace_lineagemediumverifiedtest/tools.mjs
analyze_topologylowverifiedevals/index.mjs
audit_orphansmediumverifiedtest/audit.mjs
analyze_progresslowverifiedevals/index.mjs
analyze_proposedmediumverifiedevals/index.mjs
inspect_goallowverifiedtest/tools.mjs
trace_goal_treemediumverifiedtest/tools.mjs
audit_goal_alignmentmediumverifiedtest/audit.mjs
export_canvashighverifiedtest/export.mjs
export_research_maphighverifiedtest/export.mjs

Goal-Directed Workflow

  • Run verify_index before changing research files.
  • Run index_hypotheses after edits.
  • Use audit_goal_alignment to find active goals without live hypotheses or comprehensive metrics.
  • Use find_hypotheses and inspect_hypothesis for scoped execution.
  • Use analyze_progress for field-level frontmatter deltas in current git diff.
  • Use export_canvas or export_research_map with dry_run: true before writing generated graph artifacts.

Keywords

mcp

FAQs

Package last updated on 08 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts