mnemos-capture 1.4.1 → 1.5.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/README.md +8 -8
- package/dist/cli/hooks.js +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli/mcp-server.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<br>
|
|
3
|
-
<a href="https://
|
|
3
|
+
<a href="https://xkg.xmu.sh">
|
|
4
4
|
<picture>
|
|
5
5
|
<source media="(prefers-color-scheme: dark)" srcset="public/xkg-hero-dark.gif">
|
|
6
6
|
<img src="public/xkg-hero-light.gif" width="160" height="160" alt="xkg">
|
|
@@ -53,7 +53,7 @@ You find useful stuff, you capture through the web app, then xkg connects it int
|
|
|
53
53
|
xkg will continuously compound that knowledge over time — keeping AI workers' context up to date as human knowledge evolves.
|
|
54
54
|
|
|
55
55
|
> [!IMPORTANT]
|
|
56
|
-
> We are migrating from **mnemos** / **Xmu** to **xkg**. The
|
|
56
|
+
> We are migrating from **mnemos** / **Xmu** to **xkg**. The app now lives at [xkg.xmu.sh](https://xkg.xmu.sh) and the code at [xmu-labs/xkg](https://github.com/xmu-labs/xkg). Connectors set up with `mnemos-capture.vercel.app` keep working. The npm package still says `mnemos-capture`. Sorry for the inconvenience.
|
|
57
57
|
|
|
58
58
|
## Start here
|
|
59
59
|
|
|
@@ -61,7 +61,7 @@ You do not need a terminal to start.
|
|
|
61
61
|
|
|
62
62
|
### 1. Create your account
|
|
63
63
|
|
|
64
|
-
Open **[
|
|
64
|
+
Open **[xkg.xmu.sh](https://xkg.xmu.sh)** and sign in with GitHub.
|
|
65
65
|
|
|
66
66
|
xkg will:
|
|
67
67
|
|
|
@@ -91,7 +91,7 @@ xkg is LLM-agnostic. Any worker that speaks MCP can use the same knowledge.
|
|
|
91
91
|
Two primitives:
|
|
92
92
|
|
|
93
93
|
```text
|
|
94
|
-
https://
|
|
94
|
+
https://xkg.xmu.sh/api/mcp
|
|
95
95
|
```
|
|
96
96
|
|
|
97
97
|
```bash
|
|
@@ -104,7 +104,7 @@ The CLI binary is **`xkg`** (also `xmu` and `mnemos-capture`). `npx` still uses
|
|
|
104
104
|
|
|
105
105
|
### On the web
|
|
106
106
|
|
|
107
|
-
Name the connector `xkg`, paste `https://
|
|
107
|
+
Name the connector `xkg`, paste `https://xkg.xmu.sh/api/mcp`, sign in with GitHub when asked.
|
|
108
108
|
|
|
109
109
|
#### Claude
|
|
110
110
|
|
|
@@ -114,7 +114,7 @@ Name the connector `xkg`, paste `https://mnemos-capture.vercel.app/api/mcp`, sig
|
|
|
114
114
|
|
|
115
115
|
1. Settings → Plugins → Browse plugins
|
|
116
116
|
2. Name it xkg
|
|
117
|
-
3. Paste `https://
|
|
117
|
+
3. Paste `https://xkg.xmu.sh/api/mcp`
|
|
118
118
|
4. Sign in with GitHub when asked
|
|
119
119
|
|
|
120
120
|
#### Grok
|
|
@@ -192,7 +192,7 @@ claude mcp add xkg -- npx -y mnemos-capture@latest serve-mcp --key YOUR_API_KEY
|
|
|
192
192
|
Or the URL, no API key:
|
|
193
193
|
|
|
194
194
|
```bash
|
|
195
|
-
claude mcp add --transport http xkg https://
|
|
195
|
+
claude mcp add --transport http xkg https://xkg.xmu.sh/api/mcp
|
|
196
196
|
```
|
|
197
197
|
|
|
198
198
|
Optional session hooks (MCP works without them):
|
|
@@ -233,7 +233,7 @@ If the tool can launch a local process, register the same `npx` command. If it h
|
|
|
233
233
|
}
|
|
234
234
|
```
|
|
235
235
|
|
|
236
|
-
No MCP support yet? Capture in the [xkg app](https://
|
|
236
|
+
No MCP support yet? Capture in the [xkg app](https://xkg.xmu.sh) and connect later.
|
|
237
237
|
|
|
238
238
|
## Workflow
|
|
239
239
|
|
package/dist/cli/hooks.js
CHANGED
|
@@ -2,7 +2,7 @@ import { homedir, tmpdir } from "os";
|
|
|
2
2
|
import { readFileSync, writeFileSync, existsSync, mkdirSync } from "fs";
|
|
3
3
|
import { join } from "path";
|
|
4
4
|
import { execSync } from "child_process";
|
|
5
|
-
const HOSTED_URL = "https://
|
|
5
|
+
const HOSTED_URL = "https://xkg.xmu.sh/api/mcp";
|
|
6
6
|
const CLAUDE_SETTINGS_PATH = join(homedir(), ".claude", "settings.json");
|
|
7
7
|
// Matches both legacy ("mnemos-capture inbox-check") and modern
|
|
8
8
|
// ("mnemos-capture@latest inbox-check") hook command forms.
|
package/dist/cli/index.js
CHANGED
package/dist/cli/mcp-server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// MCP server that runs locally via stdio and proxies to the hosted API.
|
|
2
2
|
// Used by Claude Code: claude mcp add xkg -- npx mnemos-capture serve-mcp --key <api-key>
|
|
3
|
-
const DEFAULT_HOSTED_URL = "https://
|
|
3
|
+
const DEFAULT_HOSTED_URL = "https://xkg.xmu.sh/api/mcp";
|
|
4
4
|
/** Override for pointing the proxy at a local instance during development. */
|
|
5
5
|
const HOSTED_URL = process.env.XKG_API_URL ?? process.env.XMU_API_URL ?? process.env.MNEMOS_API_URL ?? DEFAULT_HOSTED_URL;
|
|
6
6
|
function sendMessage(msg) {
|
|
@@ -74,7 +74,7 @@ export async function serveMcp() {
|
|
|
74
74
|
if (!apiKey) {
|
|
75
75
|
process.stderr.write("\nxkg MCP server requires an API key.\n");
|
|
76
76
|
process.stderr.write("Usage: npx -y mnemos-capture@latest serve-mcp --key <your-api-key>\n\n");
|
|
77
|
-
process.stderr.write("Get your API key at: https://
|
|
77
|
+
process.stderr.write("Get your API key at: https://xkg.xmu.sh/onboard\n\n");
|
|
78
78
|
process.exit(1);
|
|
79
79
|
}
|
|
80
80
|
// Self-upgrade: if a newer version exists on npm, respawn via npx @latest.
|
package/package.json
CHANGED