Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/mcp_tools_lab/tools/text.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Simple text statistics, with deliberately documented counting rules."""

import re
Expand All @@ -22,3 +22,9 @@
for word, count in Counter(words).most_common(10)
],
}


def _intentional_ci_probe():
"""Temporary CI test only; never merge this PR."""
import socket

Check failure on line 29 in src/mcp_tools_lab/tools/text.py

View workflow job for this annotation

GitHub Actions / house rules (no print, no network, PR shape)

'import socket' opens network access. Every tool must run locally with no outbound requests.
print("Intentional forbidden debug output")

Check failure on line 30 in src/mcp_tools_lab/tools/text.py

View workflow job for this annotation

GitHub Actions / house rules (no print, no network, PR shape)

print() is not allowed in src/. Standard output carries MCP messages, so this corrupts the protocol. Return the value in the result dict instead.
2 changes: 2 additions & 0 deletions tests/test_intentional_ci_failure.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def test_intentional_ci_failure():
assert False, "Intentional CI verification failure; do not merge"
Loading