feat: expose activity map as a native MCP App resource with _meta ui resourceUri
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user