@fswap/mcp-outline 0.1.1 → 0.1.4
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 +7 -7
- package/dist/index.js +11 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Runs locally over stdio. No install step — clients launch it with `npx`.
|
|
|
10
10
|
2. Run the interactive setup once:
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
|
-
npx -y @fswap/mcp-outline setup
|
|
13
|
+
npx -y @fswap/mcp-outline@latest setup
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
It asks for your Outline URL and token, verifies them against `auth.info`, and stores them in your OS config directory (mode `0600`).
|
|
@@ -24,7 +24,7 @@ Runs locally over stdio. No install step — clients launch it with `npx`.
|
|
|
24
24
|
"mcpServers": {
|
|
25
25
|
"outline": {
|
|
26
26
|
"command": "npx",
|
|
27
|
-
"args": ["-y", "@fswap/mcp-outline"]
|
|
27
|
+
"args": ["-y", "@fswap/mcp-outline@latest"]
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -35,13 +35,13 @@ Runs locally over stdio. No install step — clients launch it with `npx`.
|
|
|
35
35
|
```toml
|
|
36
36
|
[mcp_servers.outline]
|
|
37
37
|
command = "npx"
|
|
38
|
-
args = ["-y", "@fswap/mcp-outline"]
|
|
38
|
+
args = ["-y", "@fswap/mcp-outline@latest"]
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
**Claude Code**:
|
|
42
42
|
|
|
43
43
|
```bash
|
|
44
|
-
claude mcp add outline -- npx -y @fswap/mcp-outline
|
|
44
|
+
claude mcp add outline -- npx -y @fswap/mcp-outline@latest
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
### Without `setup` (environment variables)
|
|
@@ -53,7 +53,7 @@ Environment variables take precedence over the config file, so you can skip `set
|
|
|
53
53
|
"mcpServers": {
|
|
54
54
|
"outline": {
|
|
55
55
|
"command": "npx",
|
|
56
|
-
"args": ["-y", "@fswap/mcp-outline"],
|
|
56
|
+
"args": ["-y", "@fswap/mcp-outline@latest"],
|
|
57
57
|
"env": {
|
|
58
58
|
"OUTLINE_URL": "https://app.getoutline.com",
|
|
59
59
|
"OUTLINE_API_TOKEN": "ol_api_..."
|
|
@@ -68,7 +68,7 @@ Codex equivalent:
|
|
|
68
68
|
```toml
|
|
69
69
|
[mcp_servers.outline]
|
|
70
70
|
command = "npx"
|
|
71
|
-
args = ["-y", "@fswap/mcp-outline"]
|
|
71
|
+
args = ["-y", "@fswap/mcp-outline@latest"]
|
|
72
72
|
[mcp_servers.outline.env]
|
|
73
73
|
OUTLINE_URL = "https://app.getoutline.com"
|
|
74
74
|
OUTLINE_API_TOKEN = "ol_api_..."
|
|
@@ -117,7 +117,7 @@ Never write to stdout from server code — it is the protocol channel. Use `cons
|
|
|
117
117
|
## Reset
|
|
118
118
|
|
|
119
119
|
```bash
|
|
120
|
-
npx -y @fswap/mcp-outline setup --reset
|
|
120
|
+
npx -y @fswap/mcp-outline@latest setup --reset
|
|
121
121
|
```
|
|
122
122
|
|
|
123
123
|
## License
|
package/dist/index.js
CHANGED
|
@@ -377,7 +377,7 @@ function registerDocumentTools(server, outline, { allowDelete = false } = {}) {
|
|
|
377
377
|
function jsonSnippet(missing) {
|
|
378
378
|
const server = {
|
|
379
379
|
command: "npx",
|
|
380
|
-
args: ["-y", PACKAGE_NAME]
|
|
380
|
+
args: ["-y", `${PACKAGE_NAME}@latest`]
|
|
381
381
|
};
|
|
382
382
|
if (Object.keys(missing).length > 0) server.env = missing;
|
|
383
383
|
return JSON.stringify({ mcpServers: { [SERVER_KEY]: server } }, null, 2);
|
|
@@ -386,7 +386,7 @@ function tomlSnippet(missing) {
|
|
|
386
386
|
const lines = [
|
|
387
387
|
`[mcp_servers.${SERVER_KEY}]`,
|
|
388
388
|
"command = \"npx\"",
|
|
389
|
-
`args = ["-y", "${PACKAGE_NAME}"]`
|
|
389
|
+
`args = ["-y", "${PACKAGE_NAME}@latest"]`
|
|
390
390
|
];
|
|
391
391
|
if (Object.keys(missing).length > 0) {
|
|
392
392
|
lines.push(`[mcp_servers.${SERVER_KEY}.env]`);
|
|
@@ -396,7 +396,7 @@ function tomlSnippet(missing) {
|
|
|
396
396
|
}
|
|
397
397
|
function claudeCodeSnippet(missing) {
|
|
398
398
|
const env = Object.entries(missing).map(([k, v]) => `-e ${k}=${v} `).join("");
|
|
399
|
-
return `claude mcp add ${SERVER_KEY} ${env}-- npx -y ${PACKAGE_NAME}`;
|
|
399
|
+
return `claude mcp add ${SERVER_KEY} ${env}-- npx -y ${PACKAGE_NAME}@latest`;
|
|
400
400
|
}
|
|
401
401
|
function clientSnippets(missing = {}) {
|
|
402
402
|
return [
|
|
@@ -431,8 +431,13 @@ function abort() {
|
|
|
431
431
|
p.cancel("Setup aborted.");
|
|
432
432
|
process.exit(1);
|
|
433
433
|
}
|
|
434
|
+
/** Plain stdout, no box drawing, so the snippets can be selected and copied (or piped to a file). */
|
|
434
435
|
function printSnippets(missing) {
|
|
435
|
-
for (const s of clientSnippets(missing))
|
|
436
|
+
for (const s of clientSnippets(missing)) {
|
|
437
|
+
console.log(`\n# ${s.title}\n`);
|
|
438
|
+
console.log(s.body);
|
|
439
|
+
}
|
|
440
|
+
console.log();
|
|
436
441
|
}
|
|
437
442
|
async function runSetup(args = []) {
|
|
438
443
|
if (args.includes("--reset")) {
|
|
@@ -497,8 +502,9 @@ async function runSetup(args = []) {
|
|
|
497
502
|
if (!url) missing[ENV_URL] = "https://app.getoutline.com";
|
|
498
503
|
if (!token) missing[ENV_TOKEN] = "ol_api_...";
|
|
499
504
|
if (Object.keys(missing).length > 0) p.log.warn(`Still needed: ${Object.keys(missing).join(", ")}. Add them to the env block below, or run setup again.`);
|
|
500
|
-
printSnippets(missing);
|
|
501
505
|
p.outro(`Saved to ${file}`);
|
|
506
|
+
console.log("Add one of these to your MCP client (plain text, safe to copy). Re-print any time with: setup --print");
|
|
507
|
+
printSnippets(missing);
|
|
502
508
|
}
|
|
503
509
|
var init_setup = __esmMin((() => {
|
|
504
510
|
init_config();
|