@zatona/mcp-server 0.0.0-stage → 1.0.1

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 CHANGED
@@ -1,3 +1,103 @@
1
- # Temporary Holding Version
1
+ # @zatona/mcp-server
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Official [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server for **[Zatona (زتونة)](https://zatona.app)** — the modern revision notes, KaTeX formulas, Mermaid diagrams, and SM-2 spaced repetition platform.
4
+
5
+ Allows AI agents and IDEs (Claude Desktop, Cursor, Google Antigravity, VS Code) to securely inspect, create, and edit Zatona revision notes on behalf of authenticated students.
6
+
7
+ ---
8
+
9
+ ## ⚡ Quick Start
10
+
11
+ ### 1. Generate Your API Token
12
+ 1. Sign in to your account at [zatona.app](https://zatona.app).
13
+ 2. Go to **Settings** → **Security** → **Personal Access Tokens (MCP)**.
14
+ 3. Click **Generate New Token**, select scopes, and copy your secret key (`zat_...`).
15
+
16
+ ---
17
+
18
+ ## ⚙️ Client Configurations
19
+
20
+ ### Claude Desktop
21
+ Add to your Claude Desktop configuration (`claude_desktop_config.json`):
22
+
23
+ ```json
24
+ {
25
+ "mcpServers": {
26
+ "zatona": {
27
+ "command": "npx",
28
+ "args": ["-y", "@zatona/mcp-server"],
29
+ "env": {
30
+ "ZATONA_API_KEY": "YOUR_PERSONAL_ACCESS_TOKEN"
31
+ }
32
+ }
33
+ }
34
+ }
35
+ ```
36
+
37
+ ### Cursor IDE
38
+ Add to `.cursor/mcp.json` or Cursor MCP Settings:
39
+
40
+ ```json
41
+ {
42
+ "mcpServers": {
43
+ "zatona": {
44
+ "command": "npx",
45
+ "args": ["-y", "@zatona/mcp-server"],
46
+ "env": {
47
+ "ZATONA_API_KEY": "YOUR_PERSONAL_ACCESS_TOKEN"
48
+ }
49
+ }
50
+ }
51
+ }
52
+ ```
53
+
54
+ ### Google Antigravity / Gemini CLI
55
+ Add to `antigravity.json`:
56
+
57
+ ```json
58
+ {
59
+ "mcpServers": {
60
+ "zatona": {
61
+ "command": "npx",
62
+ "args": ["-y", "@zatona/mcp-server"],
63
+ "env": {
64
+ "ZATONA_API_KEY": "YOUR_PERSONAL_ACCESS_TOKEN"
65
+ }
66
+ }
67
+ }
68
+ }
69
+ ```
70
+
71
+ ---
72
+
73
+ ## 🔧 Environment Variables
74
+
75
+ | Variable | Required | Default | Description |
76
+ |---|---|---|---|
77
+ | `ZATONA_API_KEY` | **Yes** | — | Personal Access Token (`zat_...`) from zatona.app |
78
+ | `ZATONA_API_URL` | No | `https://api.zatona.app` | Custom API backend endpoint |
79
+
80
+ ---
81
+
82
+ ## 🛠️ Available MCP Tools
83
+
84
+ | Tool | Scopes | Description |
85
+ |---|---|---|
86
+ | `zatona_list_notes` | `notes:read` | List published notes with search, tags, course filtering & cursor pagination |
87
+ | `zatona_get_my_notes` | `notes:read` | List authenticated user's private and draft revision notes |
88
+ | `zatona_get_note` | `notes:read` | Fetch full note content, metadata, and all 20 canonical block kinds |
89
+ | `zatona_create_note` | `notes:write` | Create a new revision note (defaults to private draft) |
90
+ | `zatona_update_note` | `notes:write` | Update an existing note with optimistic version concurrency checks |
91
+ | `zatona_search_notes` | `notes:read` | Perform full-text search across all accessible notes |
92
+
93
+ ---
94
+
95
+ ## 📦 Supported Block Kinds
96
+
97
+ The server validates and generates all 20 canonical Zatona block kinds:
98
+ `paragraph`, `heading`, `list`, `code`, `math` (KaTeX), `flowchart` (Mermaid), `gantt`, `pie`, `dfd`, `table`, `quote`, `callout`, `toggle`, `checklist`, `flashcard` (SM-2), `quiz`, `image`, `video`, `file`, `divider`.
99
+
100
+ ---
101
+
102
+ ## 📄 License
103
+ MIT © [Zatona Team](https://zatona.app)