fixflow-mcp 1.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.
- package/LICENSE.txt +21 -0
- package/README.md +274 -0
- package/bin/cli.mjs +113 -0
- package/fastmcp_docs_server/README.md +64 -0
- package/fastmcp_docs_server/__init__.py +1 -0
- package/fastmcp_docs_server/__pycache__/server.cpython-311.pyc +0 -0
- package/fastmcp_docs_server/requirements.txt +3 -0
- package/fastmcp_docs_server/server.py +607 -0
- package/fastmcp_docs_server/skills/creating-kb-cards.md +146 -0
- package/fastmcp_docs_server/tech_kb/devops/CROSS_DOCKER_001.md +104 -0
- package/fastmcp_docs_server/tech_kb/devops/CROSS_GIT_001.md +70 -0
- package/fastmcp_docs_server/tech_kb/index.json +78 -0
- package/fastmcp_docs_server/tech_kb/terminal/WIN_TERM_042.md +93 -0
- package/package.json +28 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: creating-kb-cards
|
|
3
|
+
description: Generates concise, actionable Knowledge Base (KB) cards for technical problem-solving. Use when documenting bug fixes, solutions, or creating new technical summaries.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Creating Actionable KB Cards
|
|
7
|
+
|
|
8
|
+
## When to use this skill
|
|
9
|
+
- **ALWAYS Proactively**: Immediately after successfully solving a technical issue (debugging, config fix, or complex implementation), you MUST use this skill to preserve the solution. Do not wait for the user to ask.
|
|
10
|
+
- **Proactive Threshold**: If the solution involved non-obvious steps, specific commands, or took >2 turns to resolve, assume it remains valuable and needs documentation.
|
|
11
|
+
- **Explicit Triggers**: When the user asks to "document this", "save fix", "create KB", or uses `/tech-summary`.
|
|
12
|
+
|
|
13
|
+
## Workflow
|
|
14
|
+
|
|
15
|
+
1. **Analyze Context**: Extract the problem category, platform, symptoms, diagnostic steps, and the solution from the conversation.
|
|
16
|
+
2. **Generate Metadata**: Determine a unique `KB_ID` (format: `PLATFORM_CATEGORY_NUMBER`), criticality, and complexity.
|
|
17
|
+
3. **Draft Content**: Create the Markdown content following the *Strict Priority Order* (Diagnosis -> Solution -> Verification).
|
|
18
|
+
4. **Save & Validate (Server-Side)**: Call the `save_kb_card` MCP tool. This tool will automatically validate the content and save it to the correct location if valid.
|
|
19
|
+
5. **Update Index**: The `save_kb_card` tool automatically updates the index. No manual action required.
|
|
20
|
+
|
|
21
|
+
## Instructions
|
|
22
|
+
|
|
23
|
+
### 1. KB_ID Generation Rule
|
|
24
|
+
Format: `[PLATFORM]_[CATEGORY]_[NUMBER]`
|
|
25
|
+
- **Examples**: `WIN_TERM_001`, `CROSS_PROXY_012`
|
|
26
|
+
- **Number**: Increment the max ID found in the category.
|
|
27
|
+
|
|
28
|
+
### 2. Save & Validation (Server-Side)
|
|
29
|
+
You MUST use the `save_kb_card` MCP tool.
|
|
30
|
+
- **Tool**: `save_kb_card`
|
|
31
|
+
- **Input**: The full markdown string.
|
|
32
|
+
- **Process**: The server validates the content and saves the file.
|
|
33
|
+
- **Success**: Returns a success message with the file path.
|
|
34
|
+
- **Fail**: Returns an error message. Fix and retry.
|
|
35
|
+
**DO NOT use manual file writing tools.**
|
|
36
|
+
|
|
37
|
+
### 3. Content Structure (Strict Priority)
|
|
38
|
+
|
|
39
|
+
Your output MD file MUST follow this structure:
|
|
40
|
+
|
|
41
|
+
1. **Frontmatter**:
|
|
42
|
+
- `kb_id`, `category`, `platform`, `technologies` (list), `complexity` (1-10), `criticality` (low/medium/high/critical), `created` (YYYY-MM-DD), `tags`, `related_kb`.
|
|
43
|
+
2. **Title & TL;DR**:
|
|
44
|
+
- Short, descriptive title (max 5 words).
|
|
45
|
+
- "TL;DR" block with Fix Time and Platform.
|
|
46
|
+
3. **๐ This Is Your Problem If**:
|
|
47
|
+
- 3 specific symptoms (checkboxes).
|
|
48
|
+
- "Where to Check" line.
|
|
49
|
+
4. **โ
SOLUTION (copy-paste)**:
|
|
50
|
+
- **Integration Pattern**: Explicitly state where to put the code (Global/Init/Event).
|
|
51
|
+
- **Code**: Depersonalized, using `__VAR__` for placeholders.
|
|
52
|
+
- **Drop-in Component** (if applicable): Self-contained class/fn.
|
|
53
|
+
- **Self-Test**: Runtime check snippet.
|
|
54
|
+
- **Critical Points**: What breaks if missing.
|
|
55
|
+
5. **โ๏ธ Verification**:
|
|
56
|
+
- Single command (<30 sec execution).
|
|
57
|
+
- Expected output.
|
|
58
|
+
6. **๐ Fallback**:
|
|
59
|
+
- 1-2 alternative options if the main solution fails.
|
|
60
|
+
7. **๐ก Context**:
|
|
61
|
+
- Root cause (optional, at the end).
|
|
62
|
+
|
|
63
|
+
### 4. "Actionable" Rules
|
|
64
|
+
- **Solution FIRST**: Code comes immediately after diagnosis.
|
|
65
|
+
- **Depersonalization**: No specific paths or user names. Use `__VAR__` if needed.
|
|
66
|
+
- **Black Box**: Prefer self-contained wrappers over snippets.
|
|
67
|
+
- **Verification**: MUST have a verification command.
|
|
68
|
+
- **Fix Time**: Estimate realistic fix time (e.g., "5min").
|
|
69
|
+
|
|
70
|
+
### 5. MCP Server Installation
|
|
71
|
+
If access to the MCP server is available:
|
|
72
|
+
- **Requirement**: You MUST use the server to install the KB card.
|
|
73
|
+
- **Action**: Use `save_kb_card`.
|
|
74
|
+
|
|
75
|
+
## Template
|
|
76
|
+
|
|
77
|
+
```markdown
|
|
78
|
+
---
|
|
79
|
+
kb_id: "WIN_TERM_042"
|
|
80
|
+
category: "terminal"
|
|
81
|
+
platform: "windows"
|
|
82
|
+
technologies: [powershell, cmd]
|
|
83
|
+
complexity: 7
|
|
84
|
+
criticality: "high"
|
|
85
|
+
created: "2026-02-11"
|
|
86
|
+
tags: [windows, hang, async]
|
|
87
|
+
related_kb: []
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
# [Title]
|
|
91
|
+
|
|
92
|
+
> **TL;DR**: [Problem] โ [Solution]
|
|
93
|
+
> **Fix Time**: ~5 min | **Platform**: Windows
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## ๐ This Is Your Problem If:
|
|
98
|
+
|
|
99
|
+
- [ ] [Symptom 1]
|
|
100
|
+
- [ ] [Symptom 2]
|
|
101
|
+
|
|
102
|
+
**Where to Check**: [Logs/Console]
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## โ
SOLUTION (copy-paste)
|
|
107
|
+
|
|
108
|
+
### ๐ฏ Integration Pattern: [Global/Init/Event]
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
[Command or Code]
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### โก Critical:
|
|
115
|
+
- โ **[Point 1]**
|
|
116
|
+
- โ **[Point 2]**
|
|
117
|
+
|
|
118
|
+
---
|
|
119
|
+
|
|
120
|
+
## โ๏ธ Verification (<30 sec)
|
|
121
|
+
|
|
122
|
+
```bash
|
|
123
|
+
[Verification Command]
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
**Expected**: [Output]
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
## ๐ Fallback
|
|
131
|
+
|
|
132
|
+
### Option 1: [Alternative]
|
|
133
|
+
```bash
|
|
134
|
+
[Command]
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## ๐ก Context
|
|
140
|
+
**Root Cause**: [Brief explanation]
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## Resources
|
|
144
|
+
|
|
145
|
+
- **Server-Side Tool**: `save_kb_card` (Handles validation, saving, and indexing)
|
|
146
|
+
- **Categories**: terminal, security, database, network, storage, devops, frontend, specialized.
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
---
|
|
2
|
+
kb_id: "CROSS_DOCKER_001"
|
|
3
|
+
category: "devops"
|
|
4
|
+
platform: "cross-platform"
|
|
5
|
+
technologies: [docker, buildx, multi-arch]
|
|
6
|
+
complexity: 4
|
|
7
|
+
criticality: "high"
|
|
8
|
+
created: "2026-02-17"
|
|
9
|
+
tags: [docker, exec-format-error, arm64, amd64, multi-arch, buildx]
|
|
10
|
+
related_kb: []
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Docker exec format error โ Wrong Architecture
|
|
14
|
+
|
|
15
|
+
> **TL;DR**: Container fails with `exec format error` โ rebuild image with correct `--platform`
|
|
16
|
+
> **Fix Time**: ~5 min | **Platform**: Any OS (common on Apple Silicon M1/M2/M3)
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## ๐ This Is Your Problem If:
|
|
21
|
+
|
|
22
|
+
- [ ] Container exits immediately after `docker run`
|
|
23
|
+
- [ ] Error log contains `exec /usr/bin/... : exec format error`
|
|
24
|
+
- [ ] You built image on Mac M1/M2 and deploying to Linux x86_64 (or vice versa)
|
|
25
|
+
- [ ] Image pulled from registry shows wrong architecture
|
|
26
|
+
|
|
27
|
+
**Where to Check**: `docker logs <container>`, `docker inspect --format='{{.Architecture}}' <image>`
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## โ
SOLUTION (copy-paste)
|
|
32
|
+
|
|
33
|
+
### ๐ฏ Integration Pattern: [Build Phase โ Dockerfile]
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
# Option A: Build for specific platform
|
|
37
|
+
docker build --platform linux/amd64 -t __IMAGE_NAME__ . # ๐๏ธ VAR
|
|
38
|
+
|
|
39
|
+
# Option B: Build multi-arch with buildx (recommended)
|
|
40
|
+
docker buildx create --use
|
|
41
|
+
docker buildx build --platform linux/amd64,linux/arm64 -t __IMAGE_NAME__ --push . # ๐๏ธ VAR
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### โก Critical (won't work without this):
|
|
45
|
+
- โ **`--platform` flag** โ explicitly specify target architecture
|
|
46
|
+
- โ **buildx** โ must be installed (`docker buildx version`)
|
|
47
|
+
- โ **For existing images** โ re-pull with `docker pull --platform linux/amd64 image:tag`
|
|
48
|
+
|
|
49
|
+
### ๐ Versions:
|
|
50
|
+
- **Works**: Docker 20.10+, Docker Desktop 4.x
|
|
51
|
+
- **buildx required for**: multi-arch builds
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## โ๏ธ Verification (<30 sec)
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
# Check image architecture
|
|
59
|
+
docker inspect __IMAGE_NAME__ | grep Architecture # ๐๏ธ VAR
|
|
60
|
+
|
|
61
|
+
# Test run
|
|
62
|
+
docker run --rm __IMAGE_NAME__ echo "Architecture OK" # ๐๏ธ VAR
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**Expected**:
|
|
66
|
+
โ Architecture shows `amd64` (or your target)
|
|
67
|
+
โ Container prints "Architecture OK" and exits cleanly
|
|
68
|
+
|
|
69
|
+
**If it didn't work** โ see Fallback below โคต
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## ๐ Fallback (if main solution failed)
|
|
74
|
+
|
|
75
|
+
### Option 1: Use QEMU emulation
|
|
76
|
+
```bash
|
|
77
|
+
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
|
78
|
+
docker run --platform linux/amd64 __IMAGE_NAME__ # ๐๏ธ VAR
|
|
79
|
+
```
|
|
80
|
+
**When**: Can't rebuild image, need quick workaround | **Risks**: 5-10x slower performance
|
|
81
|
+
|
|
82
|
+
### Option 2: Find native image
|
|
83
|
+
```bash
|
|
84
|
+
# Search for arm64 variant of the image
|
|
85
|
+
docker manifest inspect __IMAGE_NAME__ # ๐๏ธ VAR
|
|
86
|
+
```
|
|
87
|
+
**When**: Image maintainer provides multi-arch support
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## ๐ก Context (optional)
|
|
92
|
+
|
|
93
|
+
**Root Cause**: Docker images contain binaries compiled for a specific CPU architecture. Running an amd64 binary on arm64 (or vice versa) causes the kernel to reject the executable format.
|
|
94
|
+
|
|
95
|
+
**Side Effects**: Multi-arch builds take longer, image size may increase
|
|
96
|
+
|
|
97
|
+
**Best Practice**: Always specify `--platform` in CI/CD pipelines and Dockerfiles (`FROM --platform=linux/amd64 node:20`)
|
|
98
|
+
|
|
99
|
+
**Anti-Pattern**: โ Using QEMU emulation in production (severe performance penalty)
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
**Applicable**: Docker 20.10+, Apple Silicon Macs, CI/CD cross-compilation
|
|
104
|
+
**Frequency**: Very common since Apple M1 release (2020)
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
kb_id: "CROSS_GIT_001"
|
|
3
|
+
category: "devops"
|
|
4
|
+
platform: "cross-platform"
|
|
5
|
+
technologies: [git, github]
|
|
6
|
+
complexity: 3
|
|
7
|
+
criticality: "medium"
|
|
8
|
+
created: "2026-02-17"
|
|
9
|
+
tags: [git, merge, conflict, resolve]
|
|
10
|
+
related_kb: []
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Git Merge Conflict Resolution
|
|
14
|
+
|
|
15
|
+
> **TL;DR**: Merge conflict in pull request โ use rebase + manual resolve
|
|
16
|
+
> **Fix Time**: ~10 min | **Platform**: Any OS
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## ๐ This Is Your Problem If:
|
|
21
|
+
|
|
22
|
+
- [ ] `git pull` shows CONFLICT markers
|
|
23
|
+
- [ ] PR cannot be merged automatically
|
|
24
|
+
- [ ] Files contain `<<<<<<<` markers
|
|
25
|
+
|
|
26
|
+
**Where to Check**: terminal output, GitHub/GitLab PR page
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## โ
SOLUTION (copy-paste)
|
|
31
|
+
|
|
32
|
+
### ๐ฏ Integration Pattern: [Event โ on merge conflict]
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
git fetch origin
|
|
36
|
+
git rebase origin/main
|
|
37
|
+
git add __CONFLICTED_FILE__
|
|
38
|
+
git rebase --continue
|
|
39
|
+
git push --force-with-lease
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### โก Critical:
|
|
43
|
+
- โ **`--force-with-lease`** โ safer than `--force`
|
|
44
|
+
- โ **Remove ALL conflict markers**
|
|
45
|
+
- โ **Test after resolve**
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## โ๏ธ Verification (<30 sec)
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
git log --oneline -5
|
|
53
|
+
git diff --check
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**Expected**: Clean log, no conflict markers
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## ๐ Fallback
|
|
61
|
+
|
|
62
|
+
### Option 1: Merge instead of rebase
|
|
63
|
+
```bash
|
|
64
|
+
git merge origin/main
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## ๐ก Context
|
|
70
|
+
**Root Cause**: Divergent changes to same file lines on different branches
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"kb_id": "WIN_TERM_042",
|
|
4
|
+
"title": "PowerShell Async Hang",
|
|
5
|
+
"category": "terminal",
|
|
6
|
+
"platform": "windows",
|
|
7
|
+
"technologies": [
|
|
8
|
+
"powershell",
|
|
9
|
+
"cmd"
|
|
10
|
+
],
|
|
11
|
+
"complexity": 7,
|
|
12
|
+
"criticality": "high",
|
|
13
|
+
"created": "2026-02-11",
|
|
14
|
+
"tags": [
|
|
15
|
+
"windows",
|
|
16
|
+
"hang",
|
|
17
|
+
"async",
|
|
18
|
+
"utf8"
|
|
19
|
+
],
|
|
20
|
+
"related_kb": [
|
|
21
|
+
"WIN_ENC_001"
|
|
22
|
+
],
|
|
23
|
+
"file_path": "terminal/WIN_TERM_042.md",
|
|
24
|
+
"quick_summary": "PowerShell 7 async hang โ use CMD with WaitMs = 0",
|
|
25
|
+
"quick_fix": "cmd /c \"chcp 65001 > nul && command\"",
|
|
26
|
+
"diagnostic_time": "5sec",
|
|
27
|
+
"fix_time": "5min"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"kb_id": "CROSS_GIT_001",
|
|
31
|
+
"title": "Git Merge Conflict Resolution",
|
|
32
|
+
"category": "devops",
|
|
33
|
+
"platform": "cross-platform",
|
|
34
|
+
"technologies": [
|
|
35
|
+
"git",
|
|
36
|
+
"github"
|
|
37
|
+
],
|
|
38
|
+
"complexity": 3,
|
|
39
|
+
"criticality": "medium",
|
|
40
|
+
"created": "2026-02-17",
|
|
41
|
+
"tags": [
|
|
42
|
+
"git",
|
|
43
|
+
"merge",
|
|
44
|
+
"conflict",
|
|
45
|
+
"resolve"
|
|
46
|
+
],
|
|
47
|
+
"related_kb": [],
|
|
48
|
+
"file_path": "devops/CROSS_GIT_001.md",
|
|
49
|
+
"quick_summary": "Merge conflict in pull request โ use rebase + manual resolve",
|
|
50
|
+
"fix_time": "~10 min"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"kb_id": "CROSS_DOCKER_001",
|
|
54
|
+
"title": "Docker exec format error โ Wrong Architecture",
|
|
55
|
+
"category": "devops",
|
|
56
|
+
"platform": "cross-platform",
|
|
57
|
+
"technologies": [
|
|
58
|
+
"docker",
|
|
59
|
+
"buildx",
|
|
60
|
+
"multi-arch"
|
|
61
|
+
],
|
|
62
|
+
"complexity": 4,
|
|
63
|
+
"criticality": "high",
|
|
64
|
+
"created": "2026-02-17",
|
|
65
|
+
"tags": [
|
|
66
|
+
"docker",
|
|
67
|
+
"exec-format-error",
|
|
68
|
+
"arm64",
|
|
69
|
+
"amd64",
|
|
70
|
+
"multi-arch",
|
|
71
|
+
"buildx"
|
|
72
|
+
],
|
|
73
|
+
"related_kb": [],
|
|
74
|
+
"file_path": "devops/CROSS_DOCKER_001.md",
|
|
75
|
+
"quick_summary": "Container fails with `exec format error` โ rebuild image with correct `--platform`",
|
|
76
|
+
"fix_time": "~5 min"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
---
|
|
2
|
+
kb_id: "WIN_TERM_042"
|
|
3
|
+
category: "terminal"
|
|
4
|
+
platform: "windows"
|
|
5
|
+
technologies: [powershell, cmd, async]
|
|
6
|
+
complexity: 7
|
|
7
|
+
criticality: "high"
|
|
8
|
+
created: "2026-02-11"
|
|
9
|
+
tags: [windows, hang, async, utf8, powershell7]
|
|
10
|
+
related_kb: [WIN_ENC_001, WIN_PROXY_003]
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# PowerShell Async Hang
|
|
14
|
+
|
|
15
|
+
> **TL;DR**: PowerShell 7 hangs on async stdin โ use CMD
|
|
16
|
+
> **Fix Time**: ~5 min | **Platform**: Windows 10/11
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## ๐ This Is Your Problem If:
|
|
21
|
+
|
|
22
|
+
- [ ] Agent command hangs >10 seconds
|
|
23
|
+
- [ ] PowerShell 7.4+ installed
|
|
24
|
+
- [ ] WaitMsBeforeAsync > 0 used
|
|
25
|
+
|
|
26
|
+
**Where to Check**: console, agent logs, Task Manager (powershell.exe hanging)
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## โ
SOLUTION (copy-paste)
|
|
31
|
+
|
|
32
|
+
### ๐ฏ Integration Pattern: [Global Scope]
|
|
33
|
+
|
|
34
|
+
```cmd
|
|
35
|
+
# CMD wrapper to bypass PowerShell 7 bug
|
|
36
|
+
cmd /c "chcp 65001 > nul && __YOUR_COMMAND__" // ๐๏ธ VAR
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### โก Critical (won't work without this):
|
|
40
|
+
- โ **CMD only** - PowerShell 7.4+ has bug in async stdin handling
|
|
41
|
+
- โ **UTF-8 before command** - `chcp 65001` required for Cyrillic
|
|
42
|
+
- โ **WaitMsBeforeAsync: 0** - in run_command agent parameter
|
|
43
|
+
|
|
44
|
+
### ๐ Versions:
|
|
45
|
+
- **Works**: Windows 10/11, CMD.exe
|
|
46
|
+
- **Doesn't Work**: PowerShell 7.4+, PowerShell 5 (sometimes)
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## โ๏ธ Verification (<30 sec)
|
|
51
|
+
|
|
52
|
+
```cmd
|
|
53
|
+
cmd /c "chcp 65001 > nul && echo Test Cyrillic: ะขะตัั"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**Expected**:
|
|
57
|
+
โ Output: `Test Cyrillic: ะขะตัั` (correct, no "??????")
|
|
58
|
+
|
|
59
|
+
**If it didn't work** โ see Fallback below โคต
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## ๐ Fallback (if main solution failed)
|
|
64
|
+
|
|
65
|
+
### Option 1: CMD without UTF-8
|
|
66
|
+
```cmd
|
|
67
|
+
cmd /c "your_command"
|
|
68
|
+
```
|
|
69
|
+
**When**: English commands only, UTF-8 not critical
|
|
70
|
+
|
|
71
|
+
### Option 2: Reinstall PowerShell
|
|
72
|
+
```powershell
|
|
73
|
+
winget uninstall Microsoft.PowerShell
|
|
74
|
+
winget install Microsoft.PowerShell --version 7.3.9
|
|
75
|
+
```
|
|
76
|
+
**When**: last resort | **Risks**: PS version rollback
|
|
77
|
+
|
|
78
|
+
---
|
|
79
|
+
|
|
80
|
+
## ๐ก Context (optional)
|
|
81
|
+
|
|
82
|
+
**Root Cause**: PowerShell 7.4+ contains regression in async stdin handling when invoked via IPC
|
|
83
|
+
|
|
84
|
+
**Side Effects**: all commands will run via CMD, not PowerShell (this is OK)
|
|
85
|
+
|
|
86
|
+
**Best Practice**: add rule to user_rules "always use cmd /c for Windows"
|
|
87
|
+
|
|
88
|
+
**Anti-Pattern**: โ Increasing WaitMsBeforeAsync - this masks the problem, doesn't solve it
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
**Applicable**: Windows 10/11, PowerShell 7.4+, AI agents with async execution
|
|
93
|
+
**Frequency**: very common (every Windows user with PS7)
|
package/package.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "fixflow-mcp",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Community Knowledge Base MCP Server โ Stack Overflow for AI Agents",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"bin": {
|
|
7
|
+
"fixflow-mcp": "./bin/cli.mjs"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"bin/",
|
|
11
|
+
"fastmcp_docs_server/"
|
|
12
|
+
],
|
|
13
|
+
"keywords": [
|
|
14
|
+
"mcp",
|
|
15
|
+
"knowledge-base",
|
|
16
|
+
"ai-agents",
|
|
17
|
+
"technical-docs",
|
|
18
|
+
"semantic-search",
|
|
19
|
+
"model-context-protocol"
|
|
20
|
+
],
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "https://github.com/mds-tech/fixflow-mcp"
|
|
24
|
+
},
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=18"
|
|
27
|
+
}
|
|
28
|
+
}
|