Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,29 @@ The playground is now running at `http://localhost:3000`.

---

## MCP Server

The repo also ships a thin MCP server under `mcp_server/` that reuses the shared runtime.

### Local stdio transport

```bash
MEMORY_MCP_TRANSPORT=stdio .venv/bin/python -m mcp_server
```

### Streamable HTTP transport

```bash
MEMORY_MCP_TRANSPORT=streamable-http \
MEMORY_MCP_HOST=127.0.0.1 \
MEMORY_MCP_PORT=8000 \
.venv/bin/python -m mcp_server
```

When running over HTTP, the MCP endpoint is mounted at `/mcp` and health is exposed at `/health`.

---

## CLI

```bash
Expand Down
10 changes: 10 additions & 0 deletions mcp_server/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
"""Shared MCP contracts and helpers for the memory runtime."""

from .server import (
MemoryMCPServer,
ServerConfig,
create_http_app,
create_mcp_server,
)
from .schemas import (
ContradictionCandidateModel,
ContradictionCheckModel,
Expand All @@ -24,6 +30,10 @@
)

__all__ = [
"MemoryMCPServer",
"ServerConfig",
"create_http_app",
"create_mcp_server",
"ContradictionCandidateModel",
"ContradictionCheckModel",
"ForgettingCycleRequest",
Expand Down
5 changes: 5 additions & 0 deletions mcp_server/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .server import main


if __name__ == "__main__":
main()
Loading
Loading