memory-anywhere-server 0.0.0-stage → 0.5.1
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 +21 -0
- package/README.md +5 -2
- package/config/models.json +37 -0
- package/config/vendors.json +205 -0
- package/dist/server.mjs +12598 -0
- package/migrations/0001_init.mjs +41 -0
- package/migrations/0001_init.sql +551 -0
- package/migrations/0002_aws_mode.sql +31 -0
- package/migrations/0003_import.sql +12 -0
- package/migrations/0004_import_budget.sql +8 -0
- package/package.json +42 -4
- package/seed/attributes.json +574 -0
- package/seed/sections.json +65 -0
- package/web/assets/app.css +291 -0
- package/web/assets/app.js +322 -0
- package/web/templates/admin-apps.eta +43 -0
- package/web/templates/admin-changes.eta +10 -0
- package/web/templates/admin-empty.eta +3 -0
- package/web/templates/admin-exports.eta +15 -0
- package/web/templates/admin-home.eta +24 -0
- package/web/templates/admin-memories.eta +17 -0
- package/web/templates/admin-memory.eta +44 -0
- package/web/templates/admin-observations.eta +13 -0
- package/web/templates/admin-repos.eta +10 -0
- package/web/templates/admin-reviews.eta +31 -0
- package/web/templates/admin-sections.eta +22 -0
- package/web/templates/admin-system.eta +22 -0
- package/web/templates/admin.eta +6 -0
- package/web/templates/approve.eta +26 -0
- package/web/templates/consent-code.eta +8 -0
- package/web/templates/consent.eta +14 -0
- package/web/templates/error.eta +3 -0
- package/web/templates/layout.eta +16 -0
- package/web/templates/recover.eta +9 -0
- package/web/templates/setup.eta +20 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 the memory-anywhere authors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# memory-anywhere-server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The memory-anywhere store for local mode. You do not install it yourself: `mema init --local`
|
|
4
|
+
(from the `memory-anywhere` package) installs the version that matches your client and starts it.
|
|
5
|
+
|
|
6
|
+
Documentation: https://github.com/raiden-02/memory-anywhere
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "Pinned embedding model (ADR-0005). The server downloads these exact files on demand and refuses any whose SHA-256 differs.",
|
|
3
|
+
"active": "embeddinggemma-300m-q4",
|
|
4
|
+
"models": {
|
|
5
|
+
"embeddinggemma-300m-q4": {
|
|
6
|
+
"repo": "onnx-community/embeddinggemma-300m-ONNX",
|
|
7
|
+
"revision": "5090578d9565bb06545b4552f76e6bc2c93e4a66",
|
|
8
|
+
"files": {
|
|
9
|
+
"onnx/model_q4.onnx": {
|
|
10
|
+
"sha256": "ad1dfee81a70f7944b9b9d1cc6e48075b832881cf33fab2f2b248be78f3f0043",
|
|
11
|
+
"url": "https://huggingface.co/onnx-community/embeddinggemma-300m-ONNX/resolve/5090578d9565bb06545b4552f76e6bc2c93e4a66/onnx/model_q4.onnx"
|
|
12
|
+
},
|
|
13
|
+
"onnx/model_q4.onnx_data": {
|
|
14
|
+
"sha256": "599962c3143b040de2dd05e5975be3e9091dd067cacc6a8f7186e3203bab9e02",
|
|
15
|
+
"url": "https://huggingface.co/onnx-community/embeddinggemma-300m-ONNX/resolve/5090578d9565bb06545b4552f76e6bc2c93e4a66/onnx/model_q4.onnx_data"
|
|
16
|
+
},
|
|
17
|
+
"tokenizer.json": {
|
|
18
|
+
"sha256": "4dda02faaf32bc91031dc8c88457ac272b00c1016cc679757d1c441b248b9c47",
|
|
19
|
+
"url": "https://huggingface.co/onnx-community/embeddinggemma-300m-ONNX/resolve/5090578d9565bb06545b4552f76e6bc2c93e4a66/tokenizer.json"
|
|
20
|
+
},
|
|
21
|
+
"tokenizer_config.json": {
|
|
22
|
+
"sha256": "3ca953eea6c3c9fcda9cf3df22949ff18b216f7c74bd6459230f3f1013953f3a",
|
|
23
|
+
"url": "https://huggingface.co/onnx-community/embeddinggemma-300m-ONNX/resolve/5090578d9565bb06545b4552f76e6bc2c93e4a66/tokenizer_config.json"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"runtime": "onnxruntime-node 1.31.1 + @huggingface/tokenizers 0.2.0",
|
|
27
|
+
"dtype": "q4",
|
|
28
|
+
"dims": 768,
|
|
29
|
+
"pooling": "sentence_embedding output of the ONNX export (mean pooling, dense layers and L2 normalisation inside the graph)",
|
|
30
|
+
"max_tokens": 512,
|
|
31
|
+
"query_prefix": "task: search result | query: ",
|
|
32
|
+
"document_prefix": "title: none | text: ",
|
|
33
|
+
"licence": "Gemma Terms of Use; the client shows the terms and a notice before the on-demand download",
|
|
34
|
+
"decided": "ADR-0005"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "Vendor values, each measured against the vendor's own app. auth-and-security.md §4 reads `oauth`; clients.md and `mema init` read `setup` and `tools`. Each entry names the ADR holding its evidence. Regexes are JavaScript source strings, anchored.",
|
|
3
|
+
"chat": {
|
|
4
|
+
"claude": {
|
|
5
|
+
"adr": "ADR-0103",
|
|
6
|
+
"oauth": {
|
|
7
|
+
"method": "static",
|
|
8
|
+
"fallbacks": [],
|
|
9
|
+
"token_endpoint_auth_method": "client_secret_basic",
|
|
10
|
+
"redirect_uris": ["https://claude.ai/api/mcp/auth_callback"],
|
|
11
|
+
"cimd_client_id_patterns": [],
|
|
12
|
+
"scopes_requested": "memory.read memory.write offline_access",
|
|
13
|
+
"discovery": "not recorded (static client)"
|
|
14
|
+
},
|
|
15
|
+
"mcp": {
|
|
16
|
+
"protocol": "2026-07-28 (server/discover)",
|
|
17
|
+
"server_instructions_reach_model": false,
|
|
18
|
+
"elicitation": "verified-possible",
|
|
19
|
+
"tool_loading": "account-wide: Settings > Capabilities > Advanced > Connectors in new chats"
|
|
20
|
+
},
|
|
21
|
+
"setup": {
|
|
22
|
+
"add_server": "claude.ai > Customize > Connectors > Add custom connector; Advanced settings: OAuth Client ID and Client Secret",
|
|
23
|
+
"tool_permissions": "connector > Tool permissions: Needs approval | Always allow | Blocked",
|
|
24
|
+
"custom_instruction": {
|
|
25
|
+
"path": "Settings > Your Claude > Instructions",
|
|
26
|
+
"max_chars": null
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"surfaces": {
|
|
30
|
+
"web": "works",
|
|
31
|
+
"desktop_windows": "works",
|
|
32
|
+
"claude_code": "connector appears automatically (deny it: ADR-0105)",
|
|
33
|
+
"mobile": "works (phone app; connector added on the web)"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"chatgpt": {
|
|
37
|
+
"adr": "ADR-0101, ADR-0102, ADR-0019",
|
|
38
|
+
"oauth": {
|
|
39
|
+
"method": "static",
|
|
40
|
+
"fallbacks": ["cimd", "dcr"],
|
|
41
|
+
"token_endpoint_auth_method": "client_secret_basic",
|
|
42
|
+
"token_endpoint_auth_methods_offered": ["none", "client_secret_basic", "client_secret_post"],
|
|
43
|
+
"redirect_uris": ["https://chatgpt.com/connector_platform_oauth_redirect"],
|
|
44
|
+
"cimd_client_id_patterns": ["^https://chatgpt\\.com/oauth/client\\.json$"],
|
|
45
|
+
"scopes_requested": "memory.read memory.write",
|
|
46
|
+
"omits_offline_access": true,
|
|
47
|
+
"discovery": "oauth-protected-resource, then /.well-known/openid-configuration"
|
|
48
|
+
},
|
|
49
|
+
"mcp": {
|
|
50
|
+
"protocol": "2026-07-28 (server/discover)",
|
|
51
|
+
"server_instructions_reach_model": false,
|
|
52
|
+
"elicitation": "none",
|
|
53
|
+
"write_approval": "ChatGPT approval card on every save (Always allow available)"
|
|
54
|
+
},
|
|
55
|
+
"setup": {
|
|
56
|
+
"add_server": "chatgpt.com/plugins > Add > Add custom MCP server; Authentication OAuth; Advanced OAuth settings > User-Defined OAuth Client",
|
|
57
|
+
"refresh_tools": "plugin settings > Refresh tools (after a server tool change)",
|
|
58
|
+
"custom_instruction": {
|
|
59
|
+
"path": "Settings > Personalization > Custom instructions > ChatGPT instructions",
|
|
60
|
+
"max_chars": null
|
|
61
|
+
},
|
|
62
|
+
"tunnel": "Connection > Tunnel (tunnel id) is offered on Plus"
|
|
63
|
+
},
|
|
64
|
+
"surfaces": {
|
|
65
|
+
"web_pc": "works (read and write)",
|
|
66
|
+
"desktop": "works (Windows app, recall)",
|
|
67
|
+
"phone_app": "works (recall and save)",
|
|
68
|
+
"phone_browser": "same web app as web_pc (not tested separately)",
|
|
69
|
+
"codex": "appears as codex_apps tools (ADR-0110)"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
"gemini": {
|
|
73
|
+
"adr": "ADR-0107",
|
|
74
|
+
"oauth": {
|
|
75
|
+
"method": "static",
|
|
76
|
+
"fallbacks": ["dcr"],
|
|
77
|
+
"token_endpoint_auth_method": "client_secret_basic",
|
|
78
|
+
"redirect_uri_rule": {
|
|
79
|
+
"prefix": "https://oauth-redirect.googleusercontent.com/r/user_bound_custom-mcp-",
|
|
80
|
+
"rest": "<Google user id>-<this server's host with dots as underscores>, or an opaque id of 16 to 64 hex digits",
|
|
81
|
+
"regex_template": "^https://oauth-redirect\\.googleusercontent\\.com/r/user_bound_custom-mcp-(?:[0-9]{1,32}-{host_underscored}|[0-9a-f]{16,64})$"
|
|
82
|
+
},
|
|
83
|
+
"refresh_rotation": "fixed (rotate also tested and works)",
|
|
84
|
+
"scopes_requested": "memory.read memory.write",
|
|
85
|
+
"discovery": "oauth-protected-resource, then /.well-known/openid-configuration"
|
|
86
|
+
},
|
|
87
|
+
"mcp": {
|
|
88
|
+
"protocol": "2025-11-25 (initialize)",
|
|
89
|
+
"server_instructions_reach_model": false,
|
|
90
|
+
"elicitation": "none",
|
|
91
|
+
"models_that_call_tools": ["3.1 Pro"],
|
|
92
|
+
"write_approval": "Gemini approval card on every tool call"
|
|
93
|
+
},
|
|
94
|
+
"setup": {
|
|
95
|
+
"add_server": "gemini.google.com > Settings > Developer Mode > Choose an app > Create new > Connect to an MCP server; Additional settings: Client ID, Client secret; finish with Save your custom app > Connect",
|
|
96
|
+
"custom_instruction": {
|
|
97
|
+
"path": "Settings > Personal Intelligence > Instructions for Gemini (gemini.google.com/saved-info)",
|
|
98
|
+
"max_chars": 3000,
|
|
99
|
+
"rejects_tool_names": true
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"surfaces": {
|
|
103
|
+
"web": "works (Pro, Developer Mode)"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"grok": {
|
|
107
|
+
"adr": "ADR-0108",
|
|
108
|
+
"oauth": {
|
|
109
|
+
"method": "dcr",
|
|
110
|
+
"fallbacks": [],
|
|
111
|
+
"token_endpoint_auth_method": "none",
|
|
112
|
+
"redirect_uris": ["https://grok.com/connectors-oauth-exchange-code/"],
|
|
113
|
+
"dcr_request": {
|
|
114
|
+
"client_name": "Grok",
|
|
115
|
+
"grant_types": ["authorization_code", "refresh_token"],
|
|
116
|
+
"application_type": "absent (defaults to web)"
|
|
117
|
+
},
|
|
118
|
+
"scopes_requested": "memory.read memory.write memory.capture",
|
|
119
|
+
"discovery": "oauth-protected-resource, then /.well-known/openid-configuration"
|
|
120
|
+
},
|
|
121
|
+
"mcp": {
|
|
122
|
+
"protocol": "2025-11-25 (initialize)",
|
|
123
|
+
"server_instructions_reach_model": false,
|
|
124
|
+
"elicitation": "none",
|
|
125
|
+
"write_approval": "none",
|
|
126
|
+
"tool_discovery": "search_connected_tools (on demand)"
|
|
127
|
+
},
|
|
128
|
+
"setup": {
|
|
129
|
+
"add_server": "grok.com/connectors > New Connector > Custom: Name and Server URL only; authorize in the popup",
|
|
130
|
+
"custom_instruction": {
|
|
131
|
+
"path": "Settings > Customize > Custom > How should Grok behave?",
|
|
132
|
+
"max_chars": null,
|
|
133
|
+
"needed": false
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"surfaces": {
|
|
137
|
+
"web": "works",
|
|
138
|
+
"mobile": "works (phone app; connector added on grok.com)"
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"coding": {
|
|
143
|
+
"claude-code": {
|
|
144
|
+
"adr": "ADR-0105, ADR-0109, ADR-0110",
|
|
145
|
+
"version_tested": "2.1.319",
|
|
146
|
+
"install": "plugin",
|
|
147
|
+
"plugin_loads": {
|
|
148
|
+
"mcp": true,
|
|
149
|
+
"hooks": true,
|
|
150
|
+
"settings_permissions_deny": false
|
|
151
|
+
},
|
|
152
|
+
"always_load": {
|
|
153
|
+
"mcp_json_alwaysLoad": true,
|
|
154
|
+
"tool_meta_anthropic_alwaysLoad": true
|
|
155
|
+
},
|
|
156
|
+
"server_instructions_reach_model": true,
|
|
157
|
+
"disable_claude_ai_copy": {
|
|
158
|
+
"settings_key": "deniedMcpServers",
|
|
159
|
+
"entry": {
|
|
160
|
+
"serverName": "claude.ai <connector name>"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"hooks": {
|
|
164
|
+
"session_start": "SessionStart",
|
|
165
|
+
"prompt": "UserPromptSubmit"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
"codex": {
|
|
169
|
+
"adr": "ADR-0109, ADR-0110",
|
|
170
|
+
"version_tested": "0.167.0",
|
|
171
|
+
"install": "plugin from a local marketplace (~/.agents/plugins/marketplace.json)",
|
|
172
|
+
"plugin_manifest": ".codex-plugin/plugin.json with \"mcpServers\": \"./.mcp.json\" and inline \"hooks\"",
|
|
173
|
+
"plugin_loads": {
|
|
174
|
+
"mcp": true,
|
|
175
|
+
"hooks": "after owner trust"
|
|
176
|
+
},
|
|
177
|
+
"hook_trust": "config.toml [hooks.state.\"<plugin>@<marketplace>:plugin.json#hooks[0]:<event>:0:0\"] trusted_hash; untrusted hooks are skipped silently",
|
|
178
|
+
"server_instructions_reach_model": true,
|
|
179
|
+
"session_start_stdout": ["hookSpecificOutput.additionalContext JSON", "plain text"],
|
|
180
|
+
"hooks": {
|
|
181
|
+
"session_start": "SessionStart",
|
|
182
|
+
"prompt": "UserPromptSubmit"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
"cursor": {
|
|
186
|
+
"adr": "ADR-0109, ADR-0110",
|
|
187
|
+
"version_tested": "3.29.9",
|
|
188
|
+
"install": "plugin (MCP server and alwaysApply rule) + ~/.cursor/hooks.json written by mema init",
|
|
189
|
+
"plugin_loads": {
|
|
190
|
+
"mcp": true,
|
|
191
|
+
"hooks": false,
|
|
192
|
+
"rules_every_workspace": true
|
|
193
|
+
},
|
|
194
|
+
"hook_command": "node \"<abs>\\memory-anywhere.mjs\" hook cursor <event>; <abs> must not be under %LOCALAPPDATA%",
|
|
195
|
+
"payload_cwd": "workspace_roots[0] (URL-style /C:/...), else CURSOR_PROJECT_DIR",
|
|
196
|
+
"event_order_fixed": false,
|
|
197
|
+
"server_instructions_reach_model": true,
|
|
198
|
+
"hooks": {
|
|
199
|
+
"session_start": "sessionStart",
|
|
200
|
+
"prompt": "beforeSubmitPrompt"
|
|
201
|
+
},
|
|
202
|
+
"mcp_metadata_files": "~/.cursor/projects/<workspace>/mcps/<server>/{INSTRUCTIONS.md,SERVER_METADATA.json,tools/*.json}; tool descriptions fetched on demand with GetDynamicTools"
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}
|