nooon 0.8.2 → 0.8.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/dist/index.js +5 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -31291,7 +31291,7 @@ function parseSorts(json2) {
|
|
|
31291
31291
|
// src/mcp.ts
|
|
31292
31292
|
var server = new McpServer({
|
|
31293
31293
|
name: "nooon",
|
|
31294
|
-
version: "0.8.
|
|
31294
|
+
version: "0.8.4"
|
|
31295
31295
|
});
|
|
31296
31296
|
server.tool("nooon_search", "Search Notion pages and databases by keyword. Returns a list of matching items with their IDs and titles. For data_source objects, use nooon_data_source or nooon_query.", {
|
|
31297
31297
|
query: exports_external.string().describe("Search keyword"),
|
|
@@ -31384,17 +31384,17 @@ async function handleMcp(args) {
|
|
|
31384
31384
|
const scriptPath = process.argv[1];
|
|
31385
31385
|
const isLocal = args.includes("--local");
|
|
31386
31386
|
const scope = isLocal ? "local" : "user";
|
|
31387
|
-
const command = scriptPath.endsWith(".ts") ? `claude mcp add nooon --scope ${scope} --
|
|
31387
|
+
const command = scriptPath.endsWith(".ts") || scriptPath.endsWith(".js") ? `claude mcp add nooon --scope ${scope} -- ${execPath} run ${scriptPath} mcp` : `claude mcp add nooon --scope ${scope} -- ${execPath} mcp`;
|
|
31388
31388
|
console.log(command);
|
|
31389
31389
|
break;
|
|
31390
31390
|
}
|
|
31391
31391
|
case "config": {
|
|
31392
31392
|
const execPath = process.execPath;
|
|
31393
31393
|
const scriptPath = process.argv[1];
|
|
31394
|
-
const config2 = scriptPath.endsWith(".ts") ? {
|
|
31394
|
+
const config2 = scriptPath.endsWith(".ts") || scriptPath.endsWith(".js") ? {
|
|
31395
31395
|
mcpServers: {
|
|
31396
31396
|
nooon: {
|
|
31397
|
-
command:
|
|
31397
|
+
command: execPath,
|
|
31398
31398
|
args: ["run", scriptPath, "mcp"]
|
|
31399
31399
|
}
|
|
31400
31400
|
}
|
|
@@ -31484,7 +31484,7 @@ EXAMPLES:
|
|
|
31484
31484
|
async function main() {
|
|
31485
31485
|
const args = process.argv.slice(2);
|
|
31486
31486
|
if (args.includes("--version") || args.includes("-v")) {
|
|
31487
|
-
console.log("0.8.
|
|
31487
|
+
console.log("0.8.4");
|
|
31488
31488
|
return;
|
|
31489
31489
|
}
|
|
31490
31490
|
if (args.length === 0 || args.includes("--help") || args.includes("-h")) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nooon",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "Lightweight, read-only Notion MCP Server optimized for token efficiency",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"zod": "^4.3.6"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@biomejs/biome": "2.3.
|
|
46
|
+
"@biomejs/biome": "2.3.14",
|
|
47
47
|
"@types/bun": "^1.1.14",
|
|
48
48
|
"typescript": "^5.7.2"
|
|
49
49
|
}
|