nooon 0.7.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/LICENSE +22 -0
- package/README.md +102 -0
- package/dist/index.js +31497 -0
- package/package.json +50 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 K@zuki. / K.HASEGAWA
|
|
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.
|
|
22
|
+
|
package/README.md
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
# nooon
|
|
2
|
+
|
|
3
|
+
Lightweight, read-only Notion MCP Server optimized for token efficiency.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- Simple auth with `NOTION_TOKEN` or OAuth 2.0 + PKCE
|
|
8
|
+
- Minimal output using [TOON format](https://github.com/toon-format/toon)
|
|
9
|
+
- Smart caching based on `last_edited_time`
|
|
10
|
+
- Recursive block fetching in a single call
|
|
11
|
+
- Pre-built binaries for macOS and Linux
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
Download from [Releases](https://github.com/corrupt952/nooon/releases):
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
# macOS (Apple Silicon)
|
|
19
|
+
curl -L https://github.com/corrupt952/nooon/releases/latest/download/nooon-darwin-arm64 -o nooon && chmod +x nooon
|
|
20
|
+
|
|
21
|
+
# macOS (Intel)
|
|
22
|
+
curl -L https://github.com/corrupt952/nooon/releases/latest/download/nooon-darwin-x64 -o nooon && chmod +x nooon
|
|
23
|
+
|
|
24
|
+
# Linux (x64)
|
|
25
|
+
curl -L https://github.com/corrupt952/nooon/releases/latest/download/nooon-linux-x64 -o nooon && chmod +x nooon
|
|
26
|
+
|
|
27
|
+
# Linux (arm64)
|
|
28
|
+
curl -L https://github.com/corrupt952/nooon/releases/latest/download/nooon-linux-arm64 -o nooon && chmod +x nooon
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Authentication
|
|
32
|
+
|
|
33
|
+
Choose one of the following methods:
|
|
34
|
+
|
|
35
|
+
**API Token (Simple)**
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
export NOTION_TOKEN=ntn_xxx
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
**OAuth (Interactive)**
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
nooon config --client-id <id> --client-secret <secret>
|
|
45
|
+
nooon auth
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Get credentials from [Notion Integrations](https://www.notion.so/my-integrations).
|
|
49
|
+
|
|
50
|
+
## Usage
|
|
51
|
+
|
|
52
|
+
Register with Claude Code:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
eval $(nooon mcp install)
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
Check status:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
nooon status
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## MCP Tools
|
|
65
|
+
|
|
66
|
+
| Tool | Description |
|
|
67
|
+
|------|-------------|
|
|
68
|
+
| `nooon_search` | Search pages and databases by keyword |
|
|
69
|
+
| `nooon_page` | Get page content with nested blocks (cached) |
|
|
70
|
+
| `nooon_database` | Get database schema |
|
|
71
|
+
| `nooon_query` | Query database with filter/sort |
|
|
72
|
+
| `nooon_clear_cache` | Clear cached pages |
|
|
73
|
+
|
|
74
|
+
## CLI Reference
|
|
75
|
+
|
|
76
|
+
```
|
|
77
|
+
nooon auth Start OAuth flow
|
|
78
|
+
nooon logout Clear credentials
|
|
79
|
+
nooon status Show auth status
|
|
80
|
+
nooon config Configure OAuth credentials
|
|
81
|
+
nooon cache clear Clear page cache
|
|
82
|
+
nooon mcp Start MCP server
|
|
83
|
+
nooon mcp install Output claude mcp add command
|
|
84
|
+
nooon mcp config Output mcpServers JSON
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Building from Source
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
bun install
|
|
91
|
+
bun run compile
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
For team distribution (users only need to run `nooon auth`, no integration setup required):
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
NOTION_CLIENT_ID=xxx NOTION_CLIENT_SECRET=xxx bun run compile
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## License
|
|
101
|
+
|
|
102
|
+
MIT
|