Skip to content

Conversation

@He-Pin
Copy link
Contributor

@He-Pin He-Pin commented Nov 23, 2025

Motivation and Context

Because of Streamable HTTP, a client might run for a long time and continuously use the same sessionId. Therefore, a user might generate many tasks over a 30-day interaction period. Currently, the interface doesn't filter the returned tasks, so an MCP client might need complex client-side filtering to find the tasks it's interested in. Furthermore, client-side filtering is detrimental to network transmission and information security.

This PR adds server-side filtering capabilities, returning only the data the client is interested in. By quickly returning only the data relevant to the client, end-to-end interaction latency is also reduced.

based on #1875

Modification

Add ListTasksFilter

How Has This Been Tested?

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

@He-Pin He-Pin requested a review from a team as a code owner November 23, 2025 09:23
@He-Pin
Copy link
Contributor Author

He-Pin commented Nov 23, 2025

@LucaButBoring FYI

@He-Pin He-Pin force-pushed the filterTask branch 3 times, most recently from d6d7319 to cfbf795 Compare November 23, 2025 09:54
@localden localden added the rc-high-priority Related to an upcoming specification release and needs to be addressed with a high priority. label Nov 23, 2025
@localden localden removed the rc-high-priority Related to an upcoming specification release and needs to be addressed with a high priority. label Nov 23, 2025
@dsp-ant
Copy link
Member

dsp-ant commented Nov 24, 2025

This would require a SEP https://modelcontextprotocol.io/community/sep-guidelines. Note that previous SEPs #1300 have not been accepted.

@dsp-ant dsp-ant closed this Nov 24, 2025
@He-Pin
Copy link
Contributor Author

He-Pin commented Nov 24, 2025

@dsp-ant thanks. I will prepare one then.

@He-Pin
Copy link
Contributor Author

He-Pin commented Nov 26, 2025

relaced with #1904

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.

3 participants