remnote-mcp-server 0.4.0 → 0.5.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/CHANGELOG.md +32 -0
- package/LICENSE +1 -1
- package/README.md +12 -8
- package/dist/http-server.d.ts +1 -0
- package/dist/http-server.js +15 -2
- package/dist/http-server.js.map +1 -1
- package/dist/schemas/remnote-schemas.js +2 -2
- package/dist/schemas/remnote-schemas.js.map +1 -1
- package/dist/tools/index.d.ts +85 -0
- package/dist/tools/index.js +71 -4
- package/dist/tools/index.js.map +1 -1
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,38 @@ Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.5.1] - 2026-02-24
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Improved invalid MCP session error responses to explicitly indicate session reinitialization is required after
|
|
15
|
+
restart/expiry, with structured error metadata for clients and diagnostics.
|
|
16
|
+
|
|
17
|
+
### Documentation
|
|
18
|
+
|
|
19
|
+
- Added troubleshooting guidance for Claude Code `Invalid session ID` errors after restarting `remnote-mcp-server`,
|
|
20
|
+
including restart/refresh steps and log checks.
|
|
21
|
+
|
|
22
|
+
## [0.5.0] - 2026-02-21
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
|
|
26
|
+
- Added `outputSchema` metadata for `remnote_search` and `remnote_read_note`, including `detail`, `remType`, and
|
|
27
|
+
`cardDirection` response fields for AI clients.
|
|
28
|
+
- Search responses now include `detail`, `remType`, and `cardDirection`.
|
|
29
|
+
- Added end-to-end integration test tooling with `npm run test:integration` and a standalone
|
|
30
|
+
`./run-status-check.sh` helper.
|
|
31
|
+
- Added ChatGPT setup documentation with screenshots and linked it from quick-start/docs navigation.
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
|
|
35
|
+
- Increased search default limit from 20 to 50 and maximum limit from 100 to 150.
|
|
36
|
+
- Reorganized setup docs to reduce overlap and centralize remote-access guidance.
|
|
37
|
+
|
|
38
|
+
### Removed
|
|
39
|
+
|
|
40
|
+
- Removed `preview` from search responses to align with bridge plugin output.
|
|
41
|
+
|
|
10
42
|
## [0.4.0] - 2026-02-14
|
|
11
43
|
|
|
12
44
|
### Added
|
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -4,11 +4,9 @@
|
|
|
4
4
|

|
|
5
5
|
[](https://codecov.io/gh/robert7/remnote-mcp-server)
|
|
6
6
|
|
|
7
|
-
MCP server that bridges AI agents (e.g. Claude Code) to [RemNote](https://remnote.com/) via the [RemNote
|
|
8
|
-
plugin](https://github.com/robert7/remnote-mcp-bridge).
|
|
7
|
+
MCP server that bridges AI agents (e.g. Claude Code) to [RemNote](https://remnote.com/) via the [RemNote Automation Bridge plugin](https://github.com/robert7/remnote-mcp-bridge).
|
|
9
8
|
|
|
10
|
-
> This is a working
|
|
11
|
-
> it and [report any bugs or issues](https://github.com/robert7/remnote-mcp-server/issues).
|
|
9
|
+
> This is a working solution, but still experimental. If you run into any issues, please [report them here](https://github.com/robert7/remnote-mcp-server/issues).
|
|
12
10
|
|
|
13
11
|
## What is This?
|
|
14
12
|
|
|
@@ -16,6 +14,9 @@ The RemNote MCP Server enables AI assistants like Claude Code to interact direct
|
|
|
16
14
|
through the Model Context Protocol (MCP). Create notes, search your knowledge base, update existing notes, and maintain
|
|
17
15
|
your daily journal—all through conversational commands.
|
|
18
16
|
|
|
17
|
+
For some agentic workflows or CLI-first automation, the companion app **[remnote-cli](https://github.com/robert7/remnote-cli)**
|
|
18
|
+
may be a better fit than running a full MCP server.
|
|
19
|
+
|
|
19
20
|
## Demo
|
|
20
21
|
|
|
21
22
|
See AI agent examples in action with RemNote: **[View Demo →](docs/demo.md)**
|
|
@@ -24,7 +25,7 @@ See AI agent examples in action with RemNote: **[View Demo →](docs/demo.md)**
|
|
|
24
25
|
|
|
25
26
|
This system consists of **two separate components** that work together:
|
|
26
27
|
|
|
27
|
-
1. **[RemNote
|
|
28
|
+
1. **[RemNote Automation Bridge](https://github.com/robert7/remnote-mcp-bridge)** - A RemNote plugin that runs in your browser
|
|
28
29
|
or RemNote desktop app and exposes RemNote API functionality via WebSocket
|
|
29
30
|
2. **RemNote MCP Server** (this project) - A standalone server that connects your AI assistant to the bridge using MCP
|
|
30
31
|
protocol
|
|
@@ -70,7 +71,7 @@ npm install -g remnote-mcp-server
|
|
|
70
71
|
|
|
71
72
|
### 2. Install the RemNote Plugin
|
|
72
73
|
|
|
73
|
-
Install the [RemNote
|
|
74
|
+
Install the [RemNote Automation Bridge plugin](https://github.com/robert7/remnote-mcp-bridge) in your RemNote app. Currently
|
|
74
75
|
available from GitHub; registration in the RemNote marketplace is pending approval. Configure the plugin to connect
|
|
75
76
|
to `ws://127.0.0.1:3002`.
|
|
76
77
|
|
|
@@ -91,9 +92,10 @@ Keep this terminal running.
|
|
|
91
92
|
### 4. Configure Your AI Client
|
|
92
93
|
|
|
93
94
|
- [Configuration Guide](docs/guides/configuration.md) - Overview and generic setup
|
|
95
|
+
- [ChatGPT](docs/guides/configuration-chatgpt.md) - ChatGPT Apps configuration
|
|
96
|
+
- [Claude Cowork](docs/guides/configuration-claude-cowork.md) - Cloud-based (requires remote access setup)
|
|
94
97
|
- [Claude Code CLI](docs/guides/configuration-claude-code-CLI.md) - Detailed Claude Code CLI configuration
|
|
95
98
|
- [Accomplish](docs/guides/configuration-accomplish.md) - Accomplish (Openwork) configuration
|
|
96
|
-
- [Claude Cowork](docs/guides/configuration-claude-cowork.md) - Cloud-based (requires remote access setup)
|
|
97
99
|
|
|
98
100
|
## Documentation
|
|
99
101
|
|
|
@@ -101,6 +103,7 @@ Keep this terminal running.
|
|
|
101
103
|
|
|
102
104
|
- **[Installation Guide](docs/guides/installation.md)** - Complete installation instructions
|
|
103
105
|
- **[Configuration Guide](docs/guides/configuration.md)** - Configure Claude Code CLI, Accomplish, and other clients
|
|
106
|
+
- **[ChatGPT Configuration Guide](docs/guides/configuration-chatgpt.md)** - Set up ChatGPT Apps with your MCP server
|
|
104
107
|
- **[Demo & Screenshots](docs/demo.md)** - See the server in action with different AI clients
|
|
105
108
|
|
|
106
109
|
### Usage
|
|
@@ -117,6 +120,7 @@ Keep this terminal running.
|
|
|
117
120
|
### Development
|
|
118
121
|
|
|
119
122
|
- **[Development Setup](docs/guides/development-setup.md)** - Contributing guide for developers
|
|
123
|
+
- **[Integration Testing](docs/guides/integration-testing.md)** - End-to-end validation against a live RemNote instance
|
|
120
124
|
- **[Publishing Guide](docs/npm-publishing.md)** - npm publishing process (maintainers only)
|
|
121
125
|
|
|
122
126
|
## Available MCP Tools
|
|
@@ -231,7 +235,7 @@ See the [Development Setup Guide](docs/guides/development-setup.md) for complete
|
|
|
231
235
|
|
|
232
236
|
## Related Projects
|
|
233
237
|
|
|
234
|
-
- [RemNote
|
|
238
|
+
- [RemNote Automation Bridge](https://github.com/robert7/remnote-mcp-bridge) - Browser plugin for RemNote integration
|
|
235
239
|
- [Model Context Protocol](https://modelcontextprotocol.io/) - Open protocol for AI-application integration
|
|
236
240
|
|
|
237
241
|
## License
|
package/dist/http-server.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export declare class HttpMcpServer {
|
|
|
12
12
|
private wsServer;
|
|
13
13
|
private serverInfo;
|
|
14
14
|
private logger;
|
|
15
|
+
private serverInstanceId;
|
|
15
16
|
private transports;
|
|
16
17
|
constructor(port: number, host: string, wsServer: WebSocketServer, serverInfo: ServerInfo, logger: Logger);
|
|
17
18
|
private setupRoutes;
|
package/dist/http-server.js
CHANGED
|
@@ -11,6 +11,7 @@ export class HttpMcpServer {
|
|
|
11
11
|
wsServer;
|
|
12
12
|
serverInfo;
|
|
13
13
|
logger;
|
|
14
|
+
serverInstanceId;
|
|
14
15
|
transports = new Map();
|
|
15
16
|
constructor(port, host, wsServer, serverInfo, logger) {
|
|
16
17
|
this.port = port;
|
|
@@ -18,6 +19,7 @@ export class HttpMcpServer {
|
|
|
18
19
|
this.wsServer = wsServer;
|
|
19
20
|
this.serverInfo = serverInfo;
|
|
20
21
|
this.logger = logger.child({ context: 'http-server' });
|
|
22
|
+
this.serverInstanceId = randomUUID();
|
|
21
23
|
// Create Express app with JSON parsing
|
|
22
24
|
this.app = express();
|
|
23
25
|
this.app.use(express.json());
|
|
@@ -137,11 +139,22 @@ export class HttpMcpServer {
|
|
|
137
139
|
async handleSessionRequest(sessionId, req, res, body) {
|
|
138
140
|
const transport = this.transports.get(sessionId);
|
|
139
141
|
if (!transport) {
|
|
142
|
+
this.logger.warn({
|
|
143
|
+
requestedSessionId: sessionId,
|
|
144
|
+
method: body?.method ?? 'unknown',
|
|
145
|
+
serverInstanceId: this.serverInstanceId,
|
|
146
|
+
}, 'Invalid MCP session ID received; client must reinitialize session');
|
|
140
147
|
res.status(400).json({
|
|
141
148
|
jsonrpc: '2.0',
|
|
142
149
|
error: {
|
|
143
150
|
code: -32600,
|
|
144
|
-
message: `Invalid session ID: ${sessionId}
|
|
151
|
+
message: `Invalid session ID: ${sessionId}. Session may have expired or server was restarted. Reinitialize MCP session (initialize + notifications/initialized).`,
|
|
152
|
+
data: {
|
|
153
|
+
reason: 'session_invalidated',
|
|
154
|
+
requiresReinitialize: true,
|
|
155
|
+
retryable: true,
|
|
156
|
+
serverInstanceId: this.serverInstanceId,
|
|
157
|
+
},
|
|
145
158
|
},
|
|
146
159
|
id: body?.id ?? null,
|
|
147
160
|
});
|
|
@@ -153,7 +166,7 @@ export class HttpMcpServer {
|
|
|
153
166
|
return new Promise((resolve, reject) => {
|
|
154
167
|
try {
|
|
155
168
|
this.server = this.app.listen(this.port, this.host, () => {
|
|
156
|
-
this.logger.info({ port: this.port, host: this.host }, 'HTTP server started');
|
|
169
|
+
this.logger.info({ port: this.port, host: this.host, serverInstanceId: this.serverInstanceId }, 'HTTP server started');
|
|
157
170
|
resolve();
|
|
158
171
|
});
|
|
159
172
|
this.server.on('error', (error) => {
|
package/dist/http-server.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-server.js","sourceRoot":"","sources":["../src/http-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AACnG,OAAO,OAAsD,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAQpD,MAAM,OAAO,aAAa;IAChB,GAAG,CAAU;IACb,MAAM,GAAyC,IAAI,CAAC;IACpD,IAAI,CAAS;IACb,IAAI,CAAS;IACb,QAAQ,CAAkB;IAC1B,UAAU,CAAa;IACvB,MAAM,CAAS;IACf,UAAU,GAAG,IAAI,GAAG,EAAyC,CAAC;IAEtE,YACE,IAAY,EACZ,IAAY,EACZ,QAAyB,EACzB,UAAsB,EACtB,MAAc;QAEd,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"http-server.js","sourceRoot":"","sources":["../src/http-server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,6BAA6B,EAAE,MAAM,oDAAoD,CAAC;AACnG,OAAO,OAAsD,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC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AS,CAAC,CAAC;YACpC,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,uBAAuB,CAAC,CAAC;YACnE,CAAC;QACH,CAAC;QAED,oBAAoB;QACpB,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC7B,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;gBAChB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE;oBACrB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;oBACxC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;oBACnB,OAAO,EAAE,CAAC;gBACZ,CAAC,CAAC,CAAC;YACL,CAAC;iBAAM,CAAC;gBACN,OAAO,EAAE,CAAC;YACZ,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED,qBAAqB;QACnB,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAC9B,CAAC;CACF"}
|
|
@@ -7,8 +7,8 @@ export const CreateNoteSchema = z.object({
|
|
|
7
7
|
});
|
|
8
8
|
export const SearchSchema = z.object({
|
|
9
9
|
query: z.string().describe('Search query text'),
|
|
10
|
-
limit: z.number().int().min(1).max(
|
|
11
|
-
includeContent: z.boolean().default(false).describe('Include child content'),
|
|
10
|
+
limit: z.number().int().min(1).max(150).default(50).describe('Maximum results'),
|
|
11
|
+
includeContent: z.boolean().default(false).describe('Include child content in results'),
|
|
12
12
|
});
|
|
13
13
|
export const ReadNoteSchema = z.object({
|
|
14
14
|
remId: z.string().describe('The Rem ID to read'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remnote-schemas.js","sourceRoot":"","sources":["../../src/schemas/remnote-schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MA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Q,CAAC,WAAW,CAAC;IAClD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IAC9E,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC;IAC/D,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gBAAgB,CAAC;CACtE,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6CAA6C,CAAC;IAC3E,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,mBAAmB,CAAC;CACnE,CAAC,CAAC"}
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -51,6 +51,44 @@ export declare const SEARCH_TOOL: {
|
|
|
51
51
|
};
|
|
52
52
|
required: string[];
|
|
53
53
|
};
|
|
54
|
+
outputSchema: {
|
|
55
|
+
type: "object";
|
|
56
|
+
properties: {
|
|
57
|
+
results: {
|
|
58
|
+
type: string;
|
|
59
|
+
description: string;
|
|
60
|
+
items: {
|
|
61
|
+
type: string;
|
|
62
|
+
properties: {
|
|
63
|
+
remId: {
|
|
64
|
+
type: string;
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
title: {
|
|
68
|
+
type: string;
|
|
69
|
+
description: string;
|
|
70
|
+
};
|
|
71
|
+
detail: {
|
|
72
|
+
type: string;
|
|
73
|
+
description: string;
|
|
74
|
+
};
|
|
75
|
+
remType: {
|
|
76
|
+
type: string;
|
|
77
|
+
description: string;
|
|
78
|
+
};
|
|
79
|
+
cardDirection: {
|
|
80
|
+
type: string;
|
|
81
|
+
description: string;
|
|
82
|
+
};
|
|
83
|
+
content: {
|
|
84
|
+
type: string;
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
54
92
|
};
|
|
55
93
|
export declare const READ_NOTE_TOOL: {
|
|
56
94
|
name: string;
|
|
@@ -69,6 +107,53 @@ export declare const READ_NOTE_TOOL: {
|
|
|
69
107
|
};
|
|
70
108
|
required: string[];
|
|
71
109
|
};
|
|
110
|
+
outputSchema: {
|
|
111
|
+
type: "object";
|
|
112
|
+
properties: {
|
|
113
|
+
remId: {
|
|
114
|
+
type: string;
|
|
115
|
+
description: string;
|
|
116
|
+
};
|
|
117
|
+
title: {
|
|
118
|
+
type: string;
|
|
119
|
+
description: string;
|
|
120
|
+
};
|
|
121
|
+
detail: {
|
|
122
|
+
type: string;
|
|
123
|
+
description: string;
|
|
124
|
+
};
|
|
125
|
+
remType: {
|
|
126
|
+
type: string;
|
|
127
|
+
description: string;
|
|
128
|
+
};
|
|
129
|
+
cardDirection: {
|
|
130
|
+
type: string;
|
|
131
|
+
description: string;
|
|
132
|
+
};
|
|
133
|
+
content: {
|
|
134
|
+
type: string;
|
|
135
|
+
description: string;
|
|
136
|
+
};
|
|
137
|
+
children: {
|
|
138
|
+
type: string;
|
|
139
|
+
description: string;
|
|
140
|
+
items: {
|
|
141
|
+
type: string;
|
|
142
|
+
properties: {
|
|
143
|
+
remId: {
|
|
144
|
+
type: string;
|
|
145
|
+
};
|
|
146
|
+
text: {
|
|
147
|
+
type: string;
|
|
148
|
+
};
|
|
149
|
+
children: {
|
|
150
|
+
type: string;
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
};
|
|
72
157
|
};
|
|
73
158
|
export declare const UPDATE_NOTE_TOOL: {
|
|
74
159
|
name: string;
|
package/dist/tools/index.js
CHANGED
|
@@ -20,20 +20,55 @@ export const CREATE_NOTE_TOOL = {
|
|
|
20
20
|
};
|
|
21
21
|
export const SEARCH_TOOL = {
|
|
22
22
|
name: 'remnote_search',
|
|
23
|
-
description: 'Search the RemNote knowledge base
|
|
23
|
+
description: 'Search the RemNote knowledge base. Results are sorted by type: documents first, then concepts, descriptors, portals, and plain text.',
|
|
24
24
|
inputSchema: {
|
|
25
25
|
type: 'object',
|
|
26
26
|
properties: {
|
|
27
27
|
query: { type: 'string', description: 'Search query text' },
|
|
28
|
-
limit: { type: 'number', description: 'Maximum results (1-
|
|
29
|
-
includeContent: {
|
|
28
|
+
limit: { type: 'number', description: 'Maximum results (1-150, default: 50)' },
|
|
29
|
+
includeContent: {
|
|
30
|
+
type: 'boolean',
|
|
31
|
+
description: 'Include first child bullets as content (default: false)',
|
|
32
|
+
},
|
|
30
33
|
},
|
|
31
34
|
required: ['query'],
|
|
32
35
|
},
|
|
36
|
+
outputSchema: {
|
|
37
|
+
type: 'object',
|
|
38
|
+
properties: {
|
|
39
|
+
results: {
|
|
40
|
+
type: 'array',
|
|
41
|
+
description: 'Search results sorted by type (documents, concepts, descriptors, portals, text)',
|
|
42
|
+
items: {
|
|
43
|
+
type: 'object',
|
|
44
|
+
properties: {
|
|
45
|
+
remId: { type: 'string', description: 'Unique Rem ID' },
|
|
46
|
+
title: { type: 'string', description: 'Rendered title with markdown formatting' },
|
|
47
|
+
detail: {
|
|
48
|
+
type: 'string',
|
|
49
|
+
description: 'Back text for CDF/flashcard Rems (omitted if none)',
|
|
50
|
+
},
|
|
51
|
+
remType: {
|
|
52
|
+
type: 'string',
|
|
53
|
+
description: 'Rem classification: document, dailyDocument, concept, descriptor, portal, or text',
|
|
54
|
+
},
|
|
55
|
+
cardDirection: {
|
|
56
|
+
type: 'string',
|
|
57
|
+
description: 'Flashcard direction: forward, reverse, or bidirectional (omitted if not a flashcard)',
|
|
58
|
+
},
|
|
59
|
+
content: {
|
|
60
|
+
type: 'string',
|
|
61
|
+
description: 'Child content (only when includeContent=true)',
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
33
68
|
};
|
|
34
69
|
export const READ_NOTE_TOOL = {
|
|
35
70
|
name: 'remnote_read_note',
|
|
36
|
-
description: 'Read a specific note from RemNote by its Rem ID',
|
|
71
|
+
description: 'Read a specific note from RemNote by its Rem ID, including type classification and flashcard metadata',
|
|
37
72
|
inputSchema: {
|
|
38
73
|
type: 'object',
|
|
39
74
|
properties: {
|
|
@@ -42,6 +77,38 @@ export const READ_NOTE_TOOL = {
|
|
|
42
77
|
},
|
|
43
78
|
required: ['remId'],
|
|
44
79
|
},
|
|
80
|
+
outputSchema: {
|
|
81
|
+
type: 'object',
|
|
82
|
+
properties: {
|
|
83
|
+
remId: { type: 'string', description: 'Unique Rem ID' },
|
|
84
|
+
title: { type: 'string', description: 'Rendered title with markdown formatting' },
|
|
85
|
+
detail: {
|
|
86
|
+
type: 'string',
|
|
87
|
+
description: 'Back text for CDF/flashcard Rems (omitted if none)',
|
|
88
|
+
},
|
|
89
|
+
remType: {
|
|
90
|
+
type: 'string',
|
|
91
|
+
description: 'Rem classification: document, dailyDocument, concept, descriptor, portal, or text',
|
|
92
|
+
},
|
|
93
|
+
cardDirection: {
|
|
94
|
+
type: 'string',
|
|
95
|
+
description: 'Flashcard direction: forward, reverse, or bidirectional (omitted if not a flashcard)',
|
|
96
|
+
},
|
|
97
|
+
content: { type: 'string', description: 'Rendered title text (same as title)' },
|
|
98
|
+
children: {
|
|
99
|
+
type: 'array',
|
|
100
|
+
description: 'Child Rems up to requested depth',
|
|
101
|
+
items: {
|
|
102
|
+
type: 'object',
|
|
103
|
+
properties: {
|
|
104
|
+
remId: { type: 'string' },
|
|
105
|
+
text: { type: 'string' },
|
|
106
|
+
children: { type: 'array' },
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
},
|
|
45
112
|
};
|
|
46
113
|
export const UPDATE_NOTE_TOOL = {
|
|
47
114
|
name: 'remnote_update_note',
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAEnG,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAGpE,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,sEAAsE;IACnF,WAAW,EAAE;QACX,IAAI,EAAE,QAAiB;QACvB,UAAU,EAAE;YACV,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,uBAAuB,EAAE;YAC/D,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,8CAA8C,EAAE;YACxF,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE;YAC1D,IAAI,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,WAAW,EAAE,eAAe,EAAE;SACjF;QACD,QAAQ,EAAE,CAAC,OAAO,CAAC;KACpB;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,IAAI,EAAE,gBAAgB;IACtB,WAAW,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/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Z,IAAI,EAAE,UAAU,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE;qBACzE;iBACF;gBACD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,8BAA8B;IAC9B,MAAM,CAAC,iBAAiB,CAAC,sBAAsB,EAAE,KAAK,IAAI,EAAE;QAC1D,UAAU,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;QAE5C,OAAO;YACL,KAAK,EAAE;gBACL,gBAAgB;gBAChB,WAAW;gBACX,cAAc;gBACd,gBAAgB;gBAChB,mBAAmB;gBACnB,WAAW;aACZ;SACF,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remnote-mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.1",
|
|
4
4
|
"description": "MCP server bridge for RemNote knowledge base",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"test": "vitest run",
|
|
17
17
|
"test:watch": "vitest",
|
|
18
18
|
"test:coverage": "vitest run --coverage",
|
|
19
|
+
"test:integration": "tsx test/integration/run-integration.ts",
|
|
19
20
|
"test:ui": "vitest --ui",
|
|
20
21
|
"lint": "eslint src test --ext .ts",
|
|
21
22
|
"lint:fix": "eslint src test --ext .ts --fix",
|