Skip to content
Merged
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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ This repo ships a ready-made agent skill at [`skills/tech-detector/SKILL.md`](sk
## Roadmap

- [x] Official MCP Registry listing (`io.github.devkindhq/whatweb-mcp`)
- [ ] Docker MCP Registry and Smithery listings
- [ ] Docker MCP Registry listing
- [ ] Batch scanning (multiple targets in one call)
- [ ] Optional CSV/JSON export tool
- [ ] Scheduled re-scans with diffing (alert when a target's stack changes)
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
mcp==1.6.0
mcp==1.28.1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[compat] On Python ≥3.14 mcp==1.28.1 requires pydantic>=2.12.0, conflicting with this file's pydantic==2.11.5 pin (reproduced ResolutionImpossible on 3.14.7). Fine on 3.12/3.13 — consider a floor bump or README note.

pydantic==2.11.5
pydantic-settings==2.9.1
5 changes: 3 additions & 2 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
TextContent,
Tool,
)
from pydantic import BaseModel, Field
from pydantic import AnyUrl, BaseModel, Field
from pydantic_settings import BaseSettings

logging.basicConfig(
Expand Down Expand Up @@ -348,7 +348,8 @@ async def list_resources() -> list[Resource]:


@app.read_resource()
async def read_resource(uri: str) -> str:
async def read_resource(uri: AnyUrl) -> str:
uri = str(uri)
if uri.startswith("whatweb://results/"):
scan_id = uri.replace("whatweb://results/", "")
result = scan_results.get(scan_id)
Expand Down
23 changes: 0 additions & 23 deletions smithery.yaml

This file was deleted.

19 changes: 19 additions & 0 deletions tests/test_resource.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
"""Tests for resources/read through the registered MCP handler."""

import asyncio
import json

from mcp import types

import server


def test_read_unknown_result_returns_not_found():
handler = server.app.request_handlers[types.ReadResourceRequest]
req = types.ReadResourceRequest(
method="resources/read",
params=types.ReadResourceRequestParams(uri="whatweb://results/missing"),
)
result = asyncio.run(handler(req))
text = result.root.contents[0].text
assert json.loads(text) == {"error": "Resource not found"}