mcp-win-stdio 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.
- mcp_win_stdio-0.1.0/.gitignore +60 -0
- mcp_win_stdio-0.1.0/LICENSE +21 -0
- mcp_win_stdio-0.1.0/PKG-INFO +189 -0
- mcp_win_stdio-0.1.0/README.md +145 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-excel/README.md +44 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-excel/pyproject.toml +44 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-excel/src/mcp_win_stdio/excel/__init__.py +5 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-excel/src/mcp_win_stdio/excel/cli.py +186 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-excel/src/mcp_win_stdio/excel/guide.py +52 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-excel/src/mcp_win_stdio/excel/server.py +1011 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-explorer/README.md +44 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-explorer/pyproject.toml +42 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-explorer/src/mcp_win_stdio/explorer/__init__.py +5 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-explorer/src/mcp_win_stdio/explorer/cli.py +176 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-explorer/src/mcp_win_stdio/explorer/guide.py +53 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-explorer/src/mcp_win_stdio/explorer/server.py +1376 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-tsc/pyproject.toml +40 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-tsc/src/mcp_win_stdio/tsc/__init__.py +5 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-tsc/src/mcp_win_stdio/tsc/__main__.py +8 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-tsc/src/mcp_win_stdio/tsc/cli.py +89 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-tsc/src/mcp_win_stdio/tsc/guide.py +56 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-tsc/src/mcp_win_stdio/tsc/server.py +388 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-word/pyproject.toml +42 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-word/src/mcp_win_stdio/word/__init__.py +5 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-word/src/mcp_win_stdio/word/__main__.py +8 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-word/src/mcp_win_stdio/word/cli.py +79 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-word/src/mcp_win_stdio/word/guide.py +77 -0
- mcp_win_stdio-0.1.0/packages/mcp-win-stdio-word/src/mcp_win_stdio/word/server.py +991 -0
- mcp_win_stdio-0.1.0/pyproject.toml +71 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/__init__.py +5 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/cli.py +375 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/core/config.py +55 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/core/discovery.py +110 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/core/installer.py +218 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/excel/__init__.py +5 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/excel/__main__.py +8 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/excel/cli.py +186 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/excel/guide.py +52 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/excel/server.py +1011 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/explorer/__init__.py +5 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/explorer/__main__.py +8 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/explorer/cli.py +176 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/explorer/guide.py +53 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/explorer/server.py +1376 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/guides/__init__.py +1 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/guides/excel_guide.py +69 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/guides/explorer_guide.py +68 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/guides/tsc_guide.py +5 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/guides/word_guide.py +5 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/tsc/__init__.py +5 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/tsc/__main__.py +8 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/tsc/cli.py +89 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/tsc/guide.py +56 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/tsc/server.py +388 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/word/__init__.py +5 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/word/__main__.py +8 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/word/cli.py +79 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/word/guide.py +77 -0
- mcp_win_stdio-0.1.0/src/mcp_win_stdio/word/server.py +991 -0
- mcp_win_stdio-0.1.0/tests/test_cli.py +63 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
__pycache__/
|
|
2
|
+
*.py[cod]
|
|
3
|
+
*$py.class
|
|
4
|
+
*.so
|
|
5
|
+
.Python
|
|
6
|
+
build/
|
|
7
|
+
develop-eggs/
|
|
8
|
+
dist/
|
|
9
|
+
downloads/
|
|
10
|
+
eggs/
|
|
11
|
+
.eggs/
|
|
12
|
+
lib/
|
|
13
|
+
lib64/
|
|
14
|
+
parts/
|
|
15
|
+
sdist/
|
|
16
|
+
var/
|
|
17
|
+
wheels/
|
|
18
|
+
share/python-wheels/
|
|
19
|
+
*.egg-info/
|
|
20
|
+
.installed.cfg
|
|
21
|
+
*.egg
|
|
22
|
+
MANIFEST
|
|
23
|
+
|
|
24
|
+
*.manifest
|
|
25
|
+
*.spec
|
|
26
|
+
|
|
27
|
+
pip-log.txt
|
|
28
|
+
pip-delete-this-directory.txt
|
|
29
|
+
|
|
30
|
+
htmlcov/
|
|
31
|
+
.tox/
|
|
32
|
+
.nox/
|
|
33
|
+
.coverage
|
|
34
|
+
.coverage.*
|
|
35
|
+
.cache
|
|
36
|
+
nosetests.xml
|
|
37
|
+
coverage.xml
|
|
38
|
+
*.cover
|
|
39
|
+
*.py,cover
|
|
40
|
+
.hypothesis/
|
|
41
|
+
.pytest_cache/
|
|
42
|
+
cover/
|
|
43
|
+
|
|
44
|
+
*.mo
|
|
45
|
+
*.pot
|
|
46
|
+
|
|
47
|
+
.env
|
|
48
|
+
.venv
|
|
49
|
+
env/
|
|
50
|
+
venv/
|
|
51
|
+
ENV/
|
|
52
|
+
env.bak/
|
|
53
|
+
venv.bak/
|
|
54
|
+
|
|
55
|
+
.idea/
|
|
56
|
+
.vscode/
|
|
57
|
+
*.swp
|
|
58
|
+
*.swo
|
|
59
|
+
|
|
60
|
+
*.log
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 indala
|
|
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.
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: mcp-win-stdio
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Windows-optimized Model Context Protocol (MCP) suite & interactive CLI hub for Claude Desktop & Claude Code CLI (Excel COM, Word layouts, Workspace Explorer, and TypeScript diagnostic watcher).
|
|
5
|
+
Author: Mohan Kumar Indala
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
License-File: LICENSE
|
|
8
|
+
Keywords: ai,claude,excel,llm,mcp,stdio,typescript,windows,word,workspace-explorer
|
|
9
|
+
Classifier: Development Status :: 4 - Beta
|
|
10
|
+
Classifier: Environment :: Win32 (MS Windows)
|
|
11
|
+
Classifier: Intended Audience :: Developers
|
|
12
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
13
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
21
|
+
Requires-Python: >=3.10
|
|
22
|
+
Requires-Dist: mcp>=1.2.0
|
|
23
|
+
Provides-Extra: all
|
|
24
|
+
Requires-Dist: openpyxl>=3.1.0; extra == 'all'
|
|
25
|
+
Requires-Dist: pandas>=2.0.0; extra == 'all'
|
|
26
|
+
Requires-Dist: pathspec>=0.12.0; extra == 'all'
|
|
27
|
+
Requires-Dist: python-docx>=1.1.0; extra == 'all'
|
|
28
|
+
Requires-Dist: pywin32>=306; (platform_system == 'Windows') and extra == 'all'
|
|
29
|
+
Requires-Dist: rapidfuzz>=3.0.0; extra == 'all'
|
|
30
|
+
Provides-Extra: excel
|
|
31
|
+
Requires-Dist: openpyxl>=3.1.0; extra == 'excel'
|
|
32
|
+
Requires-Dist: pandas>=2.0.0; extra == 'excel'
|
|
33
|
+
Requires-Dist: pywin32>=306; (platform_system == 'Windows') and extra == 'excel'
|
|
34
|
+
Requires-Dist: rapidfuzz>=3.0.0; extra == 'excel'
|
|
35
|
+
Provides-Extra: explorer
|
|
36
|
+
Requires-Dist: pathspec>=0.12.0; extra == 'explorer'
|
|
37
|
+
Requires-Dist: rapidfuzz>=3.0.0; extra == 'explorer'
|
|
38
|
+
Provides-Extra: tsc
|
|
39
|
+
Requires-Dist: mcp>=1.2.0; extra == 'tsc'
|
|
40
|
+
Provides-Extra: word
|
|
41
|
+
Requires-Dist: python-docx>=1.1.0; extra == 'word'
|
|
42
|
+
Requires-Dist: pywin32>=306; (platform_system == 'Windows') and extra == 'word'
|
|
43
|
+
Description-Content-Type: text/markdown
|
|
44
|
+
|
|
45
|
+
# mcp-win-stdio
|
|
46
|
+
|
|
47
|
+
Windows-optimized **Model Context Protocol (MCP)** suite and interactive CLI hub for local `stdio` execution with transparent Claude Desktop & Claude Code CLI configuration.
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## 🌟 Highlights
|
|
52
|
+
|
|
53
|
+
* **Interactive Terminal Hub (`mws`)**: Run `mws` alone to view all servers, live installation status (`[Installed]` vs `[Not Installed]`), and quick commands.
|
|
54
|
+
* **Safe, Transparent Setup (`mws setup <server>`)**: Installs missing dependencies on-demand, generates exact copy-pasteable JSON configuration for Claude Desktop and Claude Code CLI, and asks confirmation before making any automated edits (always creating `.bak` backups).
|
|
55
|
+
* **Excel MCP (20 Tools)**: High-speed Pandas data queries, multi-column reconciliation with RapidFuzz, cell & formula editing, and native Windows Excel COM automation (PDF exports, recalculation, pivot refreshes, VBA macros).
|
|
56
|
+
* **Word MCP (10 Tools)**: Multi-unit page layout geometry (margins in inches, cm, mm, pt), multi-column layout analysis, paragraph spacing/indentation, typography (fonts, sizes, hex colors), and floating/inline header image extraction.
|
|
57
|
+
* **Workspace Explorer MCP (11 Tools)**: Token-safe directory exploration, collapsible heavy folders (`node_modules`, `.next`, `.git`), dynamic `.gitignore` parsing, in-file regex grep, RapidFuzz fuzzy search, and Python/TypeScript AST outline extraction.
|
|
58
|
+
* **TypeScript Diagnostic Watcher MCP (6 Tools)**: Persistent background `tsc` compiler watchers maintaining an in-memory cache for instantaneous (0ms latency) error inspection across multi-tsconfig projects.
|
|
59
|
+
* **Extensible User Plugins**: Drop any standalone Python MCP script into `~/.mcp-win-stdio/plugins/` and it is immediately discovered, runnable, and configurable.
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## 📦 Installation
|
|
64
|
+
|
|
65
|
+
Install base package (CLI Hub & Discovery Engine):
|
|
66
|
+
```powershell
|
|
67
|
+
pip install mcp-win-stdio
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Or install with specific optional modules:
|
|
71
|
+
```powershell
|
|
72
|
+
# Excel MCP (Pandas + OpenPyXL + RapidFuzz + PyWin32)
|
|
73
|
+
pip install "mcp-win-stdio[excel]"
|
|
74
|
+
|
|
75
|
+
# Word MCP (Python-Docx + PyWin32)
|
|
76
|
+
pip install "mcp-win-stdio[word]"
|
|
77
|
+
|
|
78
|
+
# Explorer MCP (PathSpec + RapidFuzz)
|
|
79
|
+
pip install "mcp-win-stdio[explorer]"
|
|
80
|
+
|
|
81
|
+
# All modules & dependencies
|
|
82
|
+
pip install "mcp-win-stdio[all]"
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
For local development:
|
|
86
|
+
```powershell
|
|
87
|
+
git clone https://github.com/indala/mcp-win-stdio.git
|
|
88
|
+
cd mcp-win-stdio
|
|
89
|
+
pip install -e .
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## 🚀 Quick Start
|
|
95
|
+
|
|
96
|
+
### 1. Launch the Interactive Dashboard
|
|
97
|
+
```powershell
|
|
98
|
+
mws
|
|
99
|
+
```
|
|
100
|
+
Output:
|
|
101
|
+
```text
|
|
102
|
+
============================================================================
|
|
103
|
+
🚀 mcp-win-stdio — Windows Model Context Protocol Suite (v0.1.0)
|
|
104
|
+
============================================================================
|
|
105
|
+
Single-Source Hub: C:\Users\User\.mcp-win-stdio
|
|
106
|
+
Claude Desktop Config: C:\Users\User\AppData\Roaming\Claude\claude_desktop_config.json
|
|
107
|
+
Claude Code CLI Config: C:\Users\User\.claude.json
|
|
108
|
+
----------------------------------------------------------------------------
|
|
109
|
+
SERVER STATUS TOOLS DESCRIPTION
|
|
110
|
+
----------------------------------------------------------------------------
|
|
111
|
+
excel [Installed] 20 20 tools: Pandas queries, RapidFuzz...
|
|
112
|
+
word [Installed] 10 10 tools: multi-unit margins (in, cm...
|
|
113
|
+
explorer [Installed] 11 11 tools: token-safe collapsible tree...
|
|
114
|
+
tsc [Installed] 6 6 tools: background tsc compiler...
|
|
115
|
+
----------------------------------------------------------------------------
|
|
116
|
+
💡 Quick Commands:
|
|
117
|
+
mws setup <server> -> Install dependencies & show Claude config
|
|
118
|
+
mws guide <server> -> View complete tool reference & Claude prompts
|
|
119
|
+
mws doctor -> Run health checks (Office COM, Python, Node)
|
|
120
|
+
mws run <server> -> Launch MCP server over stdio
|
|
121
|
+
mws list -> List all servers and custom plugins
|
|
122
|
+
============================================================================
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### 2. Configure a Server for Claude
|
|
126
|
+
```powershell
|
|
127
|
+
mws setup word
|
|
128
|
+
```
|
|
129
|
+
`mws` will verify dependencies, display the exact JSON block to add to Claude Desktop, show the CLI command for Claude Code, and offer safe automated application.
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## 📖 CLI Commands
|
|
134
|
+
|
|
135
|
+
| Command | Description |
|
|
136
|
+
| :--- | :--- |
|
|
137
|
+
| `mws` | Displays interactive terminal home dashboard with server status and tips. |
|
|
138
|
+
| `mws list` | Lists all available built-in servers and user plugins with tool counts. |
|
|
139
|
+
| `mws setup [server]` | Guides setup, installs dependencies, and provides copy-pasteable Claude configurations. |
|
|
140
|
+
| `mws remove <server>` | Safely removes server(s) from Claude Desktop and CLI configs. |
|
|
141
|
+
| `mws guide <server>` | Prints complete tool reference, parameters, and prompt recipes for Claude (`excel`, `word`, `explorer`, `tsc`). |
|
|
142
|
+
| `mws doctor` | Runs diagnostic health checks (Python runtime, PyWin32 Excel/Word COM readiness, Node/tsc tools, Claude configs). |
|
|
143
|
+
| `mws run <server>` | Launches the MCP server over stdio (e.g. `mws run word` or `mws run tsc`). |
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## 🛠️ Built-In MCP Servers (47 Tools)
|
|
148
|
+
|
|
149
|
+
### 📊 1. Excel MCP (`mcp_win_stdio.excel`) — 20 Tools
|
|
150
|
+
* **Fast Data Queries**: `query_sheet`, `filter_and_aggregate`, `export_filtered_data`
|
|
151
|
+
* **Fuzzy Reconciliation**: `reconcile_sheets`, `fuzzy_match_columns`
|
|
152
|
+
* **OpenPyXL Editing**: `read_cell_range`, `write_cells`, `append_rows`, `add_sheet`, `create_workbook`, `apply_formatting`, `insert_formula`
|
|
153
|
+
* **Native Windows Excel COM**: `open_excel_visible`, `close_excel_visible`, `recalculate_workbook`, `export_to_pdf`, `refresh_pivot_tables`, `run_vba_macro`
|
|
154
|
+
|
|
155
|
+
### 📝 2. Word MCP (`mcp_win_stdio.word`) — 10 Tools
|
|
156
|
+
* **Layout & Geometry**: `get_document_layout` (exact margins in inches, cm, mm, pt, paper format, multi-column analysis, section breaks)
|
|
157
|
+
* **Spacing & Indents**: `get_paragraph_spacing_and_indentation` (line spacing, space before/after in pt, first-line and hanging indents, pagination controls)
|
|
158
|
+
* **Typography**: `get_document_typography` (font family, font size in pt, hex colors `#002060`, highlights, paragraph alignments)
|
|
159
|
+
* **Visuals & Tables**: `get_document_images` (inline vs floating anchor images, placement offsets, dimensions), `get_document_tables`, `get_headers_and_footers`
|
|
160
|
+
* **Content & Search**: `read_word_document`, `search_word_document`, `get_document_outline`, `get_document_metadata`
|
|
161
|
+
|
|
162
|
+
### 📁 3. Workspace Explorer MCP (`mcp_win_stdio.explorer`) — 11 Tools
|
|
163
|
+
* **Token-Safe Exploration**: `get_workspace_tree`, `list_directory_safe` (collapses `node_modules`, `.next`, `dist`, `.git`)
|
|
164
|
+
* **Search & Filter**: `fuzzy_find_files` (RapidFuzz), `find_by_extension`, `grep_workspace`
|
|
165
|
+
* **Code Intelligence**: `get_code_outline` (Python & TypeScript AST symbol extractor), `search_definitions`
|
|
166
|
+
* **Safe File Operations**: `read_file_safe`, `get_file_stats`
|
|
167
|
+
|
|
168
|
+
### ⚡ 4. TypeScript Diagnostic Watcher MCP (`mcp_win_stdio.tsc`) — 6 Tools
|
|
169
|
+
* **Instant Diagnostic Query**: `get_tsc_errors` (0ms in-memory cache), `get_file_errors`, `get_error_summary`
|
|
170
|
+
* **Dynamic Project Control**: `list_watched_projects`, `watch_project(path)`, `restart_tsc_watcher`
|
|
171
|
+
|
|
172
|
+
---
|
|
173
|
+
|
|
174
|
+
## 🔌 Custom Plugins from Other PCs
|
|
175
|
+
|
|
176
|
+
Have custom MCP Python scripts?
|
|
177
|
+
Simply place your script into:
|
|
178
|
+
```text
|
|
179
|
+
%USERPROFILE%\.mcp-win-stdio\plugins\my_custom_mcp.py
|
|
180
|
+
```
|
|
181
|
+
`mcp-win-stdio` automatically discovers it:
|
|
182
|
+
* View it in `mws list`
|
|
183
|
+
* Run it via `mws run my_custom_mcp`
|
|
184
|
+
* Add it to Claude via `mws setup my_custom_mcp`
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## 📜 License
|
|
189
|
+
MIT License. Copyright (c) 2026 Mohan Kumar Indala.
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# mcp-win-stdio
|
|
2
|
+
|
|
3
|
+
Windows-optimized **Model Context Protocol (MCP)** suite and interactive CLI hub for local `stdio` execution with transparent Claude Desktop & Claude Code CLI configuration.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 🌟 Highlights
|
|
8
|
+
|
|
9
|
+
* **Interactive Terminal Hub (`mws`)**: Run `mws` alone to view all servers, live installation status (`[Installed]` vs `[Not Installed]`), and quick commands.
|
|
10
|
+
* **Safe, Transparent Setup (`mws setup <server>`)**: Installs missing dependencies on-demand, generates exact copy-pasteable JSON configuration for Claude Desktop and Claude Code CLI, and asks confirmation before making any automated edits (always creating `.bak` backups).
|
|
11
|
+
* **Excel MCP (20 Tools)**: High-speed Pandas data queries, multi-column reconciliation with RapidFuzz, cell & formula editing, and native Windows Excel COM automation (PDF exports, recalculation, pivot refreshes, VBA macros).
|
|
12
|
+
* **Word MCP (10 Tools)**: Multi-unit page layout geometry (margins in inches, cm, mm, pt), multi-column layout analysis, paragraph spacing/indentation, typography (fonts, sizes, hex colors), and floating/inline header image extraction.
|
|
13
|
+
* **Workspace Explorer MCP (11 Tools)**: Token-safe directory exploration, collapsible heavy folders (`node_modules`, `.next`, `.git`), dynamic `.gitignore` parsing, in-file regex grep, RapidFuzz fuzzy search, and Python/TypeScript AST outline extraction.
|
|
14
|
+
* **TypeScript Diagnostic Watcher MCP (6 Tools)**: Persistent background `tsc` compiler watchers maintaining an in-memory cache for instantaneous (0ms latency) error inspection across multi-tsconfig projects.
|
|
15
|
+
* **Extensible User Plugins**: Drop any standalone Python MCP script into `~/.mcp-win-stdio/plugins/` and it is immediately discovered, runnable, and configurable.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 📦 Installation
|
|
20
|
+
|
|
21
|
+
Install base package (CLI Hub & Discovery Engine):
|
|
22
|
+
```powershell
|
|
23
|
+
pip install mcp-win-stdio
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
Or install with specific optional modules:
|
|
27
|
+
```powershell
|
|
28
|
+
# Excel MCP (Pandas + OpenPyXL + RapidFuzz + PyWin32)
|
|
29
|
+
pip install "mcp-win-stdio[excel]"
|
|
30
|
+
|
|
31
|
+
# Word MCP (Python-Docx + PyWin32)
|
|
32
|
+
pip install "mcp-win-stdio[word]"
|
|
33
|
+
|
|
34
|
+
# Explorer MCP (PathSpec + RapidFuzz)
|
|
35
|
+
pip install "mcp-win-stdio[explorer]"
|
|
36
|
+
|
|
37
|
+
# All modules & dependencies
|
|
38
|
+
pip install "mcp-win-stdio[all]"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
For local development:
|
|
42
|
+
```powershell
|
|
43
|
+
git clone https://github.com/indala/mcp-win-stdio.git
|
|
44
|
+
cd mcp-win-stdio
|
|
45
|
+
pip install -e .
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## 🚀 Quick Start
|
|
51
|
+
|
|
52
|
+
### 1. Launch the Interactive Dashboard
|
|
53
|
+
```powershell
|
|
54
|
+
mws
|
|
55
|
+
```
|
|
56
|
+
Output:
|
|
57
|
+
```text
|
|
58
|
+
============================================================================
|
|
59
|
+
🚀 mcp-win-stdio — Windows Model Context Protocol Suite (v0.1.0)
|
|
60
|
+
============================================================================
|
|
61
|
+
Single-Source Hub: C:\Users\User\.mcp-win-stdio
|
|
62
|
+
Claude Desktop Config: C:\Users\User\AppData\Roaming\Claude\claude_desktop_config.json
|
|
63
|
+
Claude Code CLI Config: C:\Users\User\.claude.json
|
|
64
|
+
----------------------------------------------------------------------------
|
|
65
|
+
SERVER STATUS TOOLS DESCRIPTION
|
|
66
|
+
----------------------------------------------------------------------------
|
|
67
|
+
excel [Installed] 20 20 tools: Pandas queries, RapidFuzz...
|
|
68
|
+
word [Installed] 10 10 tools: multi-unit margins (in, cm...
|
|
69
|
+
explorer [Installed] 11 11 tools: token-safe collapsible tree...
|
|
70
|
+
tsc [Installed] 6 6 tools: background tsc compiler...
|
|
71
|
+
----------------------------------------------------------------------------
|
|
72
|
+
💡 Quick Commands:
|
|
73
|
+
mws setup <server> -> Install dependencies & show Claude config
|
|
74
|
+
mws guide <server> -> View complete tool reference & Claude prompts
|
|
75
|
+
mws doctor -> Run health checks (Office COM, Python, Node)
|
|
76
|
+
mws run <server> -> Launch MCP server over stdio
|
|
77
|
+
mws list -> List all servers and custom plugins
|
|
78
|
+
============================================================================
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
### 2. Configure a Server for Claude
|
|
82
|
+
```powershell
|
|
83
|
+
mws setup word
|
|
84
|
+
```
|
|
85
|
+
`mws` will verify dependencies, display the exact JSON block to add to Claude Desktop, show the CLI command for Claude Code, and offer safe automated application.
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## 📖 CLI Commands
|
|
90
|
+
|
|
91
|
+
| Command | Description |
|
|
92
|
+
| :--- | :--- |
|
|
93
|
+
| `mws` | Displays interactive terminal home dashboard with server status and tips. |
|
|
94
|
+
| `mws list` | Lists all available built-in servers and user plugins with tool counts. |
|
|
95
|
+
| `mws setup [server]` | Guides setup, installs dependencies, and provides copy-pasteable Claude configurations. |
|
|
96
|
+
| `mws remove <server>` | Safely removes server(s) from Claude Desktop and CLI configs. |
|
|
97
|
+
| `mws guide <server>` | Prints complete tool reference, parameters, and prompt recipes for Claude (`excel`, `word`, `explorer`, `tsc`). |
|
|
98
|
+
| `mws doctor` | Runs diagnostic health checks (Python runtime, PyWin32 Excel/Word COM readiness, Node/tsc tools, Claude configs). |
|
|
99
|
+
| `mws run <server>` | Launches the MCP server over stdio (e.g. `mws run word` or `mws run tsc`). |
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## 🛠️ Built-In MCP Servers (47 Tools)
|
|
104
|
+
|
|
105
|
+
### 📊 1. Excel MCP (`mcp_win_stdio.excel`) — 20 Tools
|
|
106
|
+
* **Fast Data Queries**: `query_sheet`, `filter_and_aggregate`, `export_filtered_data`
|
|
107
|
+
* **Fuzzy Reconciliation**: `reconcile_sheets`, `fuzzy_match_columns`
|
|
108
|
+
* **OpenPyXL Editing**: `read_cell_range`, `write_cells`, `append_rows`, `add_sheet`, `create_workbook`, `apply_formatting`, `insert_formula`
|
|
109
|
+
* **Native Windows Excel COM**: `open_excel_visible`, `close_excel_visible`, `recalculate_workbook`, `export_to_pdf`, `refresh_pivot_tables`, `run_vba_macro`
|
|
110
|
+
|
|
111
|
+
### 📝 2. Word MCP (`mcp_win_stdio.word`) — 10 Tools
|
|
112
|
+
* **Layout & Geometry**: `get_document_layout` (exact margins in inches, cm, mm, pt, paper format, multi-column analysis, section breaks)
|
|
113
|
+
* **Spacing & Indents**: `get_paragraph_spacing_and_indentation` (line spacing, space before/after in pt, first-line and hanging indents, pagination controls)
|
|
114
|
+
* **Typography**: `get_document_typography` (font family, font size in pt, hex colors `#002060`, highlights, paragraph alignments)
|
|
115
|
+
* **Visuals & Tables**: `get_document_images` (inline vs floating anchor images, placement offsets, dimensions), `get_document_tables`, `get_headers_and_footers`
|
|
116
|
+
* **Content & Search**: `read_word_document`, `search_word_document`, `get_document_outline`, `get_document_metadata`
|
|
117
|
+
|
|
118
|
+
### 📁 3. Workspace Explorer MCP (`mcp_win_stdio.explorer`) — 11 Tools
|
|
119
|
+
* **Token-Safe Exploration**: `get_workspace_tree`, `list_directory_safe` (collapses `node_modules`, `.next`, `dist`, `.git`)
|
|
120
|
+
* **Search & Filter**: `fuzzy_find_files` (RapidFuzz), `find_by_extension`, `grep_workspace`
|
|
121
|
+
* **Code Intelligence**: `get_code_outline` (Python & TypeScript AST symbol extractor), `search_definitions`
|
|
122
|
+
* **Safe File Operations**: `read_file_safe`, `get_file_stats`
|
|
123
|
+
|
|
124
|
+
### ⚡ 4. TypeScript Diagnostic Watcher MCP (`mcp_win_stdio.tsc`) — 6 Tools
|
|
125
|
+
* **Instant Diagnostic Query**: `get_tsc_errors` (0ms in-memory cache), `get_file_errors`, `get_error_summary`
|
|
126
|
+
* **Dynamic Project Control**: `list_watched_projects`, `watch_project(path)`, `restart_tsc_watcher`
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## 🔌 Custom Plugins from Other PCs
|
|
131
|
+
|
|
132
|
+
Have custom MCP Python scripts?
|
|
133
|
+
Simply place your script into:
|
|
134
|
+
```text
|
|
135
|
+
%USERPROFILE%\.mcp-win-stdio\plugins\my_custom_mcp.py
|
|
136
|
+
```
|
|
137
|
+
`mcp-win-stdio` automatically discovers it:
|
|
138
|
+
* View it in `mws list`
|
|
139
|
+
* Run it via `mws run my_custom_mcp`
|
|
140
|
+
* Add it to Claude via `mws setup my_custom_mcp`
|
|
141
|
+
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
## 📜 License
|
|
145
|
+
MIT License. Copyright (c) 2026 Mohan Kumar Indala.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# mcp-win-stdio-excel
|
|
2
|
+
|
|
3
|
+
Windows-native **Model Context Protocol (MCP)** server for Microsoft Excel automation, Pandas querying, fuzzy reconciliation, and COM automation.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 📦 Installation
|
|
8
|
+
|
|
9
|
+
```powershell
|
|
10
|
+
pip install mcp-win-stdio-excel
|
|
11
|
+
```
|
|
12
|
+
*(Pip also resolves `pip install mcp-win-stdio.excel` to this package)*.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## 🚀 One-Command Claude Setup
|
|
17
|
+
|
|
18
|
+
```powershell
|
|
19
|
+
mcp-win-stdio-excel setup
|
|
20
|
+
```
|
|
21
|
+
Automatically configures Claude Desktop (`claude_desktop_config.json`) and Claude Code CLI (`claude mcp add`) with zero manual JSON editing.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## 🛠️ Included Tools (20 Tools)
|
|
26
|
+
|
|
27
|
+
* **Inspection**: `get_workbook_info`, `preview_sheet`, `summarize_column`, `search_text`
|
|
28
|
+
* **Querying & Slices**: `query_rows` (Pandas vectorized expressions), `read_range`
|
|
29
|
+
* **Editing**: `create_workbook`, `append_rows`, `update_cells`, `add_sheet`, `rename_sheet`, `delete_sheet`, `export_to_csv`
|
|
30
|
+
* **Pre-flight & Reconciliation**: `analyze_reconciliation_keys` (pre-flight diagnostics), `reconcile_and_merge` (RapidFuzz fuzzy joins + 3-tab audit workbook)
|
|
31
|
+
* **Native Windows COM**: `recalculate_and_save`, `export_to_pdf`, `refresh_data_and_pivots`, `run_vba_macro`, `get_active_excel_window`
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## 📖 CLI Commands
|
|
36
|
+
|
|
37
|
+
```powershell
|
|
38
|
+
mcp-win-stdio-excel setup # Auto-add to Claude
|
|
39
|
+
mcp-win-stdio-excel guide # View prompts & tool guide
|
|
40
|
+
mcp-win-stdio-excel doctor # Verify dependencies & Excel COM readiness
|
|
41
|
+
mcp-win-stdio-excel run # Run over stdio
|
|
42
|
+
mcp-win-stdio-excel remove # Remove from Claude
|
|
43
|
+
```
|
|
44
|
+
*(You can also use the shorthand alias `mws-excel`)*.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "mcp-win-stdio-excel"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Windows-optimized Model Context Protocol (MCP) server for Excel: 20 tools for Pandas queries, RapidFuzz reconciliation, cell editing, and native Excel COM automation (PDF export, recalc, pivots, macros)."
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
authors = [
|
|
13
|
+
{ name = "indala", email = "indala@example.com" }
|
|
14
|
+
]
|
|
15
|
+
keywords = ["mcp", "claude", "excel", "pandas", "openpyxl", "reconciliation", "windows", "ai", "llm"]
|
|
16
|
+
classifiers = [
|
|
17
|
+
"Development Status :: 4 - Beta",
|
|
18
|
+
"Environment :: Win32 (MS Windows)",
|
|
19
|
+
"Intended Audience :: Developers",
|
|
20
|
+
"License :: OSI Approved :: MIT License",
|
|
21
|
+
"Operating System :: Microsoft :: Windows",
|
|
22
|
+
"Programming Language :: Python :: 3",
|
|
23
|
+
"Programming Language :: Python :: 3.10",
|
|
24
|
+
"Programming Language :: Python :: 3.11",
|
|
25
|
+
"Programming Language :: Python :: 3.12",
|
|
26
|
+
"Programming Language :: Python :: 3.13",
|
|
27
|
+
"Programming Language :: Python :: 3.14",
|
|
28
|
+
"Topic :: Office/Business :: Financial :: Spreadsheet",
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
dependencies = [
|
|
32
|
+
"mcp>=1.2.0",
|
|
33
|
+
"pandas>=2.0.0",
|
|
34
|
+
"openpyxl>=3.1.0",
|
|
35
|
+
"rapidfuzz>=3.0.0",
|
|
36
|
+
"pywin32>=306; platform_system == 'Windows'",
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
[project.scripts]
|
|
40
|
+
mcp-win-stdio-excel = "mcp_win_stdio.excel.cli:main"
|
|
41
|
+
mws-excel = "mcp_win_stdio.excel.cli:main"
|
|
42
|
+
|
|
43
|
+
[tool.hatch.build.targets.wheel]
|
|
44
|
+
packages = ["src/mcp_win_stdio"]
|