@qontoctl/mcp 0.0.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.
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
package/dist/index.js ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+ // SPDX-License-Identifier: AGPL-3.0-only
3
+ // Copyright (C) 2026 Oleksii PELYKH
4
+ import { runStdioServer } from "./stdio.js";
5
+ await runStdioServer();
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,yCAAyC;AACzC,oCAAoC;AAEpC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,MAAM,cAAc,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
2
+ export declare function createServer(): McpServer;
3
+ //# sourceMappingURL=server.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,wBAAgB,YAAY,IAAI,SAAS,CAOxC"}
package/dist/server.js ADDED
@@ -0,0 +1,11 @@
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
+ // Copyright (C) 2026 Oleksii PELYKH
3
+ import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
4
+ export function createServer() {
5
+ const server = new McpServer({
6
+ name: "qontoctl",
7
+ version: "0.0.0",
8
+ });
9
+ return server;
10
+ }
11
+ //# sourceMappingURL=server.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"server.js","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,oCAAoC;AAEpC,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAEpE,MAAM,UAAU,YAAY;IAC1B,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC;QAC3B,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,OAAO;KACjB,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Start the MCP server on stdio and register signal handlers for
3
+ * graceful shutdown. This function does not return under normal
4
+ * operation — the process stays alive until SIGINT/SIGTERM.
5
+ */
6
+ export declare function runStdioServer(): Promise<void>;
7
+ //# sourceMappingURL=stdio.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["../src/stdio.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AACH,wBAAsB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CA4BpD"}
package/dist/stdio.js ADDED
@@ -0,0 +1,36 @@
1
+ // SPDX-License-Identifier: AGPL-3.0-only
2
+ // Copyright (C) 2026 Oleksii PELYKH
3
+ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
4
+ import { createServer } from "./server.js";
5
+ /**
6
+ * Start the MCP server on stdio and register signal handlers for
7
+ * graceful shutdown. This function does not return under normal
8
+ * operation — the process stays alive until SIGINT/SIGTERM.
9
+ */
10
+ export async function runStdioServer() {
11
+ const server = createServer();
12
+ const transport = new StdioServerTransport();
13
+ try {
14
+ await server.connect(transport);
15
+ }
16
+ catch (error) {
17
+ const message = error instanceof Error ? error.message : String(error);
18
+ process.stderr.write(`Failed to start MCP server: ${message}\n`);
19
+ process.exit(1);
20
+ }
21
+ process.stderr.write("qontoctl MCP server running on stdio\n");
22
+ function shutdown() {
23
+ server
24
+ .close()
25
+ .catch((error) => {
26
+ const message = error instanceof Error ? error.message : String(error);
27
+ process.stderr.write(`Error during shutdown: ${message}\n`);
28
+ })
29
+ .finally(() => {
30
+ process.exit(0);
31
+ });
32
+ }
33
+ process.on("SIGINT", shutdown);
34
+ process.on("SIGTERM", shutdown);
35
+ }
36
+ //# sourceMappingURL=stdio.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stdio.js","sourceRoot":"","sources":["../src/stdio.ts"],"names":[],"mappings":"AAAA,yCAAyC;AACzC,oCAAoC;AAEpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc;IAClC,MAAM,MAAM,GAAG,YAAY,EAAE,CAAC;IAC9B,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAE7C,IAAI,CAAC;QACH,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAClC,CAAC;IAAC,OAAO,KAAc,EAAE,CAAC;QACxB,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACvE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,+BAA+B,OAAO,IAAI,CAAC,CAAC;QACjE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;IAED,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,wCAAwC,CAAC,CAAC;IAE/D,SAAS,QAAQ;QACf,MAAM;aACH,KAAK,EAAE;aACP,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE;YACxB,MAAM,OAAO,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACvE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,0BAA0B,OAAO,IAAI,CAAC,CAAC;QAC9D,CAAC,CAAC;aACD,OAAO,CAAC,GAAG,EAAE;YACZ,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC,CAAC,CAAC;IACP,CAAC;IAED,OAAO,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAC/B,OAAO,CAAC,EAAE,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;AAClC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@qontoctl/mcp",
3
+ "version": "0.0.0",
4
+ "description": "MCP server for Qonto API integration",
5
+ "type": "module",
6
+ "engines": {
7
+ "node": ">=24"
8
+ },
9
+ "license": "AGPL-3.0-only",
10
+ "author": "Alexey Pelykh (https://github.com/alexey-pelykh)",
11
+ "homepage": "https://github.com/alexey-pelykh/qontoctl/tree/main/packages/mcp",
12
+ "bugs": "https://github.com/alexey-pelykh/qontoctl/issues",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/alexey-pelykh/qontoctl.git",
16
+ "directory": "packages/mcp"
17
+ },
18
+ "exports": {
19
+ ".": {
20
+ "types": "./dist/server.d.ts",
21
+ "import": "./dist/server.js"
22
+ },
23
+ "./server": {
24
+ "types": "./dist/server.d.ts",
25
+ "import": "./dist/server.js"
26
+ },
27
+ "./stdio": {
28
+ "types": "./dist/stdio.d.ts",
29
+ "import": "./dist/stdio.js"
30
+ }
31
+ },
32
+ "bin": {
33
+ "qontoctl-mcp": "./dist/index.js"
34
+ },
35
+ "files": [
36
+ "dist"
37
+ ],
38
+ "scripts": {
39
+ "build": "tsc",
40
+ "test": "vitest run --passWithNoTests",
41
+ "lint": "eslint src/",
42
+ "dev": "tsc --watch"
43
+ },
44
+ "dependencies": {
45
+ "@qontoctl/core": "workspace:^",
46
+ "@modelcontextprotocol/sdk": "catalog:",
47
+ "zod": "catalog:"
48
+ },
49
+ "devDependencies": {
50
+ "@types/node": "catalog:",
51
+ "eslint": "catalog:",
52
+ "typescript": "catalog:",
53
+ "vitest": "catalog:"
54
+ }
55
+ }