Skip to main content

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.

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

polypack_mcp-0.1.2.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

polypack_mcp-0.1.2-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file polypack_mcp-0.1.2.tar.gz.

File metadata

  • Download URL: polypack_mcp-0.1.2.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for polypack_mcp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c3c5c2725eba54841a3e25fe5e2b0f7037860c2a0e859fd1ae90e172877d4c90
MD5 5508c49840c13f5dc0c74068c2e2d36f
BLAKE2b-256 22d6e4e40cdc14a90c1170fb49ca3d2201372c5e6091f2eea8ba356764fbb79e

See more details on using hashes here.

Provenance

The following attestation bundles were made for polypack_mcp-0.1.2.tar.gz:

Publisher: release.yml on imattau/polypack-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file polypack_mcp-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: polypack_mcp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for polypack_mcp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4d4dce919957826ec24b9f6d63638e0d18e79e0b28ffab76f7c7943922a49e8a
MD5 04e9699bcd32023ffd178b97b62383e4
BLAKE2b-256 81e09f9cbd2800fc229126dcfaee3487b773a2a83edec5b08ac6d17c6db8b8af

See more details on using hashes here.

Provenance

The following attestation bundles were made for polypack_mcp-0.1.2-py3-none-any.whl:

Publisher: release.yml on imattau/polypack-mcp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.16

2 files

0.1.15

2 files

0.1.14

2 files

0.1.13

2 files

0.1.12

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

This release

0.1.2 This release

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page