Package Exports
- @memstate/setup
- @memstate/setup/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@memstate/setup) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@memstate/setup
Set up Memstate AI persistent memory for your AI coding agent in seconds.
npx @memstate/setupDetects your AI agent environment (Claude Code, Cursor, Cline, Windsurf, Kilo Code, Claude Desktop) and installs the Memstate MCP server config and/or skill file automatically.
What it installs
MCP server config (recommended — default)
Writes the Memstate server stanza into your agent's MCP config file so tools like memstate_get, memstate_remember, and memstate_search are available in every session.
{
"mcpServers": {
"memstate": {
"command": "npx",
"args": ["-y", "@memstate/mcp"],
"env": { "MEMSTATE_API_KEY": "your_key_here" }
}
}
}Skill file (optional)
Installs SKILL.md to the correct location for skill-based agents (Claude Code, Kilo Code, Cursor rules, etc.) and appends workflow instructions to CLAUDE.md / .clinerules / etc.
Usage
npx @memstate/setup # Interactive setup (recommended)
npx @memstate/setup --mcp # MCP config only
npx @memstate/setup --skill # Skill file only
npx @memstate/setup --mcp --skill # Both
npx @memstate/setup --path ~/my/proj # Custom project root
npx @memstate/setup --yes # Accept all defaults
npx @memstate/setup --help # Full helpOptions
| Flag | Description |
|---|---|
--mcp |
Install MCP server config |
--skill |
Install SKILL.md |
--path <dir> |
Use a custom project root |
--global, -g |
Prefer global (user-level) install |
--project |
Prefer project-level install (default) |
--yes, -y |
Accept all defaults without prompting |
--help, -h |
Show help |
--version, -v |
Show version |
Get a free API key
memstate.ai/dashboard/api-keys — free to sign up, no credit card required.