data-breach-detector 0.2.1__tar.gz → 0.2.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: data-breach-detector
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: Read-only breach-intelligence MCP: reports THAT an organization was breached and which data types leaked, across full history from public feeds (HaveIBeenPwned, RansomLook, ransomwatch archive, SEC 8-K 1.05). Never the leaked data.
5
5
  Project-URL: Homepage, https://github.com/beepboop2025/data-breach-detector
6
6
  Project-URL: Repository, https://github.com/beepboop2025/data-breach-detector
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "data-breach-detector"
7
- version = "0.2.1"
7
+ version = "0.2.2"
8
8
  description = "Read-only breach-intelligence MCP: reports THAT an organization was breached and which data types leaked, across full history from public feeds (HaveIBeenPwned, RansomLook, ransomwatch archive, SEC 8-K 1.05). Never the leaked data."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -3,7 +3,7 @@
3
3
  "name": "io.github.beepboop2025/data-breach-detector",
4
4
  "title": "data-breach-detector",
5
5
  "description": "Read-only breach intel, full history 2007-today: reports THAT an org was breached, never the data.",
6
- "version": "0.2.1",
6
+ "version": "0.2.2",
7
7
  "repository": {
8
8
  "url": "https://github.com/beepboop2025/data-breach-detector",
9
9
  "source": "github"
@@ -12,7 +12,7 @@
12
12
  {
13
13
  "registryType": "pypi",
14
14
  "identifier": "data-breach-detector",
15
- "version": "0.2.1",
15
+ "version": "0.2.2",
16
16
  "transport": {
17
17
  "type": "stdio"
18
18
  }
@@ -2,5 +2,5 @@
2
2
 
3
3
  from .server import mcp
4
4
 
5
- __version__ = "0.2.1"
5
+ __version__ = "0.2.2"
6
6
  __all__ = ["mcp"]
@@ -365,8 +365,9 @@ async def breach_news(
365
365
  description="optional source filter: 'HaveIBeenPwned', 'RansomLook', "
366
366
  "'ransomwatch-archive' or 'SEC EDGAR 8-K 1.05'")] = None,
367
367
  limit: Annotated[int, Field(
368
- description="maximum disclosures to return (default 25)",
369
- ge=1, le=100)] = 25,
368
+ description="maximum disclosures to return (default 10; raise it "
369
+ "deliberately, large pages are heavy for an agent loop)",
370
+ ge=1, le=100)] = 10,
370
371
  ) -> dict:
371
372
  """Read recent breach and ransomware DISCLOSURES from public threat-intel
372
373
  feeds (HaveIBeenPwned, the RansomLook live leak-site tracker and SEC 8-K
@@ -448,7 +449,9 @@ async def breach_history(
448
449
  order: Annotated[str, Field(
449
450
  description="'newest' (default), 'oldest' or 'largest' (by accounts exposed)")] = "newest",
450
451
  limit: Annotated[int, Field(
451
- description="maximum incidents to return (default 25)", ge=1, le=100)] = 25,
452
+ description="maximum incidents to return (default 10; raise it "
453
+ "deliberately, large pages are heavy for an agent loop)",
454
+ ge=1, le=100)] = 10,
452
455
  ) -> dict:
453
456
  """Search the FULL historical breach archive — every incident this server
454
457
  knows about, back to 2007: HaveIBeenPwned's verified breach directory, the
@@ -145,6 +145,16 @@ def test_list_payloads_are_slimmed():
145
145
  assert hist["returned"] == min(hist["count"], 5)
146
146
 
147
147
 
148
+ def test_default_pages_stay_small_enough_for_a_tool_loop():
149
+ """A 25-row default serialized to ~14KB and stalled an agent's tool loop."""
150
+ import json
151
+ for payload in (run(S.breach_news(since_days=100000)),
152
+ run(S.breach_history()),
153
+ run(S.breach_timeline("acme.example")),
154
+ run(S.check_exposure("acme.example"))):
155
+ assert len(json.dumps(payload)) < 8000
156
+
157
+
148
158
  def test_timeline_repeat_victim_judgment():
149
159
  out = run(S.breach_timeline("acme.example"))
150
160
  assert out["repeat_victim"] is True