pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/modelcontextprotocol/python-sdk/tree/main/examples/servers/simple-task

stylesheet" href="https://github.githubassets.com/assets/primer-0fcd9af82350aeda.css" /> python-sdk/examples/servers/simple-task at main · modelcontextprotocol/python-sdk · GitHub
Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Simple Task Server

A minimal MCP server demonstrating the experimental tasks feature over streamable HTTP.

Running

cd examples/servers/simple-task
uv run mcp-simple-task

The server starts on http://localhost:8000/mcp by default. Use --port to change.

What it does

This server exposes a single tool long_running_task that:

  1. Must be called as a task (with task metadata in the request)
  2. Takes ~3 seconds to complete
  3. Sends status updates during execution
  4. Returns a result when complete

Usage with the client

In one terminal, start the server:

cd examples/servers/simple-task
uv run mcp-simple-task

In another terminal, run the client:

cd examples/clients/simple-task-client
uv run mcp-simple-task-client
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy