Skip to content

MCP Server Part 9: Background callbacks#3766

Open
KoolADE85 wants to merge 3 commits intofeature/mcp-server-integrationfrom
feature/mcp-background-callbacks
Open

MCP Server Part 9: Background callbacks#3766
KoolADE85 wants to merge 3 commits intofeature/mcp-server-integrationfrom
feature/mcp-background-callbacks

Conversation

@KoolADE85
Copy link
Copy Markdown
Contributor

Summary

Adds support for MCP Tasks — when an LLM calls a tool backed by a Dash background callback, the tool returns a taskId immediately and the LLM polls for results.

  • New dash/mcp/tasks/ module that lists, starts, and cancels background callbacks per the MCP spec SEP-1686
  • A new tool to trigger background callbacks (for clients that don't yet implement MCP Tasks natively)
  • Background callback tools' descriptions auto-include the polling instructions so the LLM knows how/when to retrieve results
  • Thorough integration tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant