feat: expose activity map as a native MCP App resource with _meta ui resourceUri
CI/CD Pipeline / Publish to PyPI (push) Successful in 12s
CI/CD Pipeline / Lint & Check (push) Successful in 10s
CI/CD Pipeline / Build & Push Docker Image (push) Successful in 1m28s

This commit is contained in:
2026-05-30 18:48:33 +02:00
parent ef3b8305ab
commit 3164e91be9
4 changed files with 49 additions and 21 deletions
+4 -2
View File
@@ -113,7 +113,8 @@ async def generate():
result = await get_activity_map(ctx, 99999)
html_text = None
for item in result:
content_list = result.content if hasattr(result, "content") else result
for item in content_list:
if isinstance(item, TextContent):
if "<!DOCTYPE html>" in item.text:
html_text = item.text
@@ -191,7 +192,8 @@ async def generate():
# Find the TextContent that holds the HTML
html_text = None
for item in result:
content_list = result.content if hasattr(result, "content") else result
for item in content_list:
if isinstance(item, TextContent):
if "<!DOCTYPE html>" in item.text:
html_text = item.text