agentrender-mcp 0.1.2__tar.gz → 0.1.3__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.
- {agentrender_mcp-0.1.2 → agentrender_mcp-0.1.3}/PKG-INFO +1 -1
- {agentrender_mcp-0.1.2 → agentrender_mcp-0.1.3}/agentrender_mcp/__init__.py +1 -1
- {agentrender_mcp-0.1.2 → agentrender_mcp-0.1.3}/agentrender_mcp/server.py +11 -1
- {agentrender_mcp-0.1.2 → agentrender_mcp-0.1.3}/pyproject.toml +1 -1
- {agentrender_mcp-0.1.2 → agentrender_mcp-0.1.3}/.gitignore +0 -0
- {agentrender_mcp-0.1.2 → agentrender_mcp-0.1.3}/LICENSE +0 -0
- {agentrender_mcp-0.1.2 → agentrender_mcp-0.1.3}/README.md +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: agentrender-mcp
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: MCP server: URL to screenshot, PDF, or structured extract for AI agents. Free key: 150 renders/month, no card; then Starter $17/month.
|
|
5
5
|
Project-URL: Homepage, https://agentrenderapi.com
|
|
6
6
|
Project-URL: API, https://api.agentrenderapi.com
|
|
@@ -244,7 +244,7 @@ def extract(
|
|
|
244
244
|
@mcp.tool()
|
|
245
245
|
def get_free_key(email: str) -> dict[str, Any]:
|
|
246
246
|
"""Get a free AgentRender API key instantly (150 renders/month, no card) for this
|
|
247
|
-
email. The key works immediately for this session; add it to AGENTRENDER_API_KEY
|
|
247
|
+
email. If the email already has a key, it is emailed to that address (not shown). The key works immediately for this session; add it to AGENTRENDER_API_KEY
|
|
248
248
|
in your MCP config to keep it."""
|
|
249
249
|
global _session_key
|
|
250
250
|
data = _request(
|
|
@@ -254,6 +254,16 @@ def get_free_key(email: str) -> dict[str, Any]:
|
|
|
254
254
|
with_key=False,
|
|
255
255
|
)
|
|
256
256
|
key = (data.get("api_key") or "").strip() if isinstance(data, dict) else ""
|
|
257
|
+
if not key and isinstance(data, dict) and data.get("already_issued"):
|
|
258
|
+
# Existing keys are never displayed again — the API emails them to the owner.
|
|
259
|
+
return {
|
|
260
|
+
"ok": True,
|
|
261
|
+
"api_key": None,
|
|
262
|
+
"emailed": bool(data.get("emailed")),
|
|
263
|
+
"message": data.get("message")
|
|
264
|
+
or "This email already has a free key; it was emailed to that address.",
|
|
265
|
+
"note": "Ask the user to check their inbox, then set AGENTRENDER_API_KEY to the key and restart this MCP server.",
|
|
266
|
+
}
|
|
257
267
|
if not key:
|
|
258
268
|
raise RuntimeError(f"No key returned. Get one at {FREE_KEY_URL} or email {SUPPORT_EMAIL}.")
|
|
259
269
|
_session_key = key
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "agentrender-mcp"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.3"
|
|
8
8
|
description = "MCP server: URL to screenshot, PDF, or structured extract for AI agents. Free key: 150 renders/month, no card; then Starter $17/month."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.11"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|