@olivaresai/alma-mcp 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +6 -0
- package/README.md +145 -0
- package/dist/index.js +1548 -0
- package/package.json +39 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
Copyright (c) 2024-2026 OlivaresAI. All rights reserved.
|
|
2
|
+
|
|
3
|
+
This software is proprietary and confidential. Unauthorized copying, modification,
|
|
4
|
+
distribution, or use of this software, via any medium, is strictly prohibited.
|
|
5
|
+
|
|
6
|
+
For licensing inquiries, contact: hello@olivares.ai
|
package/README.md
ADDED
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# @olivaresai/alma-mcp
|
|
2
|
+
|
|
3
|
+
MCP (Model Context Protocol) server for [Alma](https://alma.olivares.ai) — persistent memory for AI agents. Gives any MCP-compatible client (Claude Desktop, Cursor, Windsurf, etc.) full access to Alma's memory, context, and chat capabilities.
|
|
4
|
+
|
|
5
|
+
## Setup
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @olivaresai/alma-mcp
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Claude Desktop / Cursor / Windsurf
|
|
12
|
+
|
|
13
|
+
Add to your MCP configuration (`claude_desktop_config.json` or equivalent):
|
|
14
|
+
|
|
15
|
+
```json
|
|
16
|
+
{
|
|
17
|
+
"mcpServers": {
|
|
18
|
+
"alma": {
|
|
19
|
+
"command": "alma-mcp",
|
|
20
|
+
"env": {
|
|
21
|
+
"ALMA_API_KEY": "your-api-key",
|
|
22
|
+
"ALMA_BASE_URL": "https://alma.olivares.ai/api/v1"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Environment Variables
|
|
30
|
+
|
|
31
|
+
| Variable | Required | Description |
|
|
32
|
+
|----------|----------|-------------|
|
|
33
|
+
| `ALMA_API_KEY` | Yes | Your Alma API key |
|
|
34
|
+
| `ALMA_BASE_URL` | No | API base URL (default: `https://alma.olivares.ai/api/v1`) |
|
|
35
|
+
| `ALMA_ENVIRONMENT_ID` | No | Default environment ID |
|
|
36
|
+
| `ALMA_DEBUG` | No | Enable debug logging |
|
|
37
|
+
|
|
38
|
+
## Tools (21)
|
|
39
|
+
|
|
40
|
+
### Context
|
|
41
|
+
|
|
42
|
+
| Tool | Description | Parameters |
|
|
43
|
+
|------|-------------|------------|
|
|
44
|
+
| `alma_assemble` | Build a complete system prompt from Alma — includes identity (soul), relevant memories, recent episodes, and learned procedures. Use this before sending a message to an LLM. | `message` (required), `environment_id`, `token_budget` |
|
|
45
|
+
| `alma_preview_context` | Preview the full system prompt that Alma would assemble. Shows exactly what the LLM sees. Useful for debugging. | `message` |
|
|
46
|
+
| `alma_focus` | Update Alma's active context focus. Tell Alma what you're currently working on so it can prioritize relevant memories. | `context` (required, max 2000 chars), `source` (web/extension/mcp/api) |
|
|
47
|
+
| `alma_continue_session` | Continue a session after context limit, new session, or error. Generates a summary and continuation prompt. | `conversation_text` (required), `reason` (required: context_limit/new_session/error), `environment_id` |
|
|
48
|
+
|
|
49
|
+
### Memory
|
|
50
|
+
|
|
51
|
+
| Tool | Description | Parameters |
|
|
52
|
+
|------|-------------|------------|
|
|
53
|
+
| `alma_remember` | Store a new memory in Alma. | `content` (required, max 50000 chars), `category` (general/preference/fact/decision/project), `importance` (0-1) |
|
|
54
|
+
| `alma_recall` | Search memories by keyword. | `query` (required), `limit` (1-50, default 10) |
|
|
55
|
+
| `alma_search` | Advanced memory search with filters — keyword, semantic, or hybrid mode with date ranges and importance thresholds. | `query` (required), `mode` (keyword/semantic/hybrid), `from`/`to` (ISO dates), `category`, `min_importance` (0-1), `limit` (1-50) |
|
|
56
|
+
| `alma_delete_memory` | Delete a specific memory by ID. | `id` (required) |
|
|
57
|
+
| `alma_extract` | Extract memories and episodes from a block of text (conversation, meeting notes, etc.). | `text` (required, 10-200K chars), `save` (default true), `environment_id` |
|
|
58
|
+
|
|
59
|
+
### Episodes
|
|
60
|
+
|
|
61
|
+
| Tool | Description | Parameters |
|
|
62
|
+
|------|-------------|------------|
|
|
63
|
+
| `alma_list_episodes` | List conversation episodes (summaries with topics and outcomes). | `limit` (1-100, default 20), `offset` |
|
|
64
|
+
| `alma_search_episodes` | Search episodes by topic. | `topic` (required), `limit` (1-50, default 10) |
|
|
65
|
+
| `alma_create_episode` | Create a new episode manually. | `summary` (required, max 5000 chars), `topics` (string array), `outcome` |
|
|
66
|
+
|
|
67
|
+
### Procedures
|
|
68
|
+
|
|
69
|
+
| Tool | Description | Parameters |
|
|
70
|
+
|------|-------------|------------|
|
|
71
|
+
| `alma_list_procedures` | List stored procedures (trigger-action rules). | `limit` (1-100, default 50), `offset` |
|
|
72
|
+
| `alma_create_procedure` | Create a new procedure. | `trigger_pattern` (required), `action` (required), `context` |
|
|
73
|
+
|
|
74
|
+
### Soul & Blocks
|
|
75
|
+
|
|
76
|
+
| Tool | Description | Parameters |
|
|
77
|
+
|------|-------------|------------|
|
|
78
|
+
| `alma_update_block` | Update a soul memory block (identity, rules, language, etc.). | `label` (required), `value` (required) |
|
|
79
|
+
|
|
80
|
+
### Chat
|
|
81
|
+
|
|
82
|
+
| Tool | Description | Parameters |
|
|
83
|
+
|------|-------------|------------|
|
|
84
|
+
| `alma_chat` | Send a message to Alma and get a response. Supports 3 Claude models. | `message` (required), `conversation_id`, `environment_id`, `model` |
|
|
85
|
+
|
|
86
|
+
### Images
|
|
87
|
+
|
|
88
|
+
| Tool | Description | Parameters |
|
|
89
|
+
|------|-------------|------------|
|
|
90
|
+
| `alma_generate_image` | Generate an image via Alma's Image Studio (Replicate Flux / Leonardo). Requires a paid plan. | `prompt` (required), `style` (natural/vivid/artistic), `size` (square/landscape/portrait) |
|
|
91
|
+
|
|
92
|
+
### Memory Management
|
|
93
|
+
|
|
94
|
+
| Tool | Description | Parameters |
|
|
95
|
+
|------|-------------|------------|
|
|
96
|
+
| `alma_update_memory` | Update an existing memory's content, category, or importance. | `id` (required), `content`, `category`, `importance` (0-1) |
|
|
97
|
+
|
|
98
|
+
### Environments
|
|
99
|
+
|
|
100
|
+
| Tool | Description | Parameters |
|
|
101
|
+
|------|-------------|------------|
|
|
102
|
+
| `alma_list_environments` | List all available environments. | _(none)_ |
|
|
103
|
+
| `alma_create_environment` | Create a new environment. | `name` (required, max 100 chars) |
|
|
104
|
+
|
|
105
|
+
### Data
|
|
106
|
+
|
|
107
|
+
| Tool | Description | Parameters |
|
|
108
|
+
|------|-------------|------------|
|
|
109
|
+
| `alma_export` | Export data from Alma (conversations, memories, soul, or all). | `type` (required: conversation/memories/soul/all), `format` (md/json/html), `conversation_id` |
|
|
110
|
+
|
|
111
|
+
## Resources (9)
|
|
112
|
+
|
|
113
|
+
| Resource URI | Description |
|
|
114
|
+
|-------------|-------------|
|
|
115
|
+
| `alma://soul` | Current soul configuration (identity, personality, tone, rules) |
|
|
116
|
+
| `alma://memories` | Recent memories (last 50) |
|
|
117
|
+
| `alma://memories/{category}` | Memories filtered by category (general, preference, fact, decision, project) |
|
|
118
|
+
| `alma://environments` | All available environments |
|
|
119
|
+
| `alma://conversations` | Recent chat conversations (last 20) |
|
|
120
|
+
| `alma://budget` | Current token budget status (usage, remaining, purchased) |
|
|
121
|
+
| `alma://blocks` | All memory blocks (identity, worldview, style, rules, etc.) |
|
|
122
|
+
| `alma://episodes` | Recent episodes (last 20) |
|
|
123
|
+
| `alma://procedures` | All stored procedures (limit 50) |
|
|
124
|
+
|
|
125
|
+
## Supported Models
|
|
126
|
+
|
|
127
|
+
3 models (Anthropic Claude):
|
|
128
|
+
|
|
129
|
+
| Model | Tier | Best For |
|
|
130
|
+
|-------|------|----------|
|
|
131
|
+
| `claude-haiku` | Normal | Fast responses, simple tasks |
|
|
132
|
+
| `claude-sonnet` | Advanced | Balanced quality and speed |
|
|
133
|
+
| `claude-opus` | Complex | Highest quality, deep reasoning |
|
|
134
|
+
|
|
135
|
+
## Links
|
|
136
|
+
|
|
137
|
+
- [Alma Platform](https://alma.olivares.ai)
|
|
138
|
+
- [Documentation](https://alma.olivares.ai/docs)
|
|
139
|
+
- [SDK](https://www.npmjs.com/package/@olivaresai/alma-sdk)
|
|
140
|
+
- [VSCode Extension](https://marketplace.visualstudio.com/items?itemName=olivares.alma-vscode)
|
|
141
|
+
- [OlivaresAI](https://olivares.ai)
|
|
142
|
+
|
|
143
|
+
## License
|
|
144
|
+
|
|
145
|
+
Proprietary. See [LICENSE](https://github.com/olivaresai/alma/blob/main/LICENSE) for details.
|