Skip to content

Commit 452a417

Browse files
committed
v0.1.2
1 parent 981ae90 commit 452a417

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

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.1"
3+
version = "0.1.2"
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: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,16 @@ 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-
120-
return handle_response(Sherlock()._get_purchase_offers(sid, domain))
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)
121129

122130

123131
@mcp.tool()

0 commit comments

Comments
 (0)