|
20 | 20 | ], |
21 | 21 | ) |
22 | 22 |
|
| 23 | +github_server_params=StdioServerParameters( |
| 24 | + command="npx", |
| 25 | + args=[ |
| 26 | + "-y", |
| 27 | + "@modelcontextprotocol/server-github", |
| 28 | + ], |
| 29 | + env={"GITHUB_PERSONAL_ACCESS_TOKEN": os.getenv("GITHUB_PERSONAL_ACCESS_TOKEN")}, |
| 30 | +) |
| 31 | + |
| 32 | + |
23 | 33 | brave_search_params=StdioServerParameters( |
24 | 34 | command="npx", |
25 | 35 | args=[ |
|
36 | 46 | ], |
37 | 47 | env={"OPENAI_API_KEY": os.getenv("OPENAI_API_KEY"), "OPENAI_ORGANIZATION": os.getenv("OPENAI_ORGANIZATION")}, |
38 | 48 | ) |
39 | | -all_tools=[server_params, brave_search_params, image_server_params] |
| 49 | + |
| 50 | +all_tools=[server_params, brave_search_params, image_server_params, github_server_params] |
40 | 51 | with MCPServerAdapter(all_tools) as tools: |
41 | 52 | print(f"Available tools from Stdio MCP server: {[tool.name for tool in tools]}") |
42 | 53 |
|
|
50 | 61 | ) |
51 | 62 |
|
52 | 63 | task = Task( |
53 | | - description="""I need you to research Model Context Protocol, then create an image of a diagram on how basic mcp works.""", |
54 | | - expected_output="A confirmation that the image was created.", |
| 64 | + description="""I need you to research Model Context Protocol and create an in-depth diagram on how it works.""", |
| 65 | + expected_output="A summary of the brave search results and a successful image creation.", |
55 | 66 | agent=agent, |
56 | 67 | ) |
57 | 68 |
|
58 | 69 | summary_task = Task( |
59 | 70 | description="Summarize the results of the task and create a text file in the downloads folder (check allowed folders) and save the summary to this file.", |
60 | | - expected_output="A summary of the results of the task in a text file in the downloads folder.", |
| 71 | + expected_output="A summary of the brave search results in a text file in the downloads folder.", |
61 | 72 | agent=agent, |
62 | 73 | ) |
63 | 74 |
|
|
0 commit comments