Jarvis-Brain 0.1.9.12__tar.gz → 0.1.9.14__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Jarvis_Brain
3
- Version: 0.1.9.12
3
+ Version: 0.1.9.14
4
4
  Summary: Jarvis brain mcp
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: beautifulsoup4
@@ -5,7 +5,7 @@
5
5
  一个基于 FastMCP 和 DrissionPage 的浏览器自动化 MCP 服务器
6
6
 
7
7
  [![Python Version](https://img.shields.io/badge/python-3.10+-blue.svg)](https://www.python.org/downloads/)
8
- [![Version](https://img.shields.io/badge/version-0.1.5.7-green.svg)](https://github.com/yourusername/jarvis-mcp)
8
+ [![Version](https://img.shields.io/badge/version-0.1.9.12-green.svg)](https://github.com/yourusername/jarvis-mcp)
9
9
 
10
10
  ## 📖 简介
11
11
 
@@ -25,7 +25,7 @@ def register_visit_url(mcp: FastMCP, browser_manager: BrowserManager, client_man
25
25
  "如果想要以域名对packet进行过滤,可以传入想要过滤的域名列表。默认是:None。"
26
26
  "如果想要以method对packet进行过滤,可以传入想要过滤的method列表,默认是:['GET', 'POST']")
27
27
  async def visit_url(url: str, domain_filter: list = None, method_filter: list = ["GET", "POST"],
28
- use_mobile_user_agent=False) -> dict[str, Any]:
28
+ use_mobile_user_agent: bool = False) -> dict[str, Any]:
29
29
  mobile_user_agent = None
30
30
  if use_mobile_user_agent:
31
31
  mobile_user_agent = "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Mobile Safari/537.36"
@@ -117,7 +117,7 @@ def register_switch_tab(mcp: FastMCP, browser_manager):
117
117
 
118
118
  def register_close_tab(mcp: FastMCP, browser_manager):
119
119
  @mcp.tool(name="close_tab", description="根据传入的tab_id关闭tab页", )
120
- async def close_tab(browser_port, tab_id) -> dict[str, Any]:
120
+ async def close_tab(browser_port: int, tab_id: str) -> dict[str, Any]:
121
121
  _browser = browser_manager.get_browser(browser_port)
122
122
  _browser.close_tabs(tab_id)
123
123
  return dp_mcp_message_pack(f"已将tab页:【{tab_id}】关闭")
@@ -29,7 +29,7 @@ if "JarvisNode" in enabled_modules:
29
29
 
30
30
 
31
31
  def main():
32
- mcp.run(transport="stdio")
32
+ mcp.run(transport="stdio",show_banner=False)
33
33
 
34
34
 
35
35
  if __name__ == '__main__':
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "Jarvis_Brain" # 别人下载时用的名字,必须在 PyPI 上唯一
3
- version = "0.1.9.12"
3
+ version = "0.1.9.14"
4
4
  description = "Jarvis brain mcp"
5
5
  dependencies = [
6
6
  "fastmcp",
File without changes