You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/architecture.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,17 @@ List Projects: View all managed projects along with their total commit counts.
34
34
35
35
Get Commit Changes: Retrieve detailed diffs and modification statistics for a specific commit hash.
36
36
37
-
## 5. Core Module Architecture
37
+
## 5. MCP Server Constraints
38
+
39
+
The MCP server runs in **stdio mode** — stdout is reserved exclusively for MCP protocol communication. Violating this causes the server to hang silently with no response to the client.
40
+
41
+
**Rules for any code called from MCP tool handlers:**
42
+
43
+
- Never use `print()` — use `logging` instead (logs go to a file, not stdout)
44
+
- Never write to `sys.stdout` directly
45
+
- Subprocess calls must not inherit stdout (use `subprocess.PIPE` or redirect to a file)
46
+
47
+
## 6. Core Module Architecture
38
48
39
49
Parser: Interprets Git log formats and transforms them into data objects.
0 commit comments