msoffice-mcp 0.1.0__tar.gz
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.
- msoffice_mcp-0.1.0/LICENSE +202 -0
- msoffice_mcp-0.1.0/NOTICE +9 -0
- msoffice_mcp-0.1.0/PKG-INFO +468 -0
- msoffice_mcp-0.1.0/README.md +434 -0
- msoffice_mcp-0.1.0/pyproject.toml +74 -0
- msoffice_mcp-0.1.0/src/office_mcp/__init__.py +20 -0
- msoffice_mcp-0.1.0/src/office_mcp/__main__.py +5 -0
- msoffice_mcp-0.1.0/src/office_mcp/comthread.py +153 -0
- msoffice_mcp-0.1.0/src/office_mcp/excel/__init__.py +5 -0
- msoffice_mcp-0.1.0/src/office_mcp/excel/constants.py +127 -0
- msoffice_mcp-0.1.0/src/office_mcp/excel/controller.py +1824 -0
- msoffice_mcp-0.1.0/src/office_mcp/excel/dispatch.py +957 -0
- msoffice_mcp-0.1.0/src/office_mcp/excel/errors.py +71 -0
- msoffice_mcp-0.1.0/src/office_mcp/excel/guide.md +156 -0
- msoffice_mcp-0.1.0/src/office_mcp/excel/service.py +209 -0
- msoffice_mcp-0.1.0/src/office_mcp/excel/session.py +77 -0
- msoffice_mcp-0.1.0/src/office_mcp/excel/snapshot.py +149 -0
- msoffice_mcp-0.1.0/src/office_mcp/excel/test_excel.py +292 -0
- msoffice_mcp-0.1.0/src/office_mcp/excel/tools.py +460 -0
- msoffice_mcp-0.1.0/src/office_mcp/paths.py +68 -0
- msoffice_mcp-0.1.0/src/office_mcp/ppt/__init__.py +6 -0
- msoffice_mcp-0.1.0/src/office_mcp/ppt/charts.py +513 -0
- msoffice_mcp-0.1.0/src/office_mcp/ppt/constants.py +695 -0
- msoffice_mcp-0.1.0/src/office_mcp/ppt/controller.py +1352 -0
- msoffice_mcp-0.1.0/src/office_mcp/ppt/dispatch.py +418 -0
- msoffice_mcp-0.1.0/src/office_mcp/ppt/errors.py +52 -0
- msoffice_mcp-0.1.0/src/office_mcp/ppt/guide.py +221 -0
- msoffice_mcp-0.1.0/src/office_mcp/ppt/pictures.py +245 -0
- msoffice_mcp-0.1.0/src/office_mcp/ppt/service.py +243 -0
- msoffice_mcp-0.1.0/src/office_mcp/ppt/session.py +67 -0
- msoffice_mcp-0.1.0/src/office_mcp/ppt/shapes.py +607 -0
- msoffice_mcp-0.1.0/src/office_mcp/ppt/tables.py +440 -0
- msoffice_mcp-0.1.0/src/office_mcp/ppt/test_ppt.py +536 -0
- msoffice_mcp-0.1.0/src/office_mcp/ppt/text.py +288 -0
- msoffice_mcp-0.1.0/src/office_mcp/ppt/tools.py +378 -0
- msoffice_mcp-0.1.0/src/office_mcp/server/__init__.py +15 -0
- msoffice_mcp-0.1.0/src/office_mcp/server/build.py +104 -0
- msoffice_mcp-0.1.0/src/office_mcp/server/cli.py +167 -0
- msoffice_mcp-0.1.0/src/office_mcp/server/config.py +76 -0
- msoffice_mcp-0.1.0/src/office_mcp/server/response.py +149 -0
- msoffice_mcp-0.1.0/src/office_mcp/server/tool_definition.py +78 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/__init__.py +11 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/controller.py +225 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/test_word.py +112 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/test_word_suite.py +868 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/tools.py +677 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/__init__.py +170 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/_guide.py +55 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/_skill/wordcom-mcp/SKILL.md +359 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/_skill/wordcom-python/SKILL.md +765 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/constants.py +885 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/content/__init__.py +1 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/content/_charts.py +586 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/content/_equations.py +192 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/content/_fields.py +158 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/content/_hyperlinks.py +193 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/content/_images.py +186 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/content/_markdown_blocks.py +142 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/content/_notes.py +219 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/content/_shapes.py +522 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/content/_tables.py +876 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/exceptions.py +298 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/model/__init__.py +1 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/model/_anchors.py +5403 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/model/_application.py +83 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/model/_coerce.py +151 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/model/_document.py +2180 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/model/_edit_scope.py +94 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/model/_inline_runs.py +191 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/model/_lists.py +455 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/model/_para_index.py +370 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/model/_properties.py +178 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/model/_sections.py +327 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/model/_selection.py +119 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/model/_styles.py +259 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/model/_themes.py +279 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/model/_variables.py +95 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/references/__init__.py +1 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/references/_authorities.py +82 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/references/_book_index.py +66 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/references/_citations.py +106 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/references/_sources.py +311 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/references/_toc.py +111 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/render/__init__.py +1 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/render/_export.py +945 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/render/_snapshot.py +187 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/review/__init__.py +1 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/review/_checkpoints.py +517 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/review/_comments.py +153 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/review/_find_replace.py +183 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/review/_lint.py +393 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/review/_lint_consistency.py +191 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/review/_proofing.py +97 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/review/_revisions.py +337 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/runtime/__init__.py +1 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/runtime/_com.py +283 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/runtime/_dispatch.py +1108 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/runtime/_ops.py +1416 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/runtime/_path_policy.py +214 -0
- msoffice_mcp-0.1.0/src/office_mcp/word/wordcom/runtime/_worker.py +152 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Office MCP
|
|
2
|
+
Copyright 2026 Muhammad Huzaifa
|
|
3
|
+
|
|
4
|
+
Created by Muhammad Huzaifa
|
|
5
|
+
https://github.com/mhuzaifashah/office-mcp
|
|
6
|
+
|
|
7
|
+
This product is licensed under the Apache License, Version 2.0 (see LICENSE).
|
|
8
|
+
Redistributions of this work or of derivative works must keep this NOTICE
|
|
9
|
+
file, as required by Section 4(d) of the License.
|
|
@@ -0,0 +1,468 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: msoffice-mcp
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: MCP servers for live Microsoft Office (Word, Excel, PowerPoint) control over COM
|
|
5
|
+
Keywords: mcp,model-context-protocol,microsoft-word,word,office,com,automation,ai-agents,claude,windows
|
|
6
|
+
Author: Muhammad Huzaifa
|
|
7
|
+
Author-email: Muhammad Huzaifa <151254717+mhuzaifashah@users.noreply.github.com>
|
|
8
|
+
License-Expression: Apache-2.0
|
|
9
|
+
License-File: LICENSE
|
|
10
|
+
License-File: NOTICE
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: Intended Audience :: End Users/Desktop
|
|
15
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Topic :: Office/Business :: Office Suites
|
|
20
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
21
|
+
Requires-Dist: pywin32>=311 ; sys_platform == 'win32'
|
|
22
|
+
Requires-Dist: pymupdf>=1.24
|
|
23
|
+
Requires-Dist: pillow>=11
|
|
24
|
+
Requires-Dist: xlwings>=0.33
|
|
25
|
+
Requires-Dist: mcp>=2.3,<3
|
|
26
|
+
Requires-Dist: latex2mathml>=3.77 ; extra == 'equations'
|
|
27
|
+
Requires-Python: >=3.13
|
|
28
|
+
Project-URL: Documentation, https://github.com/mhuzaifashah/office-mcp/blob/main/docs/tool-reference.md
|
|
29
|
+
Project-URL: Homepage, https://github.com/mhuzaifashah/office-mcp
|
|
30
|
+
Project-URL: Issues, https://github.com/mhuzaifashah/office-mcp/issues
|
|
31
|
+
Project-URL: Repository, https://github.com/mhuzaifashah/office-mcp
|
|
32
|
+
Provides-Extra: equations
|
|
33
|
+
Description-Content-Type: text/markdown
|
|
34
|
+
|
|
35
|
+
# Office MCP
|
|
36
|
+
|
|
37
|
+
An MCP server that lets AI agents work in the Microsoft Office apps open on
|
|
38
|
+
your Windows PC. It edits the document you have open right now, not a copy of
|
|
39
|
+
the file. You watch the changes appear, and each change the agent makes is a
|
|
40
|
+
single Ctrl+Z.
|
|
41
|
+
|
|
42
|
+
Word is supported today. Excel and PowerPoint are in preview: turn them on
|
|
43
|
+
with `--apps word,excel,ppt`.
|
|
44
|
+
|
|
45
|
+
**What an agent can do in Word**
|
|
46
|
+
|
|
47
|
+
- Read structure: outline, paragraphs, tables, comments, tracked changes, styles.
|
|
48
|
+
- Edit with about 120 operations: text, styles, lists, tables, images, charts,
|
|
49
|
+
equations, footnotes, fields, tables of contents, headers and footers, comments.
|
|
50
|
+
- Batch many edits into one call. If any edit fails, the whole batch is undone.
|
|
51
|
+
- Render pages as images to check the layout the way you see it.
|
|
52
|
+
- Save, save as, or export to PDF, but only into folders you allow.
|
|
53
|
+
|
|
54
|
+
## Requirements
|
|
55
|
+
|
|
56
|
+
- Windows with the desktop version of Microsoft Word installed.
|
|
57
|
+
- [uv](https://docs.astral.sh/uv/getting-started/installation/), which installs
|
|
58
|
+
Python and the server for you.
|
|
59
|
+
- Optional: Microsoft Excel, used by Word to insert charts.
|
|
60
|
+
|
|
61
|
+
The server is a Windows program. Agents that run in WSL start it through
|
|
62
|
+
Windows; see [Agents running in WSL](#agents-running-in-wsl).
|
|
63
|
+
|
|
64
|
+
## Getting started
|
|
65
|
+
|
|
66
|
+
Most MCP clients take this standard config:
|
|
67
|
+
|
|
68
|
+
```json
|
|
69
|
+
{
|
|
70
|
+
"mcpServers": {
|
|
71
|
+
"office": {
|
|
72
|
+
"command": "uvx",
|
|
73
|
+
"args": ["msoffice-mcp", "--save-dir", "C:\\AI output"]
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
Without `--save-dir` the agent can read and edit open documents, but it cannot
|
|
80
|
+
write any file.
|
|
81
|
+
|
|
82
|
+
The first start downloads the server and its dependencies, which can take
|
|
83
|
+
15 to 30 seconds and trip a client's startup timeout. Run
|
|
84
|
+
`uvx msoffice-mcp --version` once in a terminal first, and later starts take
|
|
85
|
+
about 2 seconds.
|
|
86
|
+
|
|
87
|
+
Then open a document in Word and ask your agent, for example: *"Read the
|
|
88
|
+
outline of my open document and tighten the introduction."*
|
|
89
|
+
|
|
90
|
+
### Add it to your agent
|
|
91
|
+
|
|
92
|
+
Some Word calls (exporting a long PDF, rendering many pages) take more than a
|
|
93
|
+
minute. Where a client cuts tool calls off sooner, the entries below raise its
|
|
94
|
+
limit to 300 seconds, the same time the server waits for a busy Word.
|
|
95
|
+
|
|
96
|
+
<details>
|
|
97
|
+
<summary>Antigravity</summary>
|
|
98
|
+
|
|
99
|
+
In the Antigravity app open Customizations, then Installed, then MCP Servers,
|
|
100
|
+
and choose Add MCP Server. In the IDE open the "..." menu in the agent panel,
|
|
101
|
+
then MCP Servers, Manage MCP Servers, View raw config. Add the standard config
|
|
102
|
+
to `mcp_config.json` (global: `~/.gemini/config/mcp_config.json`; a server's
|
|
103
|
+
menu has Copy Config File Path), with a longer tool timeout:
|
|
104
|
+
|
|
105
|
+
```json
|
|
106
|
+
{
|
|
107
|
+
"mcpServers": {
|
|
108
|
+
"office": {
|
|
109
|
+
"command": "uvx",
|
|
110
|
+
"args": ["msoffice-mcp", "--save-dir", "C:\\AI output"],
|
|
111
|
+
"timeoutSeconds": 300
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
Antigravity saves large images from tools to a file and gives the agent the
|
|
118
|
+
file, so `word_snapshot` pages reach the model that way.
|
|
119
|
+
|
|
120
|
+
</details>
|
|
121
|
+
|
|
122
|
+
<details>
|
|
123
|
+
<summary>Claude Code</summary>
|
|
124
|
+
|
|
125
|
+
```sh
|
|
126
|
+
claude mcp add office --scope user -- uvx msoffice-mcp --save-dir "C:\AI output"
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
No timeout changes are needed. Calls that run longer than two minutes move to
|
|
130
|
+
the background on their own.
|
|
131
|
+
|
|
132
|
+
</details>
|
|
133
|
+
|
|
134
|
+
<details>
|
|
135
|
+
<summary>Claude Desktop</summary>
|
|
136
|
+
|
|
137
|
+
Open Settings, then Developer, then Edit Config, and add the standard config
|
|
138
|
+
to `claude_desktop_config.json`. Restart Claude Desktop.
|
|
139
|
+
|
|
140
|
+
</details>
|
|
141
|
+
|
|
142
|
+
<details>
|
|
143
|
+
<summary>Cline</summary>
|
|
144
|
+
|
|
145
|
+
From the Cline CLI:
|
|
146
|
+
|
|
147
|
+
```sh
|
|
148
|
+
cline mcp add office --yes -- uvx msoffice-mcp --save-dir "C:\AI output"
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
Or in the extension open the MCP Servers view, choose Configure MCP Servers,
|
|
152
|
+
and add the standard config with a `timeout`:
|
|
153
|
+
|
|
154
|
+
```json
|
|
155
|
+
{
|
|
156
|
+
"mcpServers": {
|
|
157
|
+
"office": {
|
|
158
|
+
"command": "uvx",
|
|
159
|
+
"args": ["msoffice-mcp", "--save-dir", "C:\\AI output"],
|
|
160
|
+
"timeout": 300
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
`timeout` is in seconds and covers startup and every tool call. Without it,
|
|
167
|
+
Cline stops tool calls after 60 seconds and startup after 10.
|
|
168
|
+
|
|
169
|
+
</details>
|
|
170
|
+
|
|
171
|
+
<details>
|
|
172
|
+
<summary>Codex (CLI, IDE extension, app)</summary>
|
|
173
|
+
|
|
174
|
+
```sh
|
|
175
|
+
codex mcp add office -- uvx msoffice-mcp --save-dir "C:\AI output"
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
Then raise the timeouts in `~/.codex/config.toml`
|
|
179
|
+
(`%USERPROFILE%\.codex\config.toml` on Windows). The CLI, the IDE extension
|
|
180
|
+
and the ChatGPT desktop app share this file.
|
|
181
|
+
|
|
182
|
+
```toml
|
|
183
|
+
[mcp_servers.office]
|
|
184
|
+
command = "uvx"
|
|
185
|
+
args = ["msoffice-mcp", "--save-dir", 'C:\AI output']
|
|
186
|
+
startup_timeout_sec = 60
|
|
187
|
+
tool_timeout_sec = 300
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
Codex passes only a few environment variables to servers, so use flags rather
|
|
191
|
+
than `OFFICE_MCP_*` variables, or list them under `env`.
|
|
192
|
+
|
|
193
|
+
</details>
|
|
194
|
+
|
|
195
|
+
<details>
|
|
196
|
+
<summary>Cursor</summary>
|
|
197
|
+
|
|
198
|
+
Add the standard config to `%USERPROFILE%\.cursor\mcp.json`, or to
|
|
199
|
+
`.cursor\mcp.json` in a project.
|
|
200
|
+
|
|
201
|
+
</details>
|
|
202
|
+
|
|
203
|
+
<details>
|
|
204
|
+
<summary>Hermes Agent</summary>
|
|
205
|
+
|
|
206
|
+
```sh
|
|
207
|
+
hermes mcp add office --command uvx --args msoffice-mcp --save-dir "C:\AI output"
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
`--args` takes everything after it, so keep it last. Or edit the config
|
|
211
|
+
(`~/.hermes/config.yaml`; on native Windows it is under `%LOCALAPPDATA%\hermes`):
|
|
212
|
+
|
|
213
|
+
```yaml
|
|
214
|
+
mcp_servers:
|
|
215
|
+
office:
|
|
216
|
+
command: uvx
|
|
217
|
+
args: [msoffice-mcp, --save-dir, 'C:\AI output']
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
The default tool timeout, 300 seconds, is enough. In WSL, see
|
|
221
|
+
[Agents running in WSL](#agents-running-in-wsl).
|
|
222
|
+
|
|
223
|
+
</details>
|
|
224
|
+
|
|
225
|
+
<details>
|
|
226
|
+
<summary>OpenClaw</summary>
|
|
227
|
+
|
|
228
|
+
```sh
|
|
229
|
+
openclaw mcp add office --command uvx --arg msoffice-mcp --arg --save-dir --arg "C:\AI output"
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
Then set a longer request timeout (the default is 60 seconds) in
|
|
233
|
+
`~/.openclaw/openclaw.json`:
|
|
234
|
+
|
|
235
|
+
```json5
|
|
236
|
+
{
|
|
237
|
+
mcp: {
|
|
238
|
+
servers: {
|
|
239
|
+
office: {
|
|
240
|
+
command: "uvx",
|
|
241
|
+
args: ["msoffice-mcp", "--save-dir", "C:\\AI output"],
|
|
242
|
+
requestTimeoutMs: 300000,
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
}
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
Office automation only reaches apps in your signed-in desktop session. If the
|
|
250
|
+
OpenClaw Gateway runs as a background service, the server cannot see Word, so
|
|
251
|
+
run the Gateway in your own session.
|
|
252
|
+
|
|
253
|
+
</details>
|
|
254
|
+
|
|
255
|
+
<details>
|
|
256
|
+
<summary>OpenCode</summary>
|
|
257
|
+
|
|
258
|
+
```sh
|
|
259
|
+
opencode mcp add office -- uvx msoffice-mcp --save-dir "C:\AI output"
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
Or add to `opencode.json` (global: `~/.config/opencode/opencode.json`):
|
|
263
|
+
|
|
264
|
+
```json
|
|
265
|
+
{
|
|
266
|
+
"$schema": "https://opencode.ai/config.json",
|
|
267
|
+
"mcp": {
|
|
268
|
+
"office": {
|
|
269
|
+
"type": "local",
|
|
270
|
+
"command": ["uvx", "msoffice-mcp", "--save-dir", "C:\\AI output"],
|
|
271
|
+
"enabled": true,
|
|
272
|
+
"timeout": 300000
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
`timeout` is in milliseconds. Leave it out and tool calls may be stopped after
|
|
279
|
+
30 seconds.
|
|
280
|
+
|
|
281
|
+
</details>
|
|
282
|
+
|
|
283
|
+
<details>
|
|
284
|
+
<summary>VS Code (GitHub Copilot)</summary>
|
|
285
|
+
|
|
286
|
+
Add to `.vscode/mcp.json`:
|
|
287
|
+
|
|
288
|
+
```json
|
|
289
|
+
{
|
|
290
|
+
"servers": {
|
|
291
|
+
"office": {
|
|
292
|
+
"command": "uvx",
|
|
293
|
+
"args": ["msoffice-mcp", "--save-dir", "C:\\AI output"]
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
</details>
|
|
300
|
+
|
|
301
|
+
<details>
|
|
302
|
+
<summary>From a source checkout</summary>
|
|
303
|
+
|
|
304
|
+
```json
|
|
305
|
+
{
|
|
306
|
+
"mcpServers": {
|
|
307
|
+
"office": {
|
|
308
|
+
"command": "uv",
|
|
309
|
+
"args": ["run", "--directory", "C:\\path\\to\\office-mcp", "msoffice-mcp"]
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
```
|
|
314
|
+
|
|
315
|
+
</details>
|
|
316
|
+
|
|
317
|
+
Other clients: use the standard config wherever the client adds a local
|
|
318
|
+
(stdio) MCP server.
|
|
319
|
+
|
|
320
|
+
### Agents running in WSL
|
|
321
|
+
|
|
322
|
+
The server must run on Windows, but an agent inside WSL can start it there.
|
|
323
|
+
Use the Windows `uvx.exe` as the command, or go through `cmd.exe`:
|
|
324
|
+
|
|
325
|
+
```sh
|
|
326
|
+
claude mcp add office --scope user -- uvx.exe msoffice-mcp --save-dir "C:\AI output"
|
|
327
|
+
hermes mcp add office --command cmd.exe --args /c uvx msoffice-mcp --save-dir "C:\AI output"
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
- `uvx.exe` is found when WSL adds the Windows PATH, which it does by default.
|
|
331
|
+
Otherwise give its full path as WSL sees it (by default uv installs it in
|
|
332
|
+
`%USERPROFILE%\.local\bin`).
|
|
333
|
+
- `cmd.exe` prints a "UNC paths are not supported" warning when the agent
|
|
334
|
+
starts from a Linux folder. The warning is harmless; starting the agent from a
|
|
335
|
+
folder on a Windows drive avoids it.
|
|
336
|
+
- Linux environment variables do not reach the Windows process, so pass
|
|
337
|
+
settings as flags. Paths are Windows paths (`C:\...`).
|
|
338
|
+
|
|
339
|
+
### Client support
|
|
340
|
+
|
|
341
|
+
The server speaks MCP over stdio and works with every protocol version from
|
|
342
|
+
2024-11-05 on. Everything an agent needs is in the tool descriptions and the
|
|
343
|
+
guide, so a client that skips the server instructions or resources still
|
|
344
|
+
works.
|
|
345
|
+
|
|
346
|
+
| Client | Sees `word_snapshot` images | Server instructions | Timeout to set |
|
|
347
|
+
| --- | --- | --- | --- |
|
|
348
|
+
| Antigravity | yes, saved to a file first | yes | `timeoutSeconds: 300` |
|
|
349
|
+
| Claude Code | yes | yes | none |
|
|
350
|
+
| Cline | yes | not documented | `timeout: 300` |
|
|
351
|
+
| Codex | yes, with image-capable models | yes | `tool_timeout_sec = 300` |
|
|
352
|
+
| Hermes Agent | yes | not documented | none |
|
|
353
|
+
| OpenClaw | yes | yes | `requestTimeoutMs: 300000` |
|
|
354
|
+
| OpenCode | yes | yes | `timeout: 300000` |
|
|
355
|
+
|
|
356
|
+
## Tools
|
|
357
|
+
|
|
358
|
+
Each app has four tools. The many operations sit behind them, so the agent's
|
|
359
|
+
tool list stays short.
|
|
360
|
+
|
|
361
|
+
| Tool | Does | Changes things |
|
|
362
|
+
| --- | --- | --- |
|
|
363
|
+
| `word_read` | Every read: status, outline, text, tables, find, comments, the guide, ... | no |
|
|
364
|
+
| `word_exec` | Every edit, as a batch of ops applied as one undo step | yes |
|
|
365
|
+
| `word_snapshot` | Renders pages as PNG images | no |
|
|
366
|
+
| `word_write` | Open, save, save as, export PDF, Track Changes on or off | yes |
|
|
367
|
+
|
|
368
|
+
Agents learn the ops from the built-in guide: `word_read(command="guide")`,
|
|
369
|
+
also served as the `office-mcp://word/guide` resource. All parameters are in
|
|
370
|
+
the [tool reference](https://github.com/mhuzaifashah/office-mcp/blob/main/docs/tool-reference.md).
|
|
371
|
+
|
|
372
|
+
### Excel (preview)
|
|
373
|
+
|
|
374
|
+
Add `excel` to `--apps` (for example `"args": ["msoffice-mcp", "--apps", "word,excel"]`)
|
|
375
|
+
to get `excel_read`, `excel_exec`, `excel_snapshot` and `excel_write`. They work
|
|
376
|
+
on the workbooks open in Excel: read and find cells, write values and formulas,
|
|
377
|
+
format, sort, and build tables, charts, pivot tables and conditional formats.
|
|
378
|
+
`excel_snapshot` renders a range with its row numbers and column letters, so
|
|
379
|
+
the agent can check its work. The ops are in `excel_read(command="guide")`.
|
|
380
|
+
|
|
381
|
+
Excel can't undo changes made by automation: Ctrl+Z won't step back through
|
|
382
|
+
the agent's edits, and they clear Excel's undo history. If an edit fails
|
|
383
|
+
part-way through a batch, the cell values and formulas it overwrote are put
|
|
384
|
+
back, but formatting and structural changes (new sheets, rows, tables, charts)
|
|
385
|
+
stay. Save a copy first when the data matters.
|
|
386
|
+
|
|
387
|
+
### PowerPoint (preview)
|
|
388
|
+
|
|
389
|
+
Add `ppt` to `--apps` to get `ppt_read`, `ppt_exec`, `ppt_snapshot` and
|
|
390
|
+
`ppt_write`. They work on the presentations open in PowerPoint: add and
|
|
391
|
+
arrange slides, fill placeholders, write and format text, add shapes, pictures,
|
|
392
|
+
tables, charts and connectors, and edit speaker notes. `ppt_snapshot` renders
|
|
393
|
+
slides with each shape outlined and labelled with its id, which is how the
|
|
394
|
+
agent finds what to edit. The ops are in `ppt_read(command="guide")`.
|
|
395
|
+
|
|
396
|
+
Every op in a batch is checked before any runs (including that the slides and
|
|
397
|
+
shapes it names exist). PowerPoint can't roll automation back, so if an op
|
|
398
|
+
fails part-way, the ones before it stay and the error lists them.
|
|
399
|
+
|
|
400
|
+
## Configuration
|
|
401
|
+
|
|
402
|
+
Every flag has an environment variable. A flag wins over its variable.
|
|
403
|
+
Directory lists in variables are separated by `;`.
|
|
404
|
+
|
|
405
|
+
| Flag | Variable | Default | Meaning |
|
|
406
|
+
| --- | --- | --- | --- |
|
|
407
|
+
| `--apps LIST` | `OFFICE_MCP_APPS` | `word` | Apps to expose, comma-separated |
|
|
408
|
+
| `--read-only` | `OFFICE_MCP_READ_ONLY=1` | off | Only the tools that never change a document or file |
|
|
409
|
+
| `--save-dir DIR` | `OFFICE_MCP_SAVE_DIRS` | none | Folders saves and exports may write into; repeatable. None means saving is off |
|
|
410
|
+
| `--image-dir DIR` | `OFFICE_MCP_IMAGE_DIRS` | any local path | Folders images may be inserted from; repeatable |
|
|
411
|
+
| `--max-output-chars N` | | 60000 | Longest text one tool call returns before it is truncated |
|
|
412
|
+
| `--snapshot-max-dim PX` | | 1200 | Default cap on a rendered page's long edge |
|
|
413
|
+
| `--snapshot-max-pages N` | | 10 | Most pages one snapshot call returns |
|
|
414
|
+
| `--log-level LEVEL` | | `WARNING` | Log level for messages on stderr |
|
|
415
|
+
| | `WORDCOM_CALL_TIMEOUT` | 300 | Seconds to wait for Word before a call fails as busy; `0` waits forever |
|
|
416
|
+
| | `OFFICE_MCP_CALL_TIMEOUT` | 300 | The same for Excel and PowerPoint |
|
|
417
|
+
|
|
418
|
+
## Safety
|
|
419
|
+
|
|
420
|
+
- **Your documents stay yours.** The server edits the open document in place
|
|
421
|
+
and never saves on its own. In Word every call is one undo step, so you can
|
|
422
|
+
step back through what the agent did with Ctrl+Z. Excel has no undo for
|
|
423
|
+
automated edits, and PowerPoint can't roll a failed batch back; see
|
|
424
|
+
[Excel (preview)](#excel-preview) and [PowerPoint (preview)](#powerpoint-preview).
|
|
425
|
+
- **No file writes unless you allow a folder.** Saves and PDF exports outside
|
|
426
|
+
`--save-dir` folders are refused.
|
|
427
|
+
- **Local files only.** Network paths (`\\server\share`) and URLs are refused for
|
|
428
|
+
documents and images, so a document cannot make the server contact another
|
|
429
|
+
machine.
|
|
430
|
+
- **Read-only mode.** `--read-only` removes every tool that changes something.
|
|
431
|
+
- Tools carry MCP annotations (`readOnlyHint`, `destructiveHint`) so clients
|
|
432
|
+
can ask you before running edits.
|
|
433
|
+
|
|
434
|
+
## Troubleshooting
|
|
435
|
+
|
|
436
|
+
- **`word_not_running`**: start Word and open the document, or let the agent
|
|
437
|
+
open a file with `word_write(command="open", path=...)`.
|
|
438
|
+
- **`word_busy`**: a dialog is open in Word (Save As, a warning). Close it and
|
|
439
|
+
the agent can retry.
|
|
440
|
+
- **`path_not_allowed`** when saving: start the server with `--save-dir`.
|
|
441
|
+
- **The server fails to start the first time**: the first start downloads the
|
|
442
|
+
server and can outlast the client's startup timeout. Run
|
|
443
|
+
`uvx msoffice-mcp --version` once, then restart the client.
|
|
444
|
+
- **A long call fails with a timeout**: raise the client's tool timeout; see
|
|
445
|
+
[Add it to your agent](#add-it-to-your-agent).
|
|
446
|
+
- **Nothing happens in WSL**: Office automation needs the Windows build of the
|
|
447
|
+
server; see [Agents running in WSL](#agents-running-in-wsl).
|
|
448
|
+
|
|
449
|
+
## Development
|
|
450
|
+
|
|
451
|
+
```sh
|
|
452
|
+
uv sync
|
|
453
|
+
uv run pytest # mocked Word, runs anywhere on Windows
|
|
454
|
+
uv run pytest -m smoke # against a real running Word
|
|
455
|
+
uv run python scripts/gen_tool_reference.py # after changing a tool
|
|
456
|
+
```
|
|
457
|
+
|
|
458
|
+
See [docs/design-principles.md](https://github.com/mhuzaifashah/office-mcp/blob/main/docs/design-principles.md) for how tools are
|
|
459
|
+
shaped and how to add an app.
|
|
460
|
+
|
|
461
|
+
## License
|
|
462
|
+
|
|
463
|
+
Office MCP is created by Muhammad Huzaifa and licensed under the
|
|
464
|
+
[Apache License 2.0](https://github.com/mhuzaifashah/office-mcp/blob/main/LICENSE).
|
|
465
|
+
You may use, change and redistribute it, including commercially. If you
|
|
466
|
+
redistribute it or a modified version, keep the
|
|
467
|
+
[NOTICE](https://github.com/mhuzaifashah/office-mcp/blob/main/NOTICE) file,
|
|
468
|
+
which credits the author.
|