File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ Presently the server only supports fetching HTML content.
1616
1717## Installation
1818
19+ Optionally: Install node.js, this will cause the fetch serve to use a different HTML simplifier that is more robust.
20+
1921### Using uv (recommended)
2022
2123When using [ ` uv ` ] ( https://docs.astral.sh/uv/ ) no specific installation is needed. We will
Original file line number Diff line number Diff line change 11[project ]
22name = " mcp-server-fetch"
3- version = " 0.1.2 "
3+ version = " 0.1.3 "
44description = " A Model Context Protocol server providing tools to fetch and convert web content for usage by LLMs"
55readme = " README.md"
66requires-python = " >=3.10"
Original file line number Diff line number Diff line change 2424
2525
2626def extract_content (html : str ) -> str :
27- ret = readabilipy .simple_json .simple_json_from_html_string (html )
27+ ret = readabilipy .simple_json .simple_json_from_html_string (
28+ html , use_readability = True
29+ )
2830 if not ret ["plain_content" ]:
2931 return "<error>Page failed to be simplified from HTML</error>"
3032 content = markdownify .markdownify (
31- ret ["plain_content " ],
33+ ret ["content " ],
3234 heading_style = markdownify .ATX ,
3335 )
3436 return content
You can’t perform that action at this time.
0 commit comments