support streamable http mcp (#1245)

Co-authored-by: luhualin
This commit is contained in:
Betula-L
2025-05-22 05:34:50 +08:00
committed by GitHub
parent 38261fd31c
commit 9fd680c366
3 changed files with 36 additions and 4 deletions

View File

@@ -4,7 +4,7 @@
![PyPI - Downloads](https://img.shields.io/pypi/dd/markitdown-mcp)
[![Built by AutoGen Team](https://img.shields.io/badge/Built%20by-AutoGen%20Team-blue)](https://github.com/microsoft/autogen)
The `markitdown-mcp` package provides a lightweight STDIO and SSE MCP server for calling MarkItDown.
The `markitdown-mcp` package provides a lightweight STDIO, SSE and Streamable HTTP MCP server for calling MarkItDown.
It exposes one tool: `convert_to_markdown(uri)`, where uri can be any `http:`, `https:`, `file:`, or `data:` URI.
@@ -25,7 +25,7 @@ To run the MCP server, ussing STDIO (default) use the following command:
markitdown-mcp
```
To run the MCP server, using SSE use the following command:
To run the MCP server, using SSE or Streamable HTTP use the following command:
```bash
markitdown-mcp --sse --host 127.0.0.1 --port 3001
@@ -114,6 +114,11 @@ If using SSE:
* input `http://127.0.0.1:3001/sse` as the URL, and
* click `Connect`
If using Streamable HTTP:
* select `Streamable HTTP` as the transport type,
* input `http://127.0.0.1:3001/mcp` as the URL, and
* click `Connect`
Finally:
* click the `Tools` tab,
* click `List Tools`,
@@ -122,7 +127,7 @@ Finally:
## Security Considerations
The server does not support authentication, and runs with the privileges if the user running it. For this reason, when running in SSE mode, it is recommended to run the server bound to `localhost` (default).
The server does not support authentication, and runs with the privileges if the user running it. For this reason, when running in SSE or Streamable HTTP mode, it is recommended to run the server bound to `localhost` (default).
## Trademarks