Skip to main content

Durable MCP tool adapter for the MemoFlow Python SDK

Project description

MemoFlow MCP adapter for Python

Provider-library-independent MCP tool adapter for server-backed MemoFlow activities. It reserves tool budget before dispatch, records immutable invocation and tool-effect transitions, injects a stable idempotency key, and restores settled results from protected durable output before any new budget or network effect.

adapter = McpToolAdapter(client)
result = await adapter.call_tool(McpToolRun(
    server=McpServer("notes", version="1"),
    tool=McpTool("save_note", version="1", arguments={"note": "hello"}),
    budget=AiBudgetEstimate(total_tokens=0, tool_calls=1),
    recorded_replay_key="save-note-turn-1",
))

The injected client is structural and must provide an async call_tool method. This keeps the durability boundary independent of any particular MCP transport package.

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

memoflow_mcp-0.1.0.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

memoflow_mcp-0.1.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file memoflow_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: memoflow_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for memoflow_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8268bcfca9a1969cdd40a536ac1f557909d546dbdb4cc72964fa9ed147318f58
MD5 b5f1f1a0541172f795774d63f4362e4f
BLAKE2b-256 2a1630ec181e041cfef0b52a0e4326bf9f0442a61d28140ff3aeea64728edcf1

See more details on using hashes here.

Provenance

The following attestation bundles were made for memoflow_mcp-0.1.0.tar.gz:

Publisher: publish-python.yml on evigasoft/memoflow

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

File details

Details for the file memoflow_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: memoflow_mcp-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for memoflow_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46c569c6d3d99adeb9b1d9259cf13ef84503030ed1f711c89fa1f6e07124dfb8
MD5 5f35707f57c214f8fd72a54bda790072
BLAKE2b-256 67b21a22404bb411c4492bf2d2db19ca31d7b06d329b9d928c77d7e87e51dcd7

See more details on using hashes here.

Provenance

The following attestation bundles were made for memoflow_mcp-0.1.0-py3-none-any.whl:

Publisher: publish-python.yml on evigasoft/memoflow

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

Supported by

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