Commit
·
b02d995
1
Parent(s):
78760a2
mcp file protocol fix
Browse files- examples/__init__.py +13 -0
- {owl → examples}/mcp_servers_config.json +2 -1
- examples/run_mcp.py +5 -4
examples/__init__.py
CHANGED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
|
2 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
3 |
+
# you may not use this file except in compliance with the License.
|
4 |
+
# You may obtain a copy of the License at
|
5 |
+
#
|
6 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
7 |
+
#
|
8 |
+
# Unless required by applicable law or agreed to in writing, software
|
9 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
10 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
11 |
+
# See the License for the specific language governing permissions and
|
12 |
+
# limitations under the License.
|
13 |
+
# ========= Copyright 2023-2024 @ CAMEL-AI.org. All Rights Reserved. =========
|
{owl → examples}/mcp_servers_config.json
RENAMED
@@ -4,7 +4,8 @@
|
|
4 |
"command": "npx",
|
5 |
"args": [
|
6 |
"-y",
|
7 |
-
"@wonderwhy-er/desktop-commander"
|
|
|
8 |
]
|
9 |
},
|
10 |
"playwright": {
|
|
|
4 |
"command": "npx",
|
5 |
"args": [
|
6 |
"-y",
|
7 |
+
"@wonderwhy-er/desktop-commander",
|
8 |
+
"--force-file-protocol"
|
9 |
]
|
10 |
},
|
11 |
"playwright": {
|
examples/run_mcp.py
CHANGED
@@ -29,7 +29,7 @@ Environment Setup:
|
|
29 |
npx -y @smithery/cli install @wonderwhy-er/desktop-commander --client claude
|
30 |
npx @wonderwhy-er/desktop-commander setup
|
31 |
|
32 |
-
# Configure in owl/mcp_servers_config.json:
|
33 |
{
|
34 |
"desktop-commander": {
|
35 |
"command": "npx",
|
@@ -165,9 +165,10 @@ async def main():
|
|
165 |
await mcp_toolkit.connect()
|
166 |
|
167 |
question = (
|
168 |
-
"I'd like a academic report about Andrew Ng, including
|
169 |
-
"direction, published papers (At least 3),
|
170 |
-
"Then organize the report in Markdown
|
|
|
171 |
)
|
172 |
|
173 |
# Connect to all MCP toolkits
|
|
|
29 |
npx -y @smithery/cli install @wonderwhy-er/desktop-commander --client claude
|
30 |
npx @wonderwhy-er/desktop-commander setup
|
31 |
|
32 |
+
# Configure in owl/examples/mcp_servers_config.json:
|
33 |
{
|
34 |
"desktop-commander": {
|
35 |
"command": "npx",
|
|
|
165 |
await mcp_toolkit.connect()
|
166 |
|
167 |
question = (
|
168 |
+
"I'd like a academic report about Andrew Ng, including "
|
169 |
+
"his research direction, published papers (At least 3),"
|
170 |
+
" institutions, etc.Then organize the report in Markdown "
|
171 |
+
"format and save it to my desktop"
|
172 |
)
|
173 |
|
174 |
# Connect to all MCP toolkits
|