@fre4x/docx 1.0.45
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 +35 -0
- package/dist/index.js +78018 -0
- package/package.json +35 -0
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# @fre4x/docx
|
|
2
|
+
|
|
3
|
+
An MCP server for creating and reading Microsoft Word (.docx) documents. Operates locally with no external APIs required.
|
|
4
|
+
|
|
5
|
+
## Tools
|
|
6
|
+
|
|
7
|
+
| Tool | Description | Inputs |
|
|
8
|
+
|------|-------------|--------|
|
|
9
|
+
| `docx_create_document` | Creates a new `.docx` file | `filepath` (string), `content` (string), `title` (optional string) |
|
|
10
|
+
| `docx_read_document` | Reads text from a `.docx` file | `filepath` (string) |
|
|
11
|
+
|
|
12
|
+
## Installation & Configuration
|
|
13
|
+
|
|
14
|
+
### Claude Desktop
|
|
15
|
+
|
|
16
|
+
Add the following to your `claude_desktop_config.json`:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"mcpServers": {
|
|
21
|
+
"docx": {
|
|
22
|
+
"command": "npx",
|
|
23
|
+
"args": ["-y", "@fre4x/docx"]
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Mock Mode
|
|
30
|
+
|
|
31
|
+
The server supports a `MOCK` mode which returns mock fixtures without making any real file system changes.
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
MOCK=true npx @fre4x/docx
|
|
35
|
+
```
|