Add MCP delivery payload and run report queries
This commit is contained in:
@@ -15,7 +15,9 @@ from summary_mcp.models.filtering import FilterContext, FilterInput
|
||||
from summary_mcp.models.item import Item
|
||||
from summary_mcp.models.llm_result import LlmSummaryResult
|
||||
from summary_mcp.models.summary_io import ExtractionInput
|
||||
from summary_mcp.runtime import get_delivery_payload as load_delivery_payload
|
||||
from summary_mcp.runtime import get_run_status as load_run_status
|
||||
from summary_mcp.runtime import get_run_report as load_run_report
|
||||
from summary_mcp.runtime import list_run_artifacts as load_run_artifacts
|
||||
from summary_mcp.runtime import list_runs as load_runs
|
||||
from summary_mcp.workflows import run_freshrss_pipeline
|
||||
@@ -144,6 +146,18 @@ def list_run_artifacts(run_id: str) -> dict:
|
||||
return load_run_artifacts(run_id=run_id)
|
||||
|
||||
|
||||
@mcp.tool()
|
||||
def get_delivery_payload(run_id: str) -> dict:
|
||||
"""Get the structured OpenClaw delivery payload for a workflow run."""
|
||||
return load_delivery_payload(run_id=run_id)
|
||||
|
||||
|
||||
@mcp.tool()
|
||||
def get_run_report(run_id: str) -> dict:
|
||||
"""Get the structured run report for a workflow run."""
|
||||
return load_run_report(run_id=run_id)
|
||||
|
||||
|
||||
@mcp.tool()
|
||||
def generate_article_summaries(
|
||||
*,
|
||||
|
||||
Reference in New Issue
Block a user