polypack-mcp
An MCP server that exposes Polypack as persistent adaptive memory. MCP-specific tools live here; the database remains an independent dependency.
Run
pip install -e '.[polypack]'
polypack-mcp --store ./polypack-data
The server exposes eight focused tools: memory_store, memory_recall,
memory_context, memory_feedback, memory_suppress, memory_supersede,
memory_consolidate, and graph_query. It also publishes context, active-memory,
schema, and stats resources under polypack://.
Retrieval tools return {items, metadata}. Metadata includes candidate and
excluded counts, context matches, score components, fallback behavior, the
retrieval version, and selection statistics. memory_context uses estimated
tokens (ceil(content characters / 4), minimum one) as its token_budget.
An item is never returned if it would exceed the remaining budget; budgets less
than or equal to zero are rejected. Context is a soft preference: matching
memories are preferred and unscoped global memories may be used as fallback.
Pass strict_context: true for isolation. An empty isolated result reports
reason: "no_context_match" and the searched context.
Feedback is activation feedback: useful=true reinforces a memory and
useful=false provides negative retrieval feedback. Responses expose activation
before and after plus whether learned weights changed. Supersession and
consolidation materialize SUPERSEDES, SUPERSEDED_BY, and
CONSOLIDATED_FROM graph edges.
Pass --store to open a durable Polypack directory. Without it, the server uses
the in-memory reference backend, which is convenient for smoke tests.
The polypack extra requires polypack-db>=3.2.0 and uses its native
ActivationEngine.working_memory selector for context assembly.
Development
pip install -e '.[dev]'
pytest
The test suite includes an MCP client/server protocol smoke test covering tool discovery, memory storage, recall, and resource reads.
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 polypack_mcp-0.1.3.tar.gz.
File metadata
- Download URL: polypack_mcp-0.1.3.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94b81710a20cc6203bec450a9a968c666b2ef45561657958ccf5abe69364948f
|
|
| MD5 |
6f17856a5ea63de6aa0e92cd0a513643
|
|
| BLAKE2b-256 |
01363a9f25aac4e9c7581c3857a4c4d0eebb82315043560c97365dcaea4400b7
|
Provenance
The following attestation bundles were made for polypack_mcp-0.1.3.tar.gz:
Publisher:
release.yml on imattau/polypack-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polypack_mcp-0.1.3.tar.gz -
Subject digest:
94b81710a20cc6203bec450a9a968c666b2ef45561657958ccf5abe69364948f - Sigstore transparency entry: 2564207614
- Sigstore integration time:
-
Permalink:
imattau/polypack-mcp@343e5ed4615166b82cf151a2f06c20dda625d13d -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/imattau
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@343e5ed4615166b82cf151a2f06c20dda625d13d -
Trigger Event:
push
-
Statement type:
File details
Details for the file polypack_mcp-0.1.3-py3-none-any.whl.
File metadata
- Download URL: polypack_mcp-0.1.3-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
056af30b392363a677a4e0ae87adefe161e39ee5a42a2563eddca0e9ea7d00ca
|
|
| MD5 |
6de58686bdc3702823345dfaf95bd582
|
|
| BLAKE2b-256 |
688dd6298607f2d0186f32fc9e58042d1b9d58abce08b852aff261bc1c741421
|
Provenance
The following attestation bundles were made for polypack_mcp-0.1.3-py3-none-any.whl:
Publisher:
release.yml on imattau/polypack-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
polypack_mcp-0.1.3-py3-none-any.whl -
Subject digest:
056af30b392363a677a4e0ae87adefe161e39ee5a42a2563eddca0e9ea7d00ca - Sigstore transparency entry: 2564207843
- Sigstore integration time:
-
Permalink:
imattau/polypack-mcp@343e5ed4615166b82cf151a2f06c20dda625d13d -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/imattau
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@343e5ed4615166b82cf151a2f06c20dda625d13d -
Trigger Event:
push
-
Statement type: