@inkdropapp/mcp-server 1.1.0 → 1.1.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 +6 -8
- package/dist/index.js +3 -2
- package/package.json +1 -1
- package/src/index.ts +3 -2
package/README.md
CHANGED
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
A [Model Context Protocol](https://github.com/modelcontextprotocol) server for the [Inkdrop Local HTTP Server API](https://developers.inkdrop.app/data-access/local-http-server).
|
|
4
4
|
|
|
5
|
-
>
|
|
6
|
-
|
|
5
|
+
<a href="https://glama.ai/mcp/servers/c7fgtnckbv">
|
|
6
|
+
<img width="380" height="200" src="https://glama.ai/mcp/servers/c7fgtnckbv/badge" alt="Inkdrop Server MCP server" />
|
|
7
|
+
</a>
|
|
7
8
|
|
|
8
9
|
## Installation
|
|
9
10
|
|
|
@@ -18,13 +19,10 @@ A [Model Context Protocol](https://github.com/modelcontextprotocol) server for t
|
|
|
18
19
|
"mcpServers": {
|
|
19
20
|
"inkdrop": {
|
|
20
21
|
"command": "npx",
|
|
21
|
-
"args": [
|
|
22
|
-
"-y",
|
|
23
|
-
"@inkdropapp/mcp-server"
|
|
24
|
-
],
|
|
22
|
+
"args": ["-y", "@inkdropapp/mcp-server"],
|
|
25
23
|
"env": {
|
|
26
24
|
"INKDROP_LOCAL_SERVER_URL": "http://localhost:19840",
|
|
27
|
-
"INKDROP_LOCAL_USERNAME": "your-local-server-username"
|
|
25
|
+
"INKDROP_LOCAL_USERNAME": "your-local-server-username",
|
|
28
26
|
"INKDROP_LOCAL_PASSWORD": "your-local-server-password"
|
|
29
27
|
}
|
|
30
28
|
}
|
|
@@ -44,7 +42,7 @@ A [Model Context Protocol](https://github.com/modelcontextprotocol) server for t
|
|
|
44
42
|
- `keyword`: Keyword to search for.
|
|
45
43
|
- Note: Results include truncated note bodies (200 characters). Use `read-note` to get full content.
|
|
46
44
|
- Supports advanced search qualifiers like `book:`, `tag:`, `status:`, `title:`, etc.
|
|
47
|
-
3. **`list-notes`**: List all notes
|
|
45
|
+
3. **`list-notes`**: List all notes with specified conditions.
|
|
48
46
|
- Required inputs:
|
|
49
47
|
- `bookId`: The notebook ID. It always starts with 'book:'.
|
|
50
48
|
- Optional inputs:
|
package/dist/index.js
CHANGED
|
@@ -127,12 +127,13 @@ Note that you can't specify excluding modifiers only without including condition
|
|
|
127
127
|
]
|
|
128
128
|
};
|
|
129
129
|
});
|
|
130
|
-
server.tool('list-notes', `List all notes
|
|
130
|
+
server.tool('list-notes', `List all notes with specified conditions.
|
|
131
131
|
The result does not include entire note bodies as they are truncated in 200 characters.
|
|
132
132
|
You have to retrieve the full note content by calling \`read-note\`.
|
|
133
133
|
`, {
|
|
134
134
|
bookId: zod_1.z
|
|
135
135
|
.string()
|
|
136
|
+
.optional()
|
|
136
137
|
.describe(`ID of the notebook. It always starts with 'book:'. You can retrieve a list of notebooks with \`list-notebooks\``),
|
|
137
138
|
tagIds: zod_1.z
|
|
138
139
|
.array(zod_1.z.string())
|
|
@@ -151,7 +152,7 @@ You have to retrieve the full note content by calling \`read-note\`.
|
|
|
151
152
|
.default(true)
|
|
152
153
|
.describe(`Reverse the order of the output documents`)
|
|
153
154
|
}, async ({ bookId, tagIds, keyword, sort, descending }) => {
|
|
154
|
-
const bookFilter = `bookId:${bookId.split(':')[1]}
|
|
155
|
+
const bookFilter = bookId ? `bookId:${bookId.split(':')[1]}` : '';
|
|
155
156
|
const tagFilter = tagIds ? tagIds.map(t => `tagId:${t}`).join(' ') : '';
|
|
156
157
|
keyword = `${bookFilter} ${tagFilter} ${keyword || ''}`.trim();
|
|
157
158
|
const notes = await (0, api_1.fetchJSON)('/notes', {
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -152,13 +152,14 @@ Note that you can't specify excluding modifiers only without including condition
|
|
|
152
152
|
|
|
153
153
|
server.tool(
|
|
154
154
|
'list-notes',
|
|
155
|
-
`List all notes
|
|
155
|
+
`List all notes with specified conditions.
|
|
156
156
|
The result does not include entire note bodies as they are truncated in 200 characters.
|
|
157
157
|
You have to retrieve the full note content by calling \`read-note\`.
|
|
158
158
|
`,
|
|
159
159
|
{
|
|
160
160
|
bookId: z
|
|
161
161
|
.string()
|
|
162
|
+
.optional()
|
|
162
163
|
.describe(
|
|
163
164
|
`ID of the notebook. It always starts with 'book:'. You can retrieve a list of notebooks with \`list-notebooks\``
|
|
164
165
|
),
|
|
@@ -182,7 +183,7 @@ You have to retrieve the full note content by calling \`read-note\`.
|
|
|
182
183
|
.describe(`Reverse the order of the output documents`)
|
|
183
184
|
},
|
|
184
185
|
async ({ bookId, tagIds, keyword, sort, descending }) => {
|
|
185
|
-
const bookFilter = `bookId:${bookId.split(':')[1]}`
|
|
186
|
+
const bookFilter = bookId ? `bookId:${bookId.split(':')[1]}` : ''
|
|
186
187
|
const tagFilter = tagIds ? tagIds.map(t => `tagId:${t}`).join(' ') : ''
|
|
187
188
|
keyword = `${bookFilter} ${tagFilter} ${keyword || ''}`.trim()
|
|
188
189
|
const notes: Note[] = await fetchJSON('/notes', {
|