Jarvis-Brain 0.1.1__tar.gz → 0.1.2__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.
- {jarvis_brain-0.1.1 → jarvis_brain-0.1.2}/.idea/workspace.xml +2 -2
- {jarvis_brain-0.1.1 → jarvis_brain-0.1.2}/PKG-INFO +1 -1
- {jarvis_brain-0.1.1 → jarvis_brain-0.1.2}/mcp_tools/main.py +4 -4
- {jarvis_brain-0.1.1 → jarvis_brain-0.1.2}/pyproject.toml +1 -1
- {jarvis_brain-0.1.1 → jarvis_brain-0.1.2}/task_router/1.py +14 -23
- {jarvis_brain-0.1.1 → jarvis_brain-0.1.2}/uv.lock +1 -25
- {jarvis_brain-0.1.1 → jarvis_brain-0.1.2}/.idea/.gitignore +0 -0
- {jarvis_brain-0.1.1 → jarvis_brain-0.1.2}/.idea/JARVIS.iml +0 -0
- {jarvis_brain-0.1.1 → jarvis_brain-0.1.2}/.idea/inspectionProfiles/profiles_settings.xml +0 -0
- {jarvis_brain-0.1.1 → jarvis_brain-0.1.2}/.idea/misc.xml +0 -0
- {jarvis_brain-0.1.1 → jarvis_brain-0.1.2}/.idea/modules.xml +0 -0
- {jarvis_brain-0.1.1 → jarvis_brain-0.1.2}/mcp_tools/__init__.py +0 -0
- {jarvis_brain-0.1.1 → jarvis_brain-0.1.2}/mcp_tools/dp_tools.py +0 -0
- {jarvis_brain-0.1.1 → jarvis_brain-0.1.2}/mcp_tools/requests_tools.py +0 -0
- {jarvis_brain-0.1.1 → jarvis_brain-0.1.2}/task_router/2.py +0 -0
- {jarvis_brain-0.1.1 → jarvis_brain-0.1.2}/task_router/__init__.py +0 -0
- {jarvis_brain-0.1.1 → jarvis_brain-0.1.2}/tools/__init__.py +0 -0
- {jarvis_brain-0.1.1 → jarvis_brain-0.1.2}/tools/simhash_tools.py +0 -0
- {jarvis_brain-0.1.1 → jarvis_brain-0.1.2}/tools/tools.py +0 -0
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
<recent name="$PROJECT_DIR$/src" />
|
|
55
55
|
</key>
|
|
56
56
|
</component>
|
|
57
|
-
<component name="RunManager" selected="Python.
|
|
57
|
+
<component name="RunManager" selected="Python.1">
|
|
58
58
|
<configuration name="1" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
|
|
59
59
|
<module name="JARVIS" />
|
|
60
60
|
<option name="ENV_FILES" value="" />
|
|
@@ -189,8 +189,8 @@
|
|
|
189
189
|
</configuration>
|
|
190
190
|
<recent_temporary>
|
|
191
191
|
<list>
|
|
192
|
-
<item itemvalue="Python.tools" />
|
|
193
192
|
<item itemvalue="Python.1" />
|
|
193
|
+
<item itemvalue="Python.tools" />
|
|
194
194
|
<item itemvalue="Python.2" />
|
|
195
195
|
<item itemvalue="Python.requests_tools" />
|
|
196
196
|
<item itemvalue="Python.simhash_tools" />
|
|
@@ -6,19 +6,19 @@ from fastmcp import FastMCP
|
|
|
6
6
|
mcp = FastMCP("Jarvis Brain Mcp Tools")
|
|
7
7
|
|
|
8
8
|
# 根据环境变量加载模块
|
|
9
|
-
enabled_modules = os.getenv("MCP_MODULES", "
|
|
9
|
+
enabled_modules = os.getenv("MCP_MODULES", "TeamNode-Dp").split(",")
|
|
10
10
|
|
|
11
|
-
if "
|
|
11
|
+
if "TeamNode-Dp" in enabled_modules:
|
|
12
12
|
register_visit_url(mcp)
|
|
13
13
|
register_close_tab(mcp)
|
|
14
14
|
register_switch_tab(mcp)
|
|
15
15
|
register_get_html(mcp)
|
|
16
16
|
register_get_new_tab(mcp)
|
|
17
17
|
register_check_selector(mcp)
|
|
18
|
-
register_assert_Static_Web(mcp)
|
|
19
18
|
|
|
20
|
-
if "
|
|
19
|
+
if "JarvisNode" in enabled_modules:
|
|
21
20
|
register_assert_waf(mcp)
|
|
21
|
+
register_assert_Static_Web(mcp)
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
def main():
|
|
@@ -51,50 +51,41 @@ options = ClaudeAgentOptions(
|
|
|
51
51
|
permission_mode='bypassPermissions',
|
|
52
52
|
cwd=base_cwd,
|
|
53
53
|
mcp_servers={
|
|
54
|
-
|
|
55
|
-
# "command": "uvx",
|
|
56
|
-
# "args": ["--from", "Jarvis_Brain", "jarvis-mcp"],
|
|
57
|
-
# "env": {
|
|
58
|
-
# "MCP_MODULES": "DrissionPage"
|
|
59
|
-
# }
|
|
60
|
-
# },
|
|
61
|
-
"jarvis-dp": {
|
|
54
|
+
"team-node-dp": {
|
|
62
55
|
"command": "uv",
|
|
63
56
|
"args": [
|
|
64
57
|
"run",
|
|
65
58
|
"--directory",
|
|
66
59
|
"/Users/user/PycharmProjects/JARVIS/mcp_tools",
|
|
67
|
-
# "jarvis-mcp"
|
|
68
60
|
"main.py"
|
|
69
61
|
],
|
|
70
62
|
"env": {
|
|
71
|
-
"MCP_MODULES": "
|
|
63
|
+
"MCP_MODULES": "TeamNode-Dp"
|
|
72
64
|
}
|
|
73
65
|
},
|
|
74
|
-
"jarvis-
|
|
66
|
+
"jarvis-node": {
|
|
75
67
|
"command": "uv",
|
|
76
68
|
"args": [
|
|
77
69
|
"run",
|
|
78
70
|
"--directory",
|
|
79
71
|
"/Users/user/PycharmProjects/JARVIS/mcp_tools",
|
|
80
|
-
# "jarvis-mcp"
|
|
81
72
|
"main.py"
|
|
82
73
|
],
|
|
83
74
|
"env": {
|
|
84
|
-
"MCP_MODULES": "
|
|
75
|
+
"MCP_MODULES": "JarvisNode"
|
|
85
76
|
}
|
|
86
77
|
},
|
|
87
78
|
},
|
|
88
79
|
# setting_sources=["project"],
|
|
89
80
|
allowed_tools=[
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"mcp__jarvis-
|
|
97
|
-
"mcp__jarvis-
|
|
81
|
+
"mcp__team-node-dp__get_html",
|
|
82
|
+
"mcp__team-node-dp__visit_url",
|
|
83
|
+
"mcp__team-node-dp__get_new_tab",
|
|
84
|
+
"mcp__team-node-dp__switch_tab",
|
|
85
|
+
"mcp__team-node-dp__close_tab",
|
|
86
|
+
"mcp__team-node-dp__check_selector",
|
|
87
|
+
"mcp__jarvis-node__assert_Static_Web", # 判断当前页面是否为静态页面
|
|
88
|
+
"mcp__jarvis-node__assert_waf", # 判断传入的url是否使用了瑞数,jsl等防火墙
|
|
98
89
|
'Read',
|
|
99
90
|
'Write',
|
|
100
91
|
'Edit',
|
|
@@ -138,14 +129,14 @@ async def run(url):
|
|
|
138
129
|
|
|
139
130
|
async def main():
|
|
140
131
|
tasks = []
|
|
141
|
-
with open("/Users/user/
|
|
132
|
+
with open("/Users/user/Desktop/mapping_copy.json", "r", encoding="utf-8") as f:
|
|
142
133
|
mapping = json.load(f)
|
|
143
134
|
mapping = dict(list(mapping.items()))
|
|
144
135
|
for key, value in mapping.items():
|
|
145
136
|
tasks.append((run, (), { # 关键字参数字典
|
|
146
137
|
"url": value,
|
|
147
138
|
}))
|
|
148
|
-
manager = SimpleTaskManager(max_concurrent=
|
|
139
|
+
manager = SimpleTaskManager(max_concurrent=1)
|
|
149
140
|
results = await manager.process_all(tasks)
|
|
150
141
|
# 输出结果
|
|
151
142
|
print("\n任务结果摘要:")
|
|
@@ -585,7 +585,7 @@ wheels = [
|
|
|
585
585
|
|
|
586
586
|
[[package]]
|
|
587
587
|
name = "jarvis-brain"
|
|
588
|
-
version = "0.1.
|
|
588
|
+
version = "0.1.1"
|
|
589
589
|
source = { editable = "." }
|
|
590
590
|
dependencies = [
|
|
591
591
|
{ name = "beautifulsoup4" },
|
|
@@ -593,7 +593,6 @@ dependencies = [
|
|
|
593
593
|
{ name = "fastmcp" },
|
|
594
594
|
{ name = "htmlmin" },
|
|
595
595
|
{ name = "jieba" },
|
|
596
|
-
{ name = "markdownify" },
|
|
597
596
|
{ name = "simhash" },
|
|
598
597
|
]
|
|
599
598
|
|
|
@@ -604,7 +603,6 @@ requires-dist = [
|
|
|
604
603
|
{ name = "fastmcp" },
|
|
605
604
|
{ name = "htmlmin" },
|
|
606
605
|
{ name = "jieba" },
|
|
607
|
-
{ name = "markdownify" },
|
|
608
606
|
{ name = "simhash" },
|
|
609
607
|
]
|
|
610
608
|
|
|
@@ -792,19 +790,6 @@ wheels = [
|
|
|
792
790
|
{ url = "https://files.pythonhosted.org/packages/94/54/e7d793b573f298e1c9013b8c4dade17d481164aa517d1d7148619c2cedbf/markdown_it_py-4.0.0-py3-none-any.whl", hash = "sha256:87327c59b172c5011896038353a81343b6754500a08cd7a4973bb48c6d578147", size = 87321, upload-time = "2025-08-11T12:57:51.923Z" },
|
|
793
791
|
]
|
|
794
792
|
|
|
795
|
-
[[package]]
|
|
796
|
-
name = "markdownify"
|
|
797
|
-
version = "1.2.2"
|
|
798
|
-
source = { registry = "https://pypi.org/simple" }
|
|
799
|
-
dependencies = [
|
|
800
|
-
{ name = "beautifulsoup4" },
|
|
801
|
-
{ name = "six" },
|
|
802
|
-
]
|
|
803
|
-
sdist = { url = "https://files.pythonhosted.org/packages/3f/bc/c8c8eea5335341306b0fa7e1cb33c5e1c8d24ef70ddd684da65f41c49c92/markdownify-1.2.2.tar.gz", hash = "sha256:b274f1b5943180b031b699b199cbaeb1e2ac938b75851849a31fd0c3d6603d09", size = 18816, upload-time = "2025-11-16T19:21:18.565Z" }
|
|
804
|
-
wheels = [
|
|
805
|
-
{ url = "https://files.pythonhosted.org/packages/43/ce/f1e3e9d959db134cedf06825fae8d5b294bd368aacdd0831a3975b7c4d55/markdownify-1.2.2-py3-none-any.whl", hash = "sha256:3f02d3cc52714084d6e589f70397b6fc9f2f3a8531481bf35e8cc39f975e186a", size = 15724, upload-time = "2025-11-16T19:21:17.622Z" },
|
|
806
|
-
]
|
|
807
|
-
|
|
808
793
|
[[package]]
|
|
809
794
|
name = "mcp"
|
|
810
795
|
version = "1.22.0"
|
|
@@ -1599,15 +1584,6 @@ wheels = [
|
|
|
1599
1584
|
{ url = "https://files.pythonhosted.org/packages/2e/86/0f4a39a50fcf510753b7abd98b728e66c14fefe89bad9ef5824745bf7b9f/simhash-2.1.2-py3-none-any.whl", hash = "sha256:968de16c82c227a631aa00e57ab58f9e4ee9e47e8408486199a9eb59c1d6979b", size = 4714, upload-time = "2022-03-03T01:24:22.255Z" },
|
|
1600
1585
|
]
|
|
1601
1586
|
|
|
1602
|
-
[[package]]
|
|
1603
|
-
name = "six"
|
|
1604
|
-
version = "1.17.0"
|
|
1605
|
-
source = { registry = "https://pypi.org/simple" }
|
|
1606
|
-
sdist = { url = "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz", hash = "sha256:ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81", size = 34031, upload-time = "2024-12-04T17:35:28.174Z" }
|
|
1607
|
-
wheels = [
|
|
1608
|
-
{ url = "https://files.pythonhosted.org/packages/b7/ce/149a00dd41f10bc29e5921b496af8b574d8413afcd5e30dfa0ed46c2cc5e/six-1.17.0-py2.py3-none-any.whl", hash = "sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274", size = 11050, upload-time = "2024-12-04T17:35:26.475Z" },
|
|
1609
|
-
]
|
|
1610
|
-
|
|
1611
1587
|
[[package]]
|
|
1612
1588
|
name = "soupsieve"
|
|
1613
1589
|
version = "2.8"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|