Skip to content

A plugin that let you save & retrieve memory, backed by SQLite.

License

Notifications You must be signed in to change notification settings

hyper-mcp-rs/memory-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

memory

A plugin that let you save & retrieve memory, backed by SQLite.

Usage

Call with:

{
  "plugins": [
    // {},
    {
        "name": "memory",
        "path": "/home/anh/Code/hyper-mcp/examples/plugins/v1/memory/target/wasm32-wasip1/release/plugin.wasm",
        "runtime_config": {
          "allowed_paths": ["/tmp"],
          "env_vars": {
            "db_path": "/tmp/memory.db"
          }
        }
      }
  ]
}

How to build

This plugin requires you to have wasi-sdk installed.

export WASI_SDK_PATH=`<wasi-sdk-path>` # in my case, it's /opt/wasi-sdk
export CC_wasm32_wasip1="${WASI_SDK_PATH}/bin/clang --sysroot=${WASI_SDK_PATH}/share/wasi-sysroot"
cargo build --release --target wasm32-wasip1

See Dockerfile for reference.

About

A plugin that let you save & retrieve memory, backed by SQLite.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages