outline-mcp-server 4.9.0 → 4.10.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 +2 -4
- package/build/index.js +16 -21
- package/build/index.js.map +1 -1
- package/build/tools/archiveDocument.js +14 -14
- package/build/tools/archiveDocument.js.map +1 -1
- package/build/tools/createCollection.js +23 -22
- package/build/tools/createCollection.js.map +1 -1
- package/build/tools/createComment.js +21 -20
- package/build/tools/createComment.js.map +1 -1
- package/build/tools/createDocument.js +22 -21
- package/build/tools/createDocument.js.map +1 -1
- package/build/tools/deleteComment.js +13 -13
- package/build/tools/deleteComment.js.map +1 -1
- package/build/tools/deleteDocument.js +13 -12
- package/build/tools/deleteDocument.js.map +1 -1
- package/build/tools/getCollection.js +10 -9
- package/build/tools/getCollection.js.map +1 -1
- package/build/tools/getDocument.js +10 -9
- package/build/tools/getDocument.js.map +1 -1
- package/build/tools/listCollections.js +13 -12
- package/build/tools/listCollections.js.map +1 -1
- package/build/tools/listDocuments.js +41 -31
- package/build/tools/listDocuments.js.map +1 -1
- package/build/tools/listUsers.js +42 -41
- package/build/tools/listUsers.js.map +1 -1
- package/build/tools/moveDocument.js +21 -20
- package/build/tools/moveDocument.js.map +1 -1
- package/build/tools/searchDocuments.js +22 -14
- package/build/tools/searchDocuments.js.map +1 -1
- package/build/tools/updateCollection.js +27 -26
- package/build/tools/updateCollection.js.map +1 -1
- package/build/tools/updateComment.js +18 -17
- package/build/tools/updateComment.js.map +1 -1
- package/build/tools/updateDocument.js +23 -22
- package/build/tools/updateDocument.js.map +1 -1
- package/build/utils/importTools.d.ts +1 -1
- package/build/utils/importTools.d.ts.map +1 -1
- package/build/utils/importTools.js +2 -2
- package/build/utils/importTools.js.map +1 -1
- package/build/utils/listTools.d.ts +6 -12
- package/build/utils/listTools.d.ts.map +1 -1
- package/build/utils/listTools.js +4 -14
- package/build/utils/listTools.js.map +1 -1
- package/package.json +6 -5
@@ -1,17 +1,11 @@
|
|
1
|
+
import type { Tool } from '@modelcontextprotocol/sdk/types';
|
2
|
+
export type ToolHandler<Args> = (args: Args) => Promise<unknown>;
|
1
3
|
/**
|
2
4
|
* Utility to collect tool definitions from handler modules
|
3
5
|
*/
|
4
|
-
export interface ToolDefinition {
|
5
|
-
|
6
|
-
description: string;
|
7
|
-
inputSchema: {
|
8
|
-
properties: Record<string, any>;
|
9
|
-
required?: string[];
|
10
|
-
type: string;
|
11
|
-
};
|
6
|
+
export interface ToolDefinition<Args> extends Tool {
|
7
|
+
handler: ToolHandler<Args>;
|
12
8
|
}
|
13
|
-
export
|
14
|
-
export declare function
|
15
|
-
export declare function getToolDefinitions(): ToolDefinition[];
|
16
|
-
export declare function getToolHandlers(): Record<string, ToolHandler>;
|
9
|
+
export declare function registerTool<Args>(definition: ToolDefinition<Args>): void;
|
10
|
+
export declare function getToolDefinitions(): Record<string, ToolDefinition<unknown>>;
|
17
11
|
//# sourceMappingURL=listTools.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"listTools.d.ts","sourceRoot":"","sources":["../../src/utils/listTools.ts"],"names":[],"mappings":"AAAA
|
1
|
+
{"version":3,"file":"listTools.d.ts","sourceRoot":"","sources":["../../src/utils/listTools.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iCAAiC,CAAC;AAG5D,MAAM,MAAM,WAAW,CAAC,IAAI,IAAI,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAEjE;;GAEG;AAGH,MAAM,WAAW,cAAc,CAAC,IAAI,CAAE,SAAQ,IAAI;IAChD,OAAO,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;CAC5B;AAMD,wBAAgB,YAAY,CAAC,IAAI,EAAE,UAAU,EAAE,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI,CAEzE;AAGD,wBAAgB,kBAAkB,IAAI,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC,CAE5E"}
|
package/build/utils/listTools.js
CHANGED
@@ -1,21 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
*/
|
4
|
-
// We'll collect all tool definitions here
|
5
|
-
const toolDefinitions = [];
|
6
|
-
// Map of tool names to handler functions
|
7
|
-
const toolHandlers = {};
|
1
|
+
// We'll collect all tool definitions here, keyed by name
|
2
|
+
const toolDefinitions = {};
|
8
3
|
// Function to register a tool definition
|
9
|
-
export function registerTool(definition
|
10
|
-
toolDefinitions.
|
11
|
-
toolHandlers[definition.name] = handler;
|
4
|
+
export function registerTool(definition) {
|
5
|
+
toolDefinitions[definition.name] = definition;
|
12
6
|
}
|
13
7
|
// Function to get all registered tool definitions
|
14
8
|
export function getToolDefinitions() {
|
15
9
|
return toolDefinitions;
|
16
10
|
}
|
17
|
-
// Function to get all registered tool handlers
|
18
|
-
export function getToolHandlers() {
|
19
|
-
return toolHandlers;
|
20
|
-
}
|
21
11
|
//# sourceMappingURL=listTools.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"listTools.js","sourceRoot":"","sources":["../../src/utils/listTools.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"listTools.js","sourceRoot":"","sources":["../../src/utils/listTools.ts"],"names":[],"mappings":"AAcA,yDAAyD;AACzD,MAAM,eAAe,GAA4C,EAAE,CAAC;AAEpE,yCAAyC;AACzC,MAAM,UAAU,YAAY,CAAO,UAAgC;IACjE,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,UAAgD,CAAC;AACtF,CAAC;AAED,kDAAkD;AAClD,MAAM,UAAU,kBAAkB;IAChC,OAAO,eAAe,CAAC;AACzB,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "outline-mcp-server",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.10.1",
|
4
4
|
"description": "An MCP server for interacting with Outline's API",
|
5
5
|
"type": "module",
|
6
6
|
"bin": {
|
@@ -22,9 +22,8 @@
|
|
22
22
|
"scripts": {
|
23
23
|
"build": "tsc && chmod +x build/index.js && chmod +x bin/cli.js",
|
24
24
|
"prepare": "npm run build",
|
25
|
-
"watch": "tsc --watch",
|
26
|
-
"
|
27
|
-
"dev": "npm run build && npm run start",
|
25
|
+
"watch": "npm run build && tsc --watch",
|
26
|
+
"dev": "concurrently -n 'build,inspector' -c 'blue.bold,green.bold' 'npm run watch' 'npx @modelcontextprotocol/inspector build/index.js'",
|
28
27
|
"start:stdio": "npm run build && echo 'build done. running...\n' && node build/index.js",
|
29
28
|
"start": "npx -y supergateway --port 6060 --stdio \"npm run start:stdio\"",
|
30
29
|
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json}\"",
|
@@ -33,12 +32,14 @@
|
|
33
32
|
"dependencies": {
|
34
33
|
"@modelcontextprotocol/sdk": "0.6.0",
|
35
34
|
"axios": "^1.6.0",
|
36
|
-
"dotenv": "16.4.7"
|
35
|
+
"dotenv": "16.4.7",
|
36
|
+
"omit-ts": "^2.0.1"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
39
|
"@semantic-release/changelog": "^6.0.3",
|
40
40
|
"@semantic-release/git": "^10.0.1",
|
41
41
|
"@types/node": "^20.11.24",
|
42
|
+
"concurrently": "^9.1.2",
|
42
43
|
"prettier": "^3.2.5",
|
43
44
|
"semantic-release": "^22.0.12",
|
44
45
|
"typescript": "^5.3.3"
|