Skip to main content
Glama
Archive Citation Lookup

Archive Citation Lookup

by defcron

Archive citation evidence for DKG

This prototype prepares six RDF facts for storing an exact archive citation in OriginTrail DKG v10 Working Memory. The record preserves the source URL, replay URL, UTC capture time, research note, and the status of the citation. It checks that the replay URL embeds the same source and valid timestamp. The example URLs are synthetic and the tool makes no request to either URL.

Use Node.js 22 or later. From this directory, run:

node archive-evidence.mjs preview example.json

To test the write and read-back path on your own local DKG v10 node, supply its token in DKG_AUTH_TOKEN and run node archive-evidence.mjs write-local example.json. DKG_API_URL defaults to http://127.0.0.1:9200. The command uses the public API to write to the archive-citation-evidence Context Graph and then reads the same assertion to compare its values. Repeating an identical record targets the same assertion. It performs no Shared Memory promotion or chain publishing.

Install the dependencies with npm ci. Configure a stdio MCP client to launch node mcp-server.mjs from this directory with the local DKG environment above. The client can call lookup_archive_citation with the assertion ID printed by write-local. The tool reads an existing citation and has no write operation.

Run npm test for the citation validation test. Set DKG_AUTH_TOKEN to the bearer token alone and, if needed, set DKG_API_URL to also run the integration test with a local DKG 10.1.3 node. The test seeds the synthetic citation, verifies MCP discovery and lookup, and checks that a missing record is reported. After restarting the test node, its embedded store could not retrieve the earlier assertion. Reseeding restored lookup. Retain your source citation separately when using this setup. The npm publication, demo, and registry pull request remain pending.

Contact Jeremy Carter.

Sponsor maintenance

Support maintenance of the archive citation integration through GitHub Sponsors.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to create verifiable, replayable citations, search private knowledge bases, and publish Markdown with verified citation markers.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables agents to perform federated cited search and heuristic grounding across a governed versioned wiki and indexed files, inspect citation spans, and read or write scoped knowledge through HTTP or stdio MCP.
      Apache 2.0
    • A
      license
      A
      quality
      C
      maintenance
      Exposes seven read-only tools that let an existing chat model search a private, incrementally ingested PDF library, fetch full parent sections with provenance and hash validation, check evidence completeness, audit literal quote anchors, view original PDF pages, and explore a frozen citation snapshot. It provides source-first retrieval and provenance without invoking another model or certifying scientific conclusions.
      7
      1
      MIT