Skip to main content

MCP server for prompt rewriting and memory recording.

Project description

DMCP

This repository contains the Python package dmcp-server, which installs the dmcp-server command.

The MCP server exposes two tools:

  • augument: rewrites a prompt with relevant history and knowledge from the SQLite memory database.
  • rewrite: alias for augument.
  • prompt: alias for augument.
  • record: records a prompt/response pair and stores extracted knowledge in the SQLite memory database.

Create or update the local development environment:

uv sync

Validate the current API route config:

uv run dmcp-server validate-config dmcp-api.json

Run the MCP server over stdio:

uv run dmcp-server serve --db .dmcp/memory.sqlite3

Run it over Streamable HTTP:

uv run dmcp-server serve --transport http --host 127.0.0.1 --port 8000 --db .dmcp/memory.sqlite3

Run the curl-based HTTP smoke test:

make curl-test

Publish a built package to TestPyPI:

cp .env.example .env
# edit .env and set UV_PUBLISH_TOKEN
make publish-test

Publish a built package to PyPI:

make publish

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

dmcp_server-0.1.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

dmcp_server-0.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: dmcp_server-0.1.0.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.3

File hashes

Hashes for dmcp_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6ac1b33ed5c03405fe7bf85512d1f0f5bcbd3d19921ca077d1822caa0e9bed34
MD5 9efdab7625df86fbaf9992464e70d688
BLAKE2b-256 7a911ad139720e1063d77f9d1b06d8f073923ad0eaf610e7646d0b4359894dcd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for dmcp_server-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e39361f95cd6ab61e555e742ae3c66b9d05699be03ad81382e6f3e2b18eb09ec
MD5 41deeae9e8c9fc214ecdb843621977c3
BLAKE2b-256 a73cf871e15f53132acc65abee50edc1df88d8439afd1869fef28abac32dadde

See more details on using hashes here.

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