Agience + FLARE integration bridge for DKG v10 Working Memory and Shared Memory workflows
Project description
agience-flare-dkg-integration
A platform-level integration bridging Agience Core (governed MCP-native artifact platform), FLARE (cryptographically enforced encrypted vector search), and OriginTrail DKG v10 Working Memory / Shared Memory into a three-layer trust gradient for collaborative knowledge production.
Features
- MCP stdio server (
agience-dkg-mcp) — exposesagience_wm_write,agience_promote,agience_searchtools for Claude Desktop, Cursor, Claude Code, and any MCP host - Writes committed Agience artifacts to DKG v10 Working Memory as typed JSON-LD Knowledge Assets with the
agience:RDF vocabulary — SPARQL-queryable by type, author, collection, and memory layer - Promotes eligible assets to Shared Memory (SHARE) via
dkg-create(privacy=public) - Searches across memory layers via
dkg-sparql-querywith typed predicates - All DKG calls use MCP Streamable HTTP at
POST /mcpwith SSE stream handling - Distinguishes MCP transport success from blockchain anchoring state (
status: anchoredvsstatus: pending) - FLARE optional path: when
policy_class = "internal-confidential", only derived projections reach DKG; raw content stays encrypted
Install
pip install agience-flare-dkg-integration
MCP Server (Claude Desktop, Cursor, etc.)
Add to your MCP client config:
{
"mcpServers": {
"agience-dkg": {
"command": "agience-dkg-mcp",
"env": {
"DKG_BASE_URL": "http://localhost:8081",
"DKG_TOKEN": "your-bearer-token"
}
}
}
}
Tools: agience_wm_write, agience_promote, agience_search.
CLI
export DKG_BASE_URL=http://localhost:8081
export DKG_TOKEN=your-bearer-token
# Write to Working Memory
agience-dkg wm-write \
--title "Architecture Decision: use DKG v10" \
--artifact-type decision \
--artifact-id art-001 \
--content "We will use DKG v10 Working Memory as the shared knowledge substrate." \
--context-graph-id my-context-graph \
--collection-id my-project
# Promote to Shared Memory (SHARE)
agience-dkg promote <turn-uri> --context-graph-id my-context-graph
# Search
agience-dkg search "architecture decisions" --context-graph-id my-context-graph
Python API
from agience_dkg_integration import DkgHttpClient, MemoryTurnRequest
from agience_dkg_integration.formatter import artifact_to_markdown, session_uri_for_collection
client = DkgHttpClient(base_url="http://localhost:8081", bearer_token="token")
result = client.memory_turn(MemoryTurnRequest(
contextGraphId="my-context-graph",
markdown=artifact_to_markdown(title="My Note", content="...", artifact_type="research-note", artifact_id="art-001"),
layer="wm",
sessionUri=session_uri_for_collection("my-project"),
))
print(result.turn_uri)
Links
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agience_flare_dkg_integration-0.1.1.tar.gz.
File metadata
- Download URL: agience_flare_dkg_integration-0.1.1.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbe3e0dc218573aa286846d4db4f2101961e82a09a12bb78701138edfec3d25e
|
|
| MD5 |
be141c71af7117df5a8c2e1bb18365c7
|
|
| BLAKE2b-256 |
09b613de296cbf06a995069f6bee93c39747e24d6ef015dd1f3504245b45e5b2
|
Provenance
The following attestation bundles were made for agience_flare_dkg_integration-0.1.1.tar.gz:
Publisher:
publish.yml on Muffinman75/agience-flare-dkg-integration
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agience_flare_dkg_integration-0.1.1.tar.gz -
Subject digest:
fbe3e0dc218573aa286846d4db4f2101961e82a09a12bb78701138edfec3d25e - Sigstore transparency entry: 1462019406
- Sigstore integration time:
-
Permalink:
Muffinman75/agience-flare-dkg-integration@2e3dfa54b670641b375e167fada2abb608efe55d -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Muffinman75
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2e3dfa54b670641b375e167fada2abb608efe55d -
Trigger Event:
push
-
Statement type:
File details
Details for the file agience_flare_dkg_integration-0.1.1-py3-none-any.whl.
File metadata
- Download URL: agience_flare_dkg_integration-0.1.1-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cb17093666152f4f63d7f6a82c065aeb5d7ecfbf3ec4d127d8077155c5f68bb
|
|
| MD5 |
4a45b28e5b4f2db0566f60f32ebb6678
|
|
| BLAKE2b-256 |
5ea6a562a1673a5fbe08df8dc2528f7e8738975e43415c3d152e9044ab063b08
|
Provenance
The following attestation bundles were made for agience_flare_dkg_integration-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on Muffinman75/agience-flare-dkg-integration
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agience_flare_dkg_integration-0.1.1-py3-none-any.whl -
Subject digest:
7cb17093666152f4f63d7f6a82c065aeb5d7ecfbf3ec4d127d8077155c5f68bb - Sigstore transparency entry: 1462019417
- Sigstore integration time:
-
Permalink:
Muffinman75/agience-flare-dkg-integration@2e3dfa54b670641b375e167fada2abb608efe55d -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Muffinman75
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2e3dfa54b670641b375e167fada2abb608efe55d -
Trigger Event:
push
-
Statement type: