Skip to content

Commit ebd91a5

Browse files
committed
v0.1.3
1 parent 452a417 commit ebd91a5

File tree

4 files changed

+13
-15
lines changed

4 files changed

+13
-15
lines changed

Makefile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,15 @@ sync-version:
2828
build: clean
2929
uv build
3030

31-
# 4. Test the release locally using the release wheel. I am not sure why the command `sherlock-mcp` can't be ommited here.
31+
# 4.a Test the release locally using the release wheel. I am not sure why the command `sherlock-mcp` can't be ommited here.
3232
run-release: build
33-
uv tool run --with dist/sherlock_mcp-0.1.1-py3-none-any.whl sherlock-mcp
33+
uv tool run --with dist/sherlock_mcp-0.1.3-py3-none-any.whl sherlock-mcp
34+
35+
# 4.b Test the release from an MCP client using the path
36+
# NOTE this can still fail / use old version depending on uv envs, not sure how to fix it
37+
run-release-client: build
38+
uv --directory /Users/pengren/go/github.com/Fewsats/sherlock-mcp run sherlock-mcp
3439

3540
# 5. Release the package to PyPI
36-
release: build
41+
release: clean build
3742
uv publish --token $(PYPI_TOKEN)

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "sherlock-mcp"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
description = "Shelock Domains MCP server to buy & manage domains"
55
readme = "README.md"
66
requires-python = ">=3.10"

src/sherlock_mcp/server.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,9 @@ async def get_purchase_offers(sid: str, domain: str):
116116
sid: Search ID from a previous search request
117117
domain: Domain name to purchase from the search results related to `sid`
118118
"""
119-
response = Sherlock()._get_purchase_offers(sid, domain)
120-
121-
# Process response to convert 'id' to 'offer_id' in the offers structure
122-
if isinstance(response, dict) and 'offers' in response and isinstance(response['offers'], list):
123-
for offer in response['offers']:
124-
if 'id' in offer and 'offer_id' not in offer:
125-
offer['offer_id'] = offer['id']
126-
# Keep the original id for backward compatibility
127-
128-
return handle_response(response)
119+
120+
return handle_response(Sherlock()._get_purchase_offers(sid, domain))
121+
129122

130123

131124
@mcp.tool()

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)