memoryintelligence-mcp 0.2.0__tar.gz → 0.2.2__tar.gz

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.
Files changed (25) hide show
  1. {memoryintelligence_mcp-0.2.0 → memoryintelligence_mcp-0.2.2}/CHANGELOG.md +34 -0
  2. memoryintelligence_mcp-0.2.2/LICENSE +204 -0
  3. memoryintelligence_mcp-0.2.2/PKG-INFO +237 -0
  4. memoryintelligence_mcp-0.2.2/README.md +198 -0
  5. {memoryintelligence_mcp-0.2.0 → memoryintelligence_mcp-0.2.2}/pyproject.toml +10 -3
  6. {memoryintelligence_mcp-0.2.0 → memoryintelligence_mcp-0.2.2}/src/mi_mcp/__init__.py +1 -1
  7. {memoryintelligence_mcp-0.2.0 → memoryintelligence_mcp-0.2.2}/src/mi_mcp/cli.py +53 -11
  8. {memoryintelligence_mcp-0.2.0 → memoryintelligence_mcp-0.2.2}/src/mi_mcp/client.py +7 -2
  9. {memoryintelligence_mcp-0.2.0 → memoryintelligence_mcp-0.2.2}/src/mi_mcp/keys.py +1 -1
  10. {memoryintelligence_mcp-0.2.0 → memoryintelligence_mcp-0.2.2}/src/mi_mcp/paths.py +1 -1
  11. {memoryintelligence_mcp-0.2.0 → memoryintelligence_mcp-0.2.2}/src/mi_mcp/umo_format.py +8 -5
  12. memoryintelligence_mcp-0.2.0/LICENSE +0 -21
  13. memoryintelligence_mcp-0.2.0/PKG-INFO +0 -407
  14. memoryintelligence_mcp-0.2.0/README.md +0 -368
  15. {memoryintelligence_mcp-0.2.0 → memoryintelligence_mcp-0.2.2}/.gitignore +0 -0
  16. {memoryintelligence_mcp-0.2.0 → memoryintelligence_mcp-0.2.2}/CONTRIBUTING.md +0 -0
  17. {memoryintelligence_mcp-0.2.0 → memoryintelligence_mcp-0.2.2}/src/mi_mcp/__main__.py +0 -0
  18. {memoryintelligence_mcp-0.2.0 → memoryintelligence_mcp-0.2.2}/src/mi_mcp/config.py +0 -0
  19. {memoryintelligence_mcp-0.2.0 → memoryintelligence_mcp-0.2.2}/src/mi_mcp/embedder.py +0 -0
  20. {memoryintelligence_mcp-0.2.0 → memoryintelligence_mcp-0.2.2}/src/mi_mcp/indexer.py +0 -0
  21. {memoryintelligence_mcp-0.2.0 → memoryintelligence_mcp-0.2.2}/src/mi_mcp/local_index.py +0 -0
  22. {memoryintelligence_mcp-0.2.0 → memoryintelligence_mcp-0.2.2}/src/mi_mcp/localreads.py +0 -0
  23. {memoryintelligence_mcp-0.2.0 → memoryintelligence_mcp-0.2.2}/src/mi_mcp/scrub.py +0 -0
  24. {memoryintelligence_mcp-0.2.0 → memoryintelligence_mcp-0.2.2}/src/mi_mcp/server.py +0 -0
  25. {memoryintelligence_mcp-0.2.0 → memoryintelligence_mcp-0.2.2}/src/mi_mcp/vault.py +0 -0
@@ -3,6 +3,40 @@
3
3
  All notable changes to `memoryintelligence-mcp` are documented here.
4
4
  The format follows [Keep a Changelog](https://keepachangelog.com/); this project uses [Semantic Versioning](https://semver.org/).
5
5
 
6
+ ## [0.2.2] — 2026-07-18
7
+
8
+ ### Fixed
9
+ - `mi_account` now works. It called the JWT-only `/v1/accounts/me` and always
10
+ returned 401 under the API-key auth the MCP server uses; repointed to the
11
+ API-key endpoint `GET /v1/account`.
12
+ - Set `asyncio_mode = auto` so the bare-`async` tests run (CI was red).
13
+
14
+ ### Changed
15
+ - Relicensed MIT → **Apache-2.0**.
16
+
17
+ ## [0.2.1] — 2026-07-05
18
+
19
+ ### Fixed — one shared vault with the MemorySpace Desktop (MI#653)
20
+ `0.2.0` noted that `mi-mcp` defaulted its local `.umo` vault to `~/MemoryIntelligence`
21
+ while the MemorySpace Desktop app reads `~/Somewhere` — two separate folders, so a
22
+ memory captured or backfilled through `mi-mcp` never showed up in the Desktop app, and
23
+ told you to point `MI_VAULT` there by hand. This release makes that automatic.
24
+
25
+ - **`mi-mcp wire` / `setup` now point the vault at `~/Somewhere`** — they write
26
+ `export MI_VAULT="$HOME/Somewhere"` into the launcher (`run-mi-mcp.sh`), so `mi-mcp`
27
+ and the Desktop resolve **one** vault out of the box. It's a default only: it's
28
+ guarded so an explicit `MI_VAULT` you set yourself (env or MCP config) still wins.
29
+ - **`paths.py`'s default is unchanged** (`~/MemoryIntelligence`) — existing installs are
30
+ never silently moved; the unification happens the next time you run `wire`.
31
+ - **`mi-mcp doctor` reports the effective vault** and whether it matches the Desktop's,
32
+ reading the value the launcher will actually use — so the check goes green once wired.
33
+
34
+ **To pick this up:** upgrade, then **re-run `mi-mcp wire`** (upgrading alone doesn't
35
+ rewrite the launcher), and restart Claude Desktop. `mi-mcp doctor` should show the vault
36
+ as `~/Somewhere`. Files already backfilled into `~/MemoryIntelligence` by `0.2.0` stay
37
+ where they are — move them into `~/Somewhere` (or re-run `backfill`) if you want them in
38
+ the app; `doctor` flags the mismatch.
39
+
6
40
  ## [0.2.0] — 2026-07-04
7
41
 
8
42
  ### Added — the local vault (Path A), previously built on `main` but never released
@@ -0,0 +1,204 @@
1
+ Copyright 2026 Somewhere Media, LLC
2
+
3
+
4
+ Apache License
5
+ Version 2.0, January 2004
6
+ http://www.apache.org/licenses/
7
+
8
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
9
+
10
+ 1. Definitions.
11
+
12
+ "License" shall mean the terms and conditions for use, reproduction,
13
+ and distribution as defined by Sections 1 through 9 of this document.
14
+
15
+ "Licensor" shall mean the copyright owner or entity authorized by
16
+ the copyright owner that is granting the License.
17
+
18
+ "Legal Entity" shall mean the union of the acting entity and all
19
+ other entities that control, are controlled by, or are under common
20
+ control with that entity. For the purposes of this definition,
21
+ "control" means (i) the power, direct or indirect, to cause the
22
+ direction or management of such entity, whether by contract or
23
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
24
+ outstanding shares, or (iii) beneficial ownership of such entity.
25
+
26
+ "You" (or "Your") shall mean an individual or Legal Entity
27
+ exercising permissions granted by this License.
28
+
29
+ "Source" form shall mean the preferred form for making modifications,
30
+ including but not limited to software source code, documentation
31
+ source, and configuration files.
32
+
33
+ "Object" form shall mean any form resulting from mechanical
34
+ transformation or translation of a Source form, including but
35
+ not limited to compiled object code, generated documentation,
36
+ and conversions to other media types.
37
+
38
+ "Work" shall mean the work of authorship, whether in Source or
39
+ Object form, made available under the License, as indicated by a
40
+ copyright notice that is included in or attached to the work
41
+ (an example is provided in the Appendix below).
42
+
43
+ "Derivative Works" shall mean any work, whether in Source or Object
44
+ form, that is based on (or derived from) the Work and for which the
45
+ editorial revisions, annotations, elaborations, or other modifications
46
+ represent, as a whole, an original work of authorship. For the purposes
47
+ of this License, Derivative Works shall not include works that remain
48
+ separable from, or merely link (or bind by name) to the interfaces of,
49
+ the Work and Derivative Works thereof.
50
+
51
+ "Contribution" shall mean any work of authorship, including
52
+ the original version of the Work and any modifications or additions
53
+ to that Work or Derivative Works thereof, that is intentionally
54
+ submitted to Licensor for inclusion in the Work by the copyright owner
55
+ or by an individual or Legal Entity authorized to submit on behalf of
56
+ the copyright owner. For the purposes of this definition, "submitted"
57
+ means any form of electronic, verbal, or written communication sent
58
+ to the Licensor or its representatives, including but not limited to
59
+ communication on electronic mailing lists, source code control systems,
60
+ and issue tracking systems that are managed by, or on behalf of, the
61
+ Licensor for the purpose of discussing and improving the Work, but
62
+ excluding communication that is conspicuously marked or otherwise
63
+ designated in writing by the copyright owner as "Not a Contribution."
64
+
65
+ "Contributor" shall mean Licensor and any individual or Legal Entity
66
+ on behalf of whom a Contribution has been received by Licensor and
67
+ subsequently incorporated within the Work.
68
+
69
+ 2. Grant of Copyright License. Subject to the terms and conditions of
70
+ this License, each Contributor hereby grants to You a perpetual,
71
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
72
+ copyright license to reproduce, prepare Derivative Works of,
73
+ publicly display, publicly perform, sublicense, and distribute the
74
+ Work and such Derivative Works in Source or Object form.
75
+
76
+ 3. Grant of Patent License. Subject to the terms and conditions of
77
+ this License, each Contributor hereby grants to You a perpetual,
78
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
79
+ (except as stated in this section) patent license to make, have made,
80
+ use, offer to sell, sell, import, and otherwise transfer the Work,
81
+ where such license applies only to those patent claims licensable
82
+ by such Contributor that are necessarily infringed by their
83
+ Contribution(s) alone or by combination of their Contribution(s)
84
+ with the Work to which such Contribution(s) was submitted. If You
85
+ institute patent litigation against any entity (including a
86
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
87
+ or a Contribution incorporated within the Work constitutes direct
88
+ or contributory patent infringement, then any patent licenses
89
+ granted to You under this License for that Work shall terminate
90
+ as of the date such litigation is filed.
91
+
92
+ 4. Redistribution. You may reproduce and distribute copies of the
93
+ Work or Derivative Works thereof in any medium, with or without
94
+ modifications, and in Source or Object form, provided that You
95
+ meet the following conditions:
96
+
97
+ (a) You must give any other recipients of the Work or
98
+ Derivative Works a copy of this License; and
99
+
100
+ (b) You must cause any modified files to carry prominent notices
101
+ stating that You changed the files; and
102
+
103
+ (c) You must retain, in the Source form of any Derivative Works
104
+ that You distribute, all copyright, patent, trademark, and
105
+ attribution notices from the Source form of the Work,
106
+ excluding those notices that do not pertain to any part of
107
+ the Derivative Works; and
108
+
109
+ (d) If the Work includes a "NOTICE" text file as part of its
110
+ distribution, then any Derivative Works that You distribute must
111
+ include a readable copy of the attribution notices contained
112
+ within such NOTICE file, excluding those notices that do not
113
+ pertain to any part of the Derivative Works, in at least one
114
+ of the following places: within a NOTICE text file distributed
115
+ as part of the Derivative Works; within the Source form or
116
+ documentation, if provided along with the Derivative Works; or,
117
+ within a display generated by the Derivative Works, if and
118
+ wherever such third-party notices normally appear. The contents
119
+ of the NOTICE file are for informational purposes only and
120
+ do not modify the License. You may add Your own attribution
121
+ notices within Derivative Works that You distribute, alongside
122
+ or as an addendum to the NOTICE text from the Work, provided
123
+ that such additional attribution notices cannot be construed
124
+ as modifying the License.
125
+
126
+ You may add Your own copyright statement to Your modifications and
127
+ may provide additional or different license terms and conditions
128
+ for use, reproduction, or distribution of Your modifications, or
129
+ for any such Derivative Works as a whole, provided Your use,
130
+ reproduction, and distribution of the Work otherwise complies with
131
+ the conditions stated in this License.
132
+
133
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
134
+ any Contribution intentionally submitted for inclusion in the Work
135
+ by You to the Licensor shall be under the terms and conditions of
136
+ this License, without any additional terms or conditions.
137
+ Notwithstanding the above, nothing herein shall supersede or modify
138
+ the terms of any separate license agreement you may have executed
139
+ with Licensor regarding such Contributions.
140
+
141
+ 6. Trademarks. This License does not grant permission to use the trade
142
+ names, trademarks, service marks, or product names of the Licensor,
143
+ except as required for reasonable and customary use in describing the
144
+ origin of the Work and reproducing the content of the NOTICE file.
145
+
146
+ 7. Disclaimer of Warranty. Unless required by applicable law or
147
+ agreed to in writing, Licensor provides the Work (and each
148
+ Contributor provides its Contributions) on an "AS IS" BASIS,
149
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
150
+ implied, including, without limitation, any warranties or conditions
151
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
152
+ PARTICULAR PURPOSE. You are solely responsible for determining the
153
+ appropriateness of using or redistributing the Work and assume any
154
+ risks associated with Your exercise of permissions under this License.
155
+
156
+ 8. Limitation of Liability. In no event and under no legal theory,
157
+ whether in tort (including negligence), contract, or otherwise,
158
+ unless required by applicable law (such as deliberate and grossly
159
+ negligent acts) or agreed to in writing, shall any Contributor be
160
+ liable to You for damages, including any direct, indirect, special,
161
+ incidental, or consequential damages of any character arising as a
162
+ result of this License or out of the use or inability to use the
163
+ Work (including but not limited to damages for loss of goodwill,
164
+ work stoppage, computer failure or malfunction, or any and all
165
+ other commercial damages or losses), even if such Contributor
166
+ has been advised of the possibility of such damages.
167
+
168
+ 9. Accepting Warranty or Additional Liability. While redistributing
169
+ the Work or Derivative Works thereof, You may choose to offer,
170
+ and charge a fee for, acceptance of support, warranty, indemnity,
171
+ or other liability obligations and/or rights consistent with this
172
+ License. However, in accepting such obligations, You may act only
173
+ on Your own behalf and on Your sole responsibility, not on behalf
174
+ of any other Contributor, and only if You agree to indemnify,
175
+ defend, and hold each Contributor harmless for any liability
176
+ incurred by, or claims asserted against, such Contributor by reason
177
+ of your accepting any such warranty or additional liability.
178
+
179
+ END OF TERMS AND CONDITIONS
180
+
181
+ APPENDIX: How to apply the Apache License to your work.
182
+
183
+ To apply the Apache License to your work, attach the following
184
+ boilerplate notice, with the fields enclosed by brackets "[]"
185
+ replaced with your own identifying information. (Don't include
186
+ the brackets!) The text should be enclosed in the appropriate
187
+ comment syntax for the file format. We also recommend that a
188
+ file or class name and description of purpose be included on the
189
+ same "printed page" as the copyright notice for easier
190
+ identification within third-party archives.
191
+
192
+ Copyright [yyyy] [name of copyright owner]
193
+
194
+ Licensed under the Apache License, Version 2.0 (the "License");
195
+ you may not use this file except in compliance with the License.
196
+ You may obtain a copy of the License at
197
+
198
+ http://www.apache.org/licenses/LICENSE-2.0
199
+
200
+ Unless required by applicable law or agreed to in writing, software
201
+ distributed under the License is distributed on an "AS IS" BASIS,
202
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
203
+ See the License for the specific language governing permissions and
204
+ limitations under the License.
@@ -0,0 +1,237 @@
1
+ Metadata-Version: 2.4
2
+ Name: memoryintelligence-mcp
3
+ Version: 0.2.2
4
+ Summary: MCP server for MemoryIntelligence — give Claude a memory you own, set up in one command
5
+ Project-URL: Homepage, https://memoryintelligence.io
6
+ Project-URL: Repository, https://github.com/somewhere11/memoryintelligence-mcp
7
+ Project-URL: Issues, https://github.com/somewhere11/memoryintelligence-mcp/issues
8
+ Project-URL: Changelog, https://github.com/somewhere11/memoryintelligence-mcp/blob/main/CHANGELOG.md
9
+ Project-URL: Documentation, https://memoryintelligence.io/docs/api-reference
10
+ Author-email: MemoryIntelligence <sdk@memoryintelligence.io>
11
+ License-Expression: Apache-2.0
12
+ License-File: LICENSE
13
+ Keywords: ai,claude,llm,mcp,memory,memory-intelligence,model-context-protocol
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
22
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
23
+ Requires-Python: >=3.10
24
+ Requires-Dist: httpx<1.0,>=0.27.0
25
+ Requires-Dist: mcp[cli]<2.0,>=1.0.0
26
+ Requires-Dist: pydantic<3.0,>=2.5.0
27
+ Provides-Extra: dev
28
+ Requires-Dist: cryptography<46,>=42.0; extra == 'dev'
29
+ Requires-Dist: fastembed<1.0,>=0.3.0; extra == 'dev'
30
+ Requires-Dist: numpy<3,>=1.24; extra == 'dev'
31
+ Requires-Dist: pytest-asyncio>=0.24; extra == 'dev'
32
+ Requires-Dist: pytest>=8.0; extra == 'dev'
33
+ Requires-Dist: ruff>=0.4.0; extra == 'dev'
34
+ Provides-Extra: local
35
+ Requires-Dist: cryptography<46,>=42.0; extra == 'local'
36
+ Requires-Dist: fastembed<1.0,>=0.3.0; extra == 'local'
37
+ Requires-Dist: numpy<3,>=1.24; extra == 'local'
38
+ Description-Content-Type: text/markdown
39
+
40
+ # MemoryIntelligence MCP Server
41
+
42
+ [![PyPI](https://img.shields.io/pypi/v/memoryintelligence-mcp.svg)](https://pypi.org/project/memoryintelligence-mcp/)
43
+ [![Python](https://img.shields.io/pypi/pyversions/memoryintelligence-mcp.svg)](https://pypi.org/project/memoryintelligence-mcp/)
44
+ [![License: Apache 2.0](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)
45
+ [![MCP](https://img.shields.io/badge/MCP-server-blue.svg)](https://modelcontextprotocol.io)
46
+
47
+ > ## Stop paying AI to reread the same context.
48
+
49
+ Receipted memory for your AI, via MCP. What you tell your assistant becomes
50
+ **structured memory you own** — recalled by meaning, with **every answer cited to
51
+ its source**. Works with Claude Desktop, Claude Code, Cursor, VS Code, and any MCP client.
52
+
53
+ ## Start in 30 seconds
54
+
55
+ ```bash
56
+ pip install memoryintelligence-mcp # or: pipx / uvx / uv tool install
57
+ mi-mcp setup # paste your key once — wires everything
58
+ # restart your assistant, then just talk to it:
59
+ # "remember we picked Postgres for billing — we needed transactions"
60
+ # (new session) "what did we decide about the billing database?"
61
+ ```
62
+
63
+ `mi-mcp setup` stores your key **securely** (macOS Keychain, or a `chmod 600`
64
+ keyfile), wires your assistants, opts the current folder in for capture, and
65
+ verifies it — in one command. **Your API key is never written into a config file.**
66
+
67
+ **👉 [Get a free API key](https://memoryintelligence.io/portal)** ·
68
+ [Product](https://memoryintelligence.io) ·
69
+ [Issues](https://github.com/somewhere11/memoryintelligence-mcp/issues)
70
+
71
+ ## What you get
72
+
73
+ Three tools, ready the moment it's wired — a compatible host (Claude Desktop,
74
+ Claude Code, Cursor) **recalls and captures on its own**, no prompts to memorize:
75
+
76
+ | Tool | What it does | Try saying |
77
+ |------|-------------|-----------|
78
+ | `mi_capture` | Save a decision, fact, or preference | *"Remember we chose Postgres for billing — we needed transactions."* |
79
+ | `mi_ask` | Search your memory by meaning, with citations | *"What did we decide about the billing database?"* |
80
+ | `mi_list` | Browse recent memories | *"List what I've saved this week."* |
81
+
82
+ And four things that make it more than a notepad:
83
+
84
+ - **Receipted** — every recall cites the memory it came from. It cites, it doesn't guess.
85
+ - **Reusable** — capture once, recall by meaning across every session and every tool.
86
+ - **Owned** — memories are portable structured objects in *your* account, not locked in a model.
87
+ - **Private** — capture is opt-in per project; PII is redacted from what the agent sees.
88
+
89
+ > Set `MI_MCP_FULL=1` for the full surface (`mi_upload`, `mi_verify`, `mi_forget`,
90
+ > `mi_batch`, `mi_explain`, `mi_match`, `mi_account`). Tools outside the active
91
+ > surface are rejected at the call boundary, not just hidden.
92
+
93
+ ## How it works
94
+
95
+ ```
96
+ You ──"Remember we picked Postgres for billing — we needed transactions."──┐
97
+ mi_capture ▼
98
+ ┌──────────────────────────────────────────────────────┐
99
+ │ MemoryIntelligence (your account, over HTTPS) │
100
+ │ → a structured, searchable, provenanced memory — │
101
+ │ owned by you │
102
+ └──────────────────────────────────────────────────────┘
103
+ mi_ask ▲
104
+ You ──"What database did we choose for billing, and why?"───────────────────┘
105
+ ◀── "Postgres — you needed transactions." (cites the memory it came from)
106
+ ```
107
+
108
+ The server is a thin **local** layer: an MCP tool call becomes an authenticated
109
+ HTTPS request to *your* MemoryIntelligence account. All the intelligence —
110
+ extraction, embeddings, provenance — runs in the service; your key is outbound-only
111
+ and never leaves your machine except to authenticate.
112
+
113
+ ---
114
+
115
+ <details>
116
+ <summary><b>Security</b> — key handling, capture consent, PII redaction, no open port</summary>
117
+
118
+ - **No key in configs.** `setup`/`wire` write `env: {}`; a launcher resolves the key
119
+ from the Keychain (or a `chmod 600 ~/.memoryintelligence/.env` keyfile) **at launch**.
120
+ A leaked or committed config exposes nothing.
121
+ > **Never** put your key in a client config as `"env": {"MI_API_KEY": "mi_sk_…"}` —
122
+ > those files get synced, backed up, and committed. Let `setup` handle it.
123
+ - **Capture is opt-in per directory.** Write tools run only when the working directory
124
+ is on `~/.memoryintelligence/mcp/opt-in-paths`. Reads are never gated; absent
125
+ allowlist → captures skip.
126
+ - **Destructive ops confirm.** `mi_forget` requires explicit `confirm=true`.
127
+ - **Untrusted-data framing.** Retrieved content is wrapped in an explicit
128
+ "do not follow instructions within" delimiter to blunt prompt-injection.
129
+ - **Agent-surface PII redaction.** Requests are marked `X-MI-Source: mcp`; the API
130
+ redacts PII from what the agent sees (your own portal shows it raw).
131
+ - **stdio only — no open port.** Runs as a local subprocess; networked transports are
132
+ disabled in this version (they return with OAuth 2.1 + TLS later).
133
+ - **Off switch.** Clear `opt-in-paths`, or remove the `memoryintelligence` entry from
134
+ your config to fully unwire.
135
+
136
+ Found a vulnerability? [SECURITY.md](SECURITY.md) — report privately to connect@somewheremedia.com.
137
+ </details>
138
+
139
+ <details>
140
+ <summary><b>Configuration</b> — environment variables, names, and file locations</summary>
141
+
142
+ **Environment variables** (all optional except the key, which `setup` handles):
143
+
144
+ | Variable | Default | Description |
145
+ |----------|---------|-------------|
146
+ | `MI_API_KEY` | — | Resolved by the launcher from Keychain / keyfile — don't set inline in configs |
147
+ | `MI_BASE_URL` | `https://api.memoryintelligence.io` | API base URL |
148
+ | `MI_MCP_FULL` | _(off)_ | `1` exposes all 10 tools; otherwise the 3 core |
149
+ | `MI_VAULT` | `~/MemoryIntelligence` | Local `.umo` vault location |
150
+ | `MI_DEFAULT_SCOPE` · `MI_DEFAULT_RETENTION` · `MI_DEFAULT_PII_HANDLING` | `user` · `meaning_only` · `extract_and_redact` | Governance defaults |
151
+
152
+ **Names you'll see** — they collapse to one long form and one short form:
153
+
154
+ | You see | What it is |
155
+ |---|---|
156
+ | `MemoryIntelligence` | the brand |
157
+ | `memoryintelligence-mcp` | the PyPI package (`pip install`) |
158
+ | `mi-mcp` | the command you run (`mi-mcp setup`) |
159
+ | `memoryintelligence` | the server id in your MCP config |
160
+ | `MI_*` | env vars / Keychain service |
161
+
162
+ **On disk** — one namespace:
163
+
164
+ | Path | What |
165
+ |---|---|
166
+ | `~/MemoryIntelligence/` | your `.umo` vault (override with `MI_VAULT`) |
167
+ | `~/.memoryintelligence/mcp/run-mi-mcp.sh` | the launcher each host spawns |
168
+ | `~/.memoryintelligence/mcp/opt-in-paths` | per-directory capture allowlist |
169
+ | `~/.memoryintelligence/.env` | `chmod 600` keyfile (Keychain fallback) |
170
+ </details>
171
+
172
+ <details>
173
+ <summary><b>Manual & cross-platform setup</b> — do it by hand, or script it</summary>
174
+
175
+ `mi-mcp setup` is the recommended path everywhere. To do it manually, store the key
176
+ where your platform fits, then run `mi-mcp wire`:
177
+
178
+ ```bash
179
+ # macOS — Keychain:
180
+ read -s K; security add-generic-password -a "$USER" -s "MI_API_KEY" -w "$K" -U; unset K
181
+
182
+ # Linux / Windows — chmod 600 keyfile:
183
+ mkdir -p ~/.memoryintelligence
184
+ umask 077 && printf 'MI_API_KEY="%s"\n' "$YOUR_KEY" > ~/.memoryintelligence/.env
185
+
186
+ # then, on any OS:
187
+ mi-mcp wire
188
+ echo "$(pwd)" >> ~/.memoryintelligence/mcp/opt-in-paths # allow captures here
189
+ ```
190
+
191
+ The launcher resolves the key in order: **inherited env → macOS Keychain → keyfile**.
192
+ Never paste the key into an MCP client config.
193
+
194
+ **Repair / inspect without re-running setup:**
195
+ ```bash
196
+ mi-mcp doctor # checks binary, PATH, key, wiring, opt-in, vault path
197
+ mi-mcp status # wired surfaces + opt-in allowlist
198
+ mi-mcp wire --dry-run # preview wiring changes
199
+ ```
200
+ </details>
201
+
202
+ <details>
203
+ <summary><b>VS Code / GitHub Copilot</b></summary>
204
+
205
+ VS Code / Copilot read a different config than Claude: servers live under `"servers"`
206
+ (not `"mcpServers"`) and need `"type": "stdio"`. `mi-mcp wire --surfaces vscode` writes
207
+ it, or add per-workspace `.vscode/mcp.json`:
208
+
209
+ ```json
210
+ { "servers": { "memoryintelligence": { "type": "stdio", "command": "mi-mcp" } } }
211
+ ```
212
+
213
+ Then open Copilot Chat in **Agent** mode — the memory tools only appear there.
214
+ </details>
215
+
216
+ <details>
217
+ <summary><b>Development</b></summary>
218
+
219
+ ```bash
220
+ pip install -e ".[dev]" # from mcp-server/
221
+ PYTHONPATH=src python -m pytest
222
+ ruff check src/
223
+ ```
224
+ `src/mi_mcp/`: `__main__.py` (CLI + dispatch) · `cli.py` (setup/wire/doctor) ·
225
+ `config.py` (consent gate) · `client.py` (MI API) · `server.py` (tools + instructions).
226
+ Contributions welcome — [CONTRIBUTING.md](CONTRIBUTING.md).
227
+ </details>
228
+
229
+ ---
230
+
231
+ **Learn more:** [memoryintelligence.io](https://memoryintelligence.io) ·
232
+ [Get a key](https://memoryintelligence.io/portal) ·
233
+ [API reference](https://memoryintelligence.io/docs/api-reference) ·
234
+ [What is MCP](https://modelcontextprotocol.io) ·
235
+ [Changelog](CHANGELOG.md)
236
+
237
+ Apache-2.0 © Somewhere Media, LLC. See [LICENSE](LICENSE).