@doconda/mcp 0.0.0-stage → 0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Doconda
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,40 @@
1
- # Temporary Holding Version
1
+ # @doconda/mcp
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
+ MCP server for [Doconda](https://doconda.com): create, review and edit **Word, PowerPoint, Excel and PDF** documents from Claude Code, Claude Desktop, OpenAI Codex, Cursor or any MCP client.
4
+
5
+ ## Claude Desktop, Cursor and other clients
6
+
7
+ ```json
8
+ {
9
+ "mcpServers": {
10
+ "doconda": {
11
+ "command": "npx",
12
+ "args": ["-y", "@doconda/mcp"],
13
+ "env": { "DOCONDA_API_KEY": "ak_eu_…" }
14
+ }
15
+ }
16
+ }
17
+ ```
18
+
19
+ ## Claude Code
20
+
21
+ ```bash
22
+ claude mcp add --transport stdio --env DOCONDA_API_KEY=ak_eu_… doconda -- npx -y @doconda/mcp
23
+ ```
24
+
25
+ ## OpenAI Codex (`~/.codex/config.toml`)
26
+
27
+ ```toml
28
+ [mcp_servers.doconda]
29
+ command = "npx"
30
+ args = ["-y", "@doconda/mcp"]
31
+ env = { DOCONDA_API_KEY = "ak_eu_…" }
32
+ ```
33
+
34
+ Then ask: *"make an Excel with this project's costs"* or *"review this contract.docx before I send it"*.
35
+
36
+ There is also a remote server, with no install: `https://api.eu.doconda.com/mcp` (Streamable HTTP, header `Authorization: Bearer ak_eu_…`).
37
+
38
+ Tools: `create_document`, `upload_file`, `review_document`, `edit_document`, `list_documents`, `get_document`, `get_report`, `read_artifact_data`.
39
+
40
+ Docs: https://docs.doconda.com/en/agents/mcp · Get an API key: https://doconda.com
package/dist/cli.d.mts ADDED
@@ -0,0 +1 @@
1
+ export {}
package/dist/cli.mjs ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env node
2
+ import { t as createServer } from "./src-BaSOMaOO.mjs";
3
+ import { Doconda } from "@doconda/sdk";
4
+ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
5
+ //#region src/cli.ts
6
+ await createServer(new Doconda(), { localFiles: true }).connect(new StdioServerTransport());
7
+ //#endregion
8
+ export {};
@@ -0,0 +1,5 @@
1
+ import { Doconda } from "@doconda/sdk";
2
+ import { IncomingMessage, ServerResponse } from "node:http";
3
+ //#region src/http.d.ts
4
+ export declare function handleMcpRequest(doconda: Doconda, req: IncomingMessage, res: ServerResponse, body: unknown): Promise<void>;
5
+ //#endregion
package/dist/http.mjs ADDED
@@ -0,0 +1,18 @@
1
+ import { t as createServer } from "./src-BaSOMaOO.mjs";
2
+ import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
3
+ //#region src/http.ts
4
+ async function handleMcpRequest(doconda, req, res, body) {
5
+ const server = createServer(doconda);
6
+ const transport = new StreamableHTTPServerTransport({
7
+ sessionIdGenerator: void 0,
8
+ enableJsonResponse: true
9
+ });
10
+ res.on("close", () => {
11
+ transport.close();
12
+ server.close();
13
+ });
14
+ await server.connect(transport);
15
+ await transport.handleRequest(req, res, body);
16
+ }
17
+ //#endregion
18
+ export { handleMcpRequest };
@@ -0,0 +1,5 @@
1
+ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
2
+ import { Doconda, ToolOptions } from "@doconda/sdk";
3
+ //#region src/index.d.ts
4
+ export declare function createServer(doconda: Doconda, options?: ToolOptions): Server;
5
+ //#endregion
package/dist/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ import { t as createServer } from "./src-BaSOMaOO.mjs";
2
+ export { createServer };
@@ -0,0 +1,55 @@
1
+ import { Server } from "@modelcontextprotocol/sdk/server/index.js";
2
+ import { CallToolRequestSchema, ListToolsRequestSchema } from "@modelcontextprotocol/sdk/types.js";
3
+ import { DocondaError } from "@doconda/sdk";
4
+ //#region src/index.ts
5
+ function createServer(doconda, options = {}) {
6
+ const tools = doconda.tools(options);
7
+ const server = new Server({
8
+ name: "doconda",
9
+ version: "0.1.0"
10
+ }, {
11
+ capabilities: { tools: {} },
12
+ instructions: "Doconda creates, reviews and edits documents (Word, PDF, PowerPoint, Excel) and artifacts (web pages with shared data). Share the links it returns with the user; they expire, so call get_document for fresh ones."
13
+ });
14
+ server.setRequestHandler(ListToolsRequestSchema, async () => ({ tools: tools.map(({ name, description, inputSchema }) => ({
15
+ name,
16
+ description,
17
+ inputSchema
18
+ })) }));
19
+ server.setRequestHandler(CallToolRequestSchema, async (request) => {
20
+ const tool = tools.find((t) => t.name === request.params.name);
21
+ if (!tool) return {
22
+ isError: true,
23
+ content: [{
24
+ type: "text",
25
+ text: `Unknown tool ${request.params.name}.`
26
+ }]
27
+ };
28
+ try {
29
+ const result = await tool.run(request.params.arguments ?? {});
30
+ return { content: [{
31
+ type: "text",
32
+ text: JSON.stringify(result, null, 2)
33
+ }] };
34
+ } catch (err) {
35
+ const e = err instanceof DocondaError ? {
36
+ error: err.code,
37
+ message: err.message,
38
+ fields: err.errors
39
+ } : {
40
+ error: "failed",
41
+ message: String(err?.message ?? err)
42
+ };
43
+ return {
44
+ isError: true,
45
+ content: [{
46
+ type: "text",
47
+ text: JSON.stringify(e)
48
+ }]
49
+ };
50
+ }
51
+ });
52
+ return server;
53
+ }
54
+ //#endregion
55
+ export { createServer as t };
package/package.json CHANGED
@@ -1,6 +1,70 @@
1
1
  {
2
2
  "name": "@doconda/mcp",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "mcpName": "com.doconda/mcp",
4
+ "version": "0.1.1",
5
+ "description": "Doconda MCP server: create, review and edit Word, PowerPoint, Excel and PDF documents from Claude Code, Codex, Cursor and any MCP client.",
6
+ "keywords": [
7
+ "docx",
8
+ "pptx",
9
+ "xlsx",
10
+ "pdf",
11
+ "word",
12
+ "powerpoint",
13
+ "excel",
14
+ "document-generation",
15
+ "ai-agents",
16
+ "llm",
17
+ "tools",
18
+ "ai-sdk",
19
+ "openai",
20
+ "anthropic",
21
+ "bedrock",
22
+ "vertex-ai",
23
+ "mcp",
24
+ "model-context-protocol",
25
+ "claude-code",
26
+ "cursor",
27
+ "codex"
28
+ ],
29
+ "homepage": "https://doconda.com",
30
+ "license": "MIT",
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "git+https://github.com/B-C-Software/doconda.git",
34
+ "directory": "packages/mcp"
35
+ },
36
+ "type": "module",
37
+ "bin": {
38
+ "doconda-mcp": "./dist/cli.mjs"
39
+ },
40
+ "exports": {
41
+ ".": {
42
+ "types": "./dist/index.d.mts",
43
+ "default": "./dist/index.mjs"
44
+ },
45
+ "./http": {
46
+ "types": "./dist/http.d.mts",
47
+ "default": "./dist/http.mjs"
48
+ }
49
+ },
50
+ "dependencies": {
51
+ "@modelcontextprotocol/sdk": "^1.31.0",
52
+ "zod": "^4.5.4",
53
+ "@doconda/sdk": "0.1.1"
54
+ },
55
+ "devDependencies": {
56
+ "@types/node": "^26.6.3",
57
+ "typescript": "~6.0.3"
58
+ },
59
+ "files": [
60
+ "dist"
61
+ ],
62
+ "publishConfig": {
63
+ "access": "public"
64
+ },
65
+ "scripts": {
66
+ "test": "node --test 'src/**/*.test.ts'",
67
+ "typecheck": "tsc --noEmit",
68
+ "build": "tsdown"
69
+ }
6
70
  }