massgen 0.0.3__py3-none-any.whl → 0.1.0__py3-none-any.whl
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.
Potentially problematic release.
This version of massgen might be problematic. Click here for more details.
- massgen/__init__.py +142 -8
- massgen/adapters/__init__.py +29 -0
- massgen/adapters/ag2_adapter.py +483 -0
- massgen/adapters/base.py +183 -0
- massgen/adapters/tests/__init__.py +0 -0
- massgen/adapters/tests/test_ag2_adapter.py +439 -0
- massgen/adapters/tests/test_agent_adapter.py +128 -0
- massgen/adapters/utils/__init__.py +2 -0
- massgen/adapters/utils/ag2_utils.py +236 -0
- massgen/adapters/utils/tests/__init__.py +0 -0
- massgen/adapters/utils/tests/test_ag2_utils.py +138 -0
- massgen/agent_config.py +329 -55
- massgen/api_params_handler/__init__.py +10 -0
- massgen/api_params_handler/_api_params_handler_base.py +99 -0
- massgen/api_params_handler/_chat_completions_api_params_handler.py +176 -0
- massgen/api_params_handler/_claude_api_params_handler.py +113 -0
- massgen/api_params_handler/_response_api_params_handler.py +130 -0
- massgen/backend/__init__.py +39 -4
- massgen/backend/azure_openai.py +385 -0
- massgen/backend/base.py +341 -69
- massgen/backend/base_with_mcp.py +1102 -0
- massgen/backend/capabilities.py +386 -0
- massgen/backend/chat_completions.py +577 -130
- massgen/backend/claude.py +1033 -537
- massgen/backend/claude_code.py +1203 -0
- massgen/backend/cli_base.py +209 -0
- massgen/backend/docs/BACKEND_ARCHITECTURE.md +126 -0
- massgen/backend/{CLAUDE_API_RESEARCH.md → docs/CLAUDE_API_RESEARCH.md} +18 -18
- massgen/backend/{GEMINI_API_DOCUMENTATION.md → docs/GEMINI_API_DOCUMENTATION.md} +9 -9
- massgen/backend/docs/Gemini MCP Integration Analysis.md +1050 -0
- massgen/backend/docs/MCP_IMPLEMENTATION_CLAUDE_BACKEND.md +177 -0
- massgen/backend/docs/MCP_INTEGRATION_RESPONSE_BACKEND.md +352 -0
- massgen/backend/docs/OPENAI_GPT5_MODELS.md +211 -0
- massgen/backend/{OPENAI_RESPONSES_API_FORMAT.md → docs/OPENAI_RESPONSE_API_TOOL_CALLS.md} +3 -3
- massgen/backend/docs/OPENAI_response_streaming.md +20654 -0
- massgen/backend/docs/inference_backend.md +257 -0
- massgen/backend/docs/permissions_and_context_files.md +1085 -0
- massgen/backend/external.py +126 -0
- massgen/backend/gemini.py +1850 -241
- massgen/backend/grok.py +40 -156
- massgen/backend/inference.py +156 -0
- massgen/backend/lmstudio.py +171 -0
- massgen/backend/response.py +1095 -322
- massgen/chat_agent.py +131 -113
- massgen/cli.py +1560 -275
- massgen/config_builder.py +2396 -0
- massgen/configs/BACKEND_CONFIGURATION.md +458 -0
- massgen/configs/README.md +559 -216
- massgen/configs/ag2/ag2_case_study.yaml +27 -0
- massgen/configs/ag2/ag2_coder.yaml +34 -0
- massgen/configs/ag2/ag2_coder_case_study.yaml +36 -0
- massgen/configs/ag2/ag2_gemini.yaml +27 -0
- massgen/configs/ag2/ag2_groupchat.yaml +108 -0
- massgen/configs/ag2/ag2_groupchat_gpt.yaml +118 -0
- massgen/configs/ag2/ag2_single_agent.yaml +21 -0
- massgen/configs/basic/multi/fast_timeout_example.yaml +37 -0
- massgen/configs/basic/multi/gemini_4o_claude.yaml +31 -0
- massgen/configs/basic/multi/gemini_gpt5nano_claude.yaml +36 -0
- massgen/configs/{gemini_4o_claude.yaml → basic/multi/geminicode_4o_claude.yaml} +3 -3
- massgen/configs/basic/multi/geminicode_gpt5nano_claude.yaml +36 -0
- massgen/configs/basic/multi/glm_gemini_claude.yaml +25 -0
- massgen/configs/basic/multi/gpt4o_audio_generation.yaml +30 -0
- massgen/configs/basic/multi/gpt4o_image_generation.yaml +31 -0
- massgen/configs/basic/multi/gpt5nano_glm_qwen.yaml +26 -0
- massgen/configs/basic/multi/gpt5nano_image_understanding.yaml +26 -0
- massgen/configs/{three_agents_default.yaml → basic/multi/three_agents_default.yaml} +8 -4
- massgen/configs/basic/multi/three_agents_opensource.yaml +27 -0
- massgen/configs/basic/multi/three_agents_vllm.yaml +20 -0
- massgen/configs/basic/multi/two_agents_gemini.yaml +19 -0
- massgen/configs/{two_agents.yaml → basic/multi/two_agents_gpt5.yaml} +14 -6
- massgen/configs/basic/multi/two_agents_opensource_lmstudio.yaml +31 -0
- massgen/configs/basic/multi/two_qwen_vllm_sglang.yaml +28 -0
- massgen/configs/{single_agent.yaml → basic/single/single_agent.yaml} +1 -1
- massgen/configs/{single_flash2.5.yaml → basic/single/single_flash2.5.yaml} +1 -2
- massgen/configs/basic/single/single_gemini2.5pro.yaml +16 -0
- massgen/configs/basic/single/single_gpt4o_audio_generation.yaml +22 -0
- massgen/configs/basic/single/single_gpt4o_image_generation.yaml +22 -0
- massgen/configs/basic/single/single_gpt4o_video_generation.yaml +24 -0
- massgen/configs/basic/single/single_gpt5nano.yaml +20 -0
- massgen/configs/basic/single/single_gpt5nano_file_search.yaml +18 -0
- massgen/configs/basic/single/single_gpt5nano_image_understanding.yaml +17 -0
- massgen/configs/basic/single/single_gptoss120b.yaml +15 -0
- massgen/configs/basic/single/single_openrouter_audio_understanding.yaml +15 -0
- massgen/configs/basic/single/single_qwen_video_understanding.yaml +15 -0
- massgen/configs/debug/code_execution/command_filtering_blacklist.yaml +29 -0
- massgen/configs/debug/code_execution/command_filtering_whitelist.yaml +28 -0
- massgen/configs/debug/code_execution/docker_verification.yaml +29 -0
- massgen/configs/debug/skip_coordination_test.yaml +27 -0
- massgen/configs/debug/test_sdk_migration.yaml +17 -0
- massgen/configs/docs/DISCORD_MCP_SETUP.md +208 -0
- massgen/configs/docs/TWITTER_MCP_ENESCINAR_SETUP.md +82 -0
- massgen/configs/providers/azure/azure_openai_multi.yaml +21 -0
- massgen/configs/providers/azure/azure_openai_single.yaml +19 -0
- massgen/configs/providers/claude/claude.yaml +14 -0
- massgen/configs/providers/gemini/gemini_gpt5nano.yaml +28 -0
- massgen/configs/providers/local/lmstudio.yaml +11 -0
- massgen/configs/providers/openai/gpt5.yaml +46 -0
- massgen/configs/providers/openai/gpt5_nano.yaml +46 -0
- massgen/configs/providers/others/grok_single_agent.yaml +19 -0
- massgen/configs/providers/others/zai_coding_team.yaml +108 -0
- massgen/configs/providers/others/zai_glm45.yaml +12 -0
- massgen/configs/{creative_team.yaml → teams/creative/creative_team.yaml} +16 -6
- massgen/configs/{travel_planning.yaml → teams/creative/travel_planning.yaml} +16 -6
- massgen/configs/{news_analysis.yaml → teams/research/news_analysis.yaml} +16 -6
- massgen/configs/{research_team.yaml → teams/research/research_team.yaml} +15 -7
- massgen/configs/{technical_analysis.yaml → teams/research/technical_analysis.yaml} +16 -6
- massgen/configs/tools/code-execution/basic_command_execution.yaml +25 -0
- massgen/configs/tools/code-execution/code_execution_use_case_simple.yaml +41 -0
- massgen/configs/tools/code-execution/docker_claude_code.yaml +32 -0
- massgen/configs/tools/code-execution/docker_multi_agent.yaml +32 -0
- massgen/configs/tools/code-execution/docker_simple.yaml +29 -0
- massgen/configs/tools/code-execution/docker_with_resource_limits.yaml +32 -0
- massgen/configs/tools/code-execution/multi_agent_playwright_automation.yaml +57 -0
- massgen/configs/tools/filesystem/cc_gpt5_gemini_filesystem.yaml +34 -0
- massgen/configs/tools/filesystem/claude_code_context_sharing.yaml +68 -0
- massgen/configs/tools/filesystem/claude_code_flash2.5.yaml +43 -0
- massgen/configs/tools/filesystem/claude_code_flash2.5_gptoss.yaml +49 -0
- massgen/configs/tools/filesystem/claude_code_gpt5nano.yaml +31 -0
- massgen/configs/tools/filesystem/claude_code_single.yaml +40 -0
- massgen/configs/tools/filesystem/fs_permissions_test.yaml +87 -0
- massgen/configs/tools/filesystem/gemini_gemini_workspace_cleanup.yaml +54 -0
- massgen/configs/tools/filesystem/gemini_gpt5_filesystem_casestudy.yaml +30 -0
- massgen/configs/tools/filesystem/gemini_gpt5nano_file_context_path.yaml +43 -0
- massgen/configs/tools/filesystem/gemini_gpt5nano_protected_paths.yaml +45 -0
- massgen/configs/tools/filesystem/gpt5mini_cc_fs_context_path.yaml +31 -0
- massgen/configs/tools/filesystem/grok4_gpt5_gemini_filesystem.yaml +32 -0
- massgen/configs/tools/filesystem/multiturn/grok4_gpt5_claude_code_filesystem_multiturn.yaml +58 -0
- massgen/configs/tools/filesystem/multiturn/grok4_gpt5_gemini_filesystem_multiturn.yaml +58 -0
- massgen/configs/tools/filesystem/multiturn/two_claude_code_filesystem_multiturn.yaml +47 -0
- massgen/configs/tools/filesystem/multiturn/two_gemini_flash_filesystem_multiturn.yaml +48 -0
- massgen/configs/tools/mcp/claude_code_discord_mcp_example.yaml +27 -0
- massgen/configs/tools/mcp/claude_code_simple_mcp.yaml +35 -0
- massgen/configs/tools/mcp/claude_code_twitter_mcp_example.yaml +32 -0
- massgen/configs/tools/mcp/claude_mcp_example.yaml +24 -0
- massgen/configs/tools/mcp/claude_mcp_test.yaml +27 -0
- massgen/configs/tools/mcp/five_agents_travel_mcp_test.yaml +157 -0
- massgen/configs/tools/mcp/five_agents_weather_mcp_test.yaml +103 -0
- massgen/configs/tools/mcp/gemini_mcp_example.yaml +24 -0
- massgen/configs/tools/mcp/gemini_mcp_filesystem_test.yaml +23 -0
- massgen/configs/tools/mcp/gemini_mcp_filesystem_test_sharing.yaml +23 -0
- massgen/configs/tools/mcp/gemini_mcp_filesystem_test_single_agent.yaml +17 -0
- massgen/configs/tools/mcp/gemini_mcp_filesystem_test_with_claude_code.yaml +24 -0
- massgen/configs/tools/mcp/gemini_mcp_test.yaml +27 -0
- massgen/configs/tools/mcp/gemini_notion_mcp.yaml +52 -0
- massgen/configs/tools/mcp/gpt5_nano_mcp_example.yaml +24 -0
- massgen/configs/tools/mcp/gpt5_nano_mcp_test.yaml +27 -0
- massgen/configs/tools/mcp/gpt5mini_claude_code_discord_mcp_example.yaml +38 -0
- massgen/configs/tools/mcp/gpt_oss_mcp_example.yaml +25 -0
- massgen/configs/tools/mcp/gpt_oss_mcp_test.yaml +28 -0
- massgen/configs/tools/mcp/grok3_mini_mcp_example.yaml +24 -0
- massgen/configs/tools/mcp/grok3_mini_mcp_test.yaml +27 -0
- massgen/configs/tools/mcp/multimcp_gemini.yaml +111 -0
- massgen/configs/tools/mcp/qwen_api_mcp_example.yaml +25 -0
- massgen/configs/tools/mcp/qwen_api_mcp_test.yaml +28 -0
- massgen/configs/tools/mcp/qwen_local_mcp_example.yaml +24 -0
- massgen/configs/tools/mcp/qwen_local_mcp_test.yaml +27 -0
- massgen/configs/tools/planning/five_agents_discord_mcp_planning_mode.yaml +140 -0
- massgen/configs/tools/planning/five_agents_filesystem_mcp_planning_mode.yaml +151 -0
- massgen/configs/tools/planning/five_agents_notion_mcp_planning_mode.yaml +151 -0
- massgen/configs/tools/planning/five_agents_twitter_mcp_planning_mode.yaml +155 -0
- massgen/configs/tools/planning/gpt5_mini_case_study_mcp_planning_mode.yaml +73 -0
- massgen/configs/tools/web-search/claude_streamable_http_test.yaml +43 -0
- massgen/configs/tools/web-search/gemini_streamable_http_test.yaml +43 -0
- massgen/configs/tools/web-search/gpt5_mini_streamable_http_test.yaml +43 -0
- massgen/configs/tools/web-search/gpt_oss_streamable_http_test.yaml +44 -0
- massgen/configs/tools/web-search/grok3_mini_streamable_http_test.yaml +43 -0
- massgen/configs/tools/web-search/qwen_api_streamable_http_test.yaml +44 -0
- massgen/configs/tools/web-search/qwen_local_streamable_http_test.yaml +43 -0
- massgen/coordination_tracker.py +708 -0
- massgen/docker/README.md +462 -0
- massgen/filesystem_manager/__init__.py +21 -0
- massgen/filesystem_manager/_base.py +9 -0
- massgen/filesystem_manager/_code_execution_server.py +545 -0
- massgen/filesystem_manager/_docker_manager.py +477 -0
- massgen/filesystem_manager/_file_operation_tracker.py +248 -0
- massgen/filesystem_manager/_filesystem_manager.py +813 -0
- massgen/filesystem_manager/_path_permission_manager.py +1261 -0
- massgen/filesystem_manager/_workspace_tools_server.py +1815 -0
- massgen/formatter/__init__.py +10 -0
- massgen/formatter/_chat_completions_formatter.py +284 -0
- massgen/formatter/_claude_formatter.py +235 -0
- massgen/formatter/_formatter_base.py +156 -0
- massgen/formatter/_response_formatter.py +263 -0
- massgen/frontend/__init__.py +1 -2
- massgen/frontend/coordination_ui.py +471 -286
- massgen/frontend/displays/base_display.py +56 -11
- massgen/frontend/displays/create_coordination_table.py +1956 -0
- massgen/frontend/displays/rich_terminal_display.py +1259 -619
- massgen/frontend/displays/simple_display.py +9 -4
- massgen/frontend/displays/terminal_display.py +27 -68
- massgen/logger_config.py +681 -0
- massgen/mcp_tools/README.md +232 -0
- massgen/mcp_tools/__init__.py +105 -0
- massgen/mcp_tools/backend_utils.py +1035 -0
- massgen/mcp_tools/circuit_breaker.py +195 -0
- massgen/mcp_tools/client.py +894 -0
- massgen/mcp_tools/config_validator.py +138 -0
- massgen/mcp_tools/docs/circuit_breaker.md +646 -0
- massgen/mcp_tools/docs/client.md +950 -0
- massgen/mcp_tools/docs/config_validator.md +478 -0
- massgen/mcp_tools/docs/exceptions.md +1165 -0
- massgen/mcp_tools/docs/security.md +854 -0
- massgen/mcp_tools/exceptions.py +338 -0
- massgen/mcp_tools/hooks.py +212 -0
- massgen/mcp_tools/security.py +780 -0
- massgen/message_templates.py +342 -64
- massgen/orchestrator.py +1515 -241
- massgen/stream_chunk/__init__.py +35 -0
- massgen/stream_chunk/base.py +92 -0
- massgen/stream_chunk/multimodal.py +237 -0
- massgen/stream_chunk/text.py +162 -0
- massgen/tests/mcp_test_server.py +150 -0
- massgen/tests/multi_turn_conversation_design.md +0 -8
- massgen/tests/test_azure_openai_backend.py +156 -0
- massgen/tests/test_backend_capabilities.py +262 -0
- massgen/tests/test_backend_event_loop_all.py +179 -0
- massgen/tests/test_chat_completions_refactor.py +142 -0
- massgen/tests/test_claude_backend.py +15 -28
- massgen/tests/test_claude_code.py +268 -0
- massgen/tests/test_claude_code_context_sharing.py +233 -0
- massgen/tests/test_claude_code_orchestrator.py +175 -0
- massgen/tests/test_cli_backends.py +180 -0
- massgen/tests/test_code_execution.py +679 -0
- massgen/tests/test_external_agent_backend.py +134 -0
- massgen/tests/test_final_presentation_fallback.py +237 -0
- massgen/tests/test_gemini_planning_mode.py +351 -0
- massgen/tests/test_grok_backend.py +7 -10
- massgen/tests/test_http_mcp_server.py +42 -0
- massgen/tests/test_integration_simple.py +198 -0
- massgen/tests/test_mcp_blocking.py +125 -0
- massgen/tests/test_message_context_building.py +29 -47
- massgen/tests/test_orchestrator_final_presentation.py +48 -0
- massgen/tests/test_path_permission_manager.py +2087 -0
- massgen/tests/test_rich_terminal_display.py +14 -13
- massgen/tests/test_timeout.py +133 -0
- massgen/tests/test_v3_3agents.py +11 -12
- massgen/tests/test_v3_simple.py +8 -13
- massgen/tests/test_v3_three_agents.py +11 -18
- massgen/tests/test_v3_two_agents.py +8 -13
- massgen/token_manager/__init__.py +7 -0
- massgen/token_manager/token_manager.py +400 -0
- massgen/utils.py +52 -16
- massgen/v1/agent.py +45 -91
- massgen/v1/agents.py +18 -53
- massgen/v1/backends/gemini.py +50 -153
- massgen/v1/backends/grok.py +21 -54
- massgen/v1/backends/oai.py +39 -111
- massgen/v1/cli.py +36 -93
- massgen/v1/config.py +8 -12
- massgen/v1/logging.py +43 -127
- massgen/v1/main.py +18 -32
- massgen/v1/orchestrator.py +68 -209
- massgen/v1/streaming_display.py +62 -163
- massgen/v1/tools.py +8 -12
- massgen/v1/types.py +9 -23
- massgen/v1/utils.py +5 -23
- massgen-0.1.0.dist-info/METADATA +1245 -0
- massgen-0.1.0.dist-info/RECORD +273 -0
- massgen-0.1.0.dist-info/entry_points.txt +2 -0
- massgen/frontend/logging/__init__.py +0 -9
- massgen/frontend/logging/realtime_logger.py +0 -197
- massgen-0.0.3.dist-info/METADATA +0 -568
- massgen-0.0.3.dist-info/RECORD +0 -76
- massgen-0.0.3.dist-info/entry_points.txt +0 -2
- /massgen/backend/{Function calling openai responses.md → docs/Function calling openai responses.md} +0 -0
- {massgen-0.0.3.dist-info → massgen-0.1.0.dist-info}/WHEEL +0 -0
- {massgen-0.0.3.dist-info → massgen-0.1.0.dist-info}/licenses/LICENSE +0 -0
- {massgen-0.0.3.dist-info → massgen-0.1.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# MassGen Configuration
|
|
2
|
+
# Usage:
|
|
3
|
+
# massgen --config @examples/tools/mcp/claude_mcp_test "Test the MCP tools by calling mcp_echo with text 'Hello massgen' and add_numbers with 46 and 52"
|
|
4
|
+
agents:
|
|
5
|
+
- id: "claude_mcp_test"
|
|
6
|
+
backend:
|
|
7
|
+
type: "claude"
|
|
8
|
+
model: "claude-sonnet-4-20250514" # Model name
|
|
9
|
+
mcp_servers:
|
|
10
|
+
- name: "test_server"
|
|
11
|
+
type: "stdio"
|
|
12
|
+
command: "python"
|
|
13
|
+
args: ["-u", "-m", "massgen.tests.mcp_test_server"]
|
|
14
|
+
system_message: |
|
|
15
|
+
You are testing the MCP integration with Google Gemini.
|
|
16
|
+
|
|
17
|
+
MCP tools from the "test_server" will be available via sessions and auto-called by the system when needed.
|
|
18
|
+
Do not output function-call syntax. Simply perform the tasks and present clear, concise results.
|
|
19
|
+
|
|
20
|
+
Tasks to verify:
|
|
21
|
+
- Echo: return the text given in the question.
|
|
22
|
+
- Add numbers: return the sum of a and b.
|
|
23
|
+
- Current time: return the current timestamp.
|
|
24
|
+
|
|
25
|
+
ui:
|
|
26
|
+
display_type: "rich_terminal"
|
|
27
|
+
logging_enabled: true
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# Five Agent Travel Research MCP Test Configuration
|
|
2
|
+
# This configuration uses 5 different backends (Gemini, OpenAI, Claude Code, Claude, Grok) with Multi-MCP capability
|
|
3
|
+
# Each agent has access to Airbnb search and Brave Search for comprehensive travel research
|
|
4
|
+
#
|
|
5
|
+
# Setup Requirements:
|
|
6
|
+
# 1. Install MCP servers:
|
|
7
|
+
# npm install -g @openbnb/mcp-server-airbnb
|
|
8
|
+
# npm install -g @modelcontextprotocol/server-brave-search
|
|
9
|
+
# 2. Set environment variables in .env file:
|
|
10
|
+
# BRAVE_API_KEY="your_brave_search_api_key"
|
|
11
|
+
# OPENAI_API_KEY="your_openai_key"
|
|
12
|
+
# GOOGLE_API_KEY="your_gemini_key"
|
|
13
|
+
# ANTHROPIC_API_KEY="your_claude_key"
|
|
14
|
+
# XAI_API_KEY="your_grok_key"
|
|
15
|
+
#
|
|
16
|
+
# Example usage:
|
|
17
|
+
# massgen --config @examples/tools/mcp/five_agents_travel_mcp_test "Plan a 5-day trip to Barcelona for a couple on a mid-range budget. Find the best neighborhoods, suggest 3 Airbnb options, and provide a complete travel guide with attractions and dining recommendations."
|
|
18
|
+
|
|
19
|
+
agents:
|
|
20
|
+
- id: "gemini_travel_agent"
|
|
21
|
+
backend:
|
|
22
|
+
type: "gemini"
|
|
23
|
+
model: "gemini-2.5-flash"
|
|
24
|
+
mcp_servers:
|
|
25
|
+
# Airbnb server for accommodations
|
|
26
|
+
- name: "airbnb_search"
|
|
27
|
+
type: "stdio"
|
|
28
|
+
command: "npx"
|
|
29
|
+
args: ["-y", "@openbnb/mcp-server-airbnb", "--ignore-robots-txt"]
|
|
30
|
+
security:
|
|
31
|
+
level: "moderate"
|
|
32
|
+
# Brave Search API server
|
|
33
|
+
- name: "brave_search"
|
|
34
|
+
type: "stdio"
|
|
35
|
+
command: "npx"
|
|
36
|
+
args: ["-y", "@modelcontextprotocol/server-brave-search"]
|
|
37
|
+
env:
|
|
38
|
+
BRAVE_API_KEY: "${BRAVE_API_KEY}"
|
|
39
|
+
security:
|
|
40
|
+
level: "moderate"
|
|
41
|
+
system_message: |
|
|
42
|
+
Available Tools:
|
|
43
|
+
- mcp__brave_web_search: Research destinations, attractions, and local insights
|
|
44
|
+
- mcp__airbnb_search: Find accommodations with filtering capabilities
|
|
45
|
+
- mcp__airbnb_search__airbnb_listing_details: Get detailed property information
|
|
46
|
+
|
|
47
|
+
- id: "openai_travel_agent"
|
|
48
|
+
backend:
|
|
49
|
+
type: "openai"
|
|
50
|
+
model: "gpt-4o-mini"
|
|
51
|
+
mcp_servers:
|
|
52
|
+
# Airbnb server for accommodations
|
|
53
|
+
- name: "airbnb_search"
|
|
54
|
+
type: "stdio"
|
|
55
|
+
command: "npx"
|
|
56
|
+
args: ["-y", "@openbnb/mcp-server-airbnb", "--ignore-robots-txt"]
|
|
57
|
+
security:
|
|
58
|
+
level: "moderate"
|
|
59
|
+
# Brave Search API server
|
|
60
|
+
- name: "brave_search"
|
|
61
|
+
type: "stdio"
|
|
62
|
+
command: "npx"
|
|
63
|
+
args: ["-y", "@modelcontextprotocol/server-brave-search"]
|
|
64
|
+
env:
|
|
65
|
+
BRAVE_API_KEY: "${BRAVE_API_KEY}"
|
|
66
|
+
security:
|
|
67
|
+
level: "moderate"
|
|
68
|
+
system_message: |
|
|
69
|
+
Available Tools:
|
|
70
|
+
- mcp__brave_web_search: Research destinations, attractions, and local insights
|
|
71
|
+
- mcp__airbnb_search: Find accommodations with filtering capabilities
|
|
72
|
+
- mcp__airbnb_search__airbnb_listing_details: Get detailed property information
|
|
73
|
+
|
|
74
|
+
- id: "claude_code_travel_agent"
|
|
75
|
+
backend:
|
|
76
|
+
type: "claude_code"
|
|
77
|
+
cwd: "claude_code_workspace_travel_mcp"
|
|
78
|
+
permission_mode: "bypassPermissions"
|
|
79
|
+
mcp_servers:
|
|
80
|
+
airbnb_search:
|
|
81
|
+
type: "stdio"
|
|
82
|
+
command: "npx"
|
|
83
|
+
args: ["-y", "@openbnb/mcp-server-airbnb", "--ignore-robots-txt"]
|
|
84
|
+
brave_search:
|
|
85
|
+
type: "stdio"
|
|
86
|
+
command: "npx"
|
|
87
|
+
args: ["-y", "@modelcontextprotocol/server-brave-search"]
|
|
88
|
+
env:
|
|
89
|
+
BRAVE_API_KEY: "${BRAVE_API_KEY}"
|
|
90
|
+
system_message: |
|
|
91
|
+
Available Tools:
|
|
92
|
+
- mcp__brave_web_search: Research destinations, attractions, and local insights
|
|
93
|
+
- mcp__airbnb_search: Find accommodations with filtering capabilities
|
|
94
|
+
- mcp__airbnb_search__airbnb_listing_details: Get detailed property information
|
|
95
|
+
|
|
96
|
+
- id: "claude_travel_agent"
|
|
97
|
+
backend:
|
|
98
|
+
type: "claude"
|
|
99
|
+
model: "claude-sonnet-4-20250514"
|
|
100
|
+
mcp_servers:
|
|
101
|
+
# Airbnb server for accommodations
|
|
102
|
+
- name: "airbnb_search"
|
|
103
|
+
type: "stdio"
|
|
104
|
+
command: "npx"
|
|
105
|
+
args: ["-y", "@openbnb/mcp-server-airbnb", "--ignore-robots-txt"]
|
|
106
|
+
security:
|
|
107
|
+
level: "moderate"
|
|
108
|
+
# Brave Search API server
|
|
109
|
+
- name: "brave_search"
|
|
110
|
+
type: "stdio"
|
|
111
|
+
command: "npx"
|
|
112
|
+
args: ["-y", "@modelcontextprotocol/server-brave-search"]
|
|
113
|
+
env:
|
|
114
|
+
BRAVE_API_KEY: "${BRAVE_API_KEY}"
|
|
115
|
+
security:
|
|
116
|
+
level: "moderate"
|
|
117
|
+
system_message: |
|
|
118
|
+
Available Tools:
|
|
119
|
+
- mcp__brave_web_search: Research destinations, attractions, and local insights
|
|
120
|
+
- mcp__airbnb_search: Find accommodations with filtering capabilities
|
|
121
|
+
- mcp__airbnb_search__airbnb_listing_details: Get detailed property information
|
|
122
|
+
|
|
123
|
+
- id: "grok_travel_agent"
|
|
124
|
+
backend:
|
|
125
|
+
type: "grok"
|
|
126
|
+
model: "grok-3-mini"
|
|
127
|
+
mcp_servers:
|
|
128
|
+
# Airbnb server for accommodations
|
|
129
|
+
- name: "airbnb_search"
|
|
130
|
+
type: "stdio"
|
|
131
|
+
command: "npx"
|
|
132
|
+
args: ["-y", "@openbnb/mcp-server-airbnb", "--ignore-robots-txt"]
|
|
133
|
+
security:
|
|
134
|
+
level: "moderate"
|
|
135
|
+
# Brave Search API server
|
|
136
|
+
- name: "brave_search"
|
|
137
|
+
type: "stdio"
|
|
138
|
+
command: "npx"
|
|
139
|
+
args: ["-y", "@modelcontextprotocol/server-brave-search"]
|
|
140
|
+
env:
|
|
141
|
+
BRAVE_API_KEY: "${BRAVE_API_KEY}"
|
|
142
|
+
security:
|
|
143
|
+
level: "moderate"
|
|
144
|
+
system_message: |
|
|
145
|
+
Available Tools:
|
|
146
|
+
- mcp__brave_web_search: Research destinations, attractions, and local insights
|
|
147
|
+
- mcp__airbnb_search: Find accommodations with filtering capabilities
|
|
148
|
+
- mcp__airbnb_search__airbnb_listing_details: Get detailed property information
|
|
149
|
+
|
|
150
|
+
ui:
|
|
151
|
+
display_type: "rich_terminal"
|
|
152
|
+
logging_enabled: true
|
|
153
|
+
|
|
154
|
+
# Orchestrator Settings with Coordination Configuration
|
|
155
|
+
orchestrator:
|
|
156
|
+
snapshot_storage: "massgen_logs/snapshots" # Directory for workspace snapshots
|
|
157
|
+
agent_temporary_workspace: "massgen_logs/temp_workspaces" # Directory for temporary agent workspaces
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
# Five Agent Weather MCP Test Configuration
|
|
2
|
+
# This configuration uses 5 different backends (Gemini, OpenAI, Claude Code, Claude, Grok) with Weather MCP capability
|
|
3
|
+
# Each agent can get weather information, forecasts, and weather alerts
|
|
4
|
+
#
|
|
5
|
+
# Setup Requirements:
|
|
6
|
+
# 1. Install Weather MCP server: npm install -g @fak111/weather-mcp
|
|
7
|
+
# 2. Set environment variables in .env file:
|
|
8
|
+
# OPENAI_API_KEY="your_openai_key"
|
|
9
|
+
# GOOGLE_API_KEY="your_gemini_key"
|
|
10
|
+
# ANTHROPIC_API_KEY="your_claude_key"
|
|
11
|
+
# XAI_API_KEY="your_grok_key"
|
|
12
|
+
#
|
|
13
|
+
# Example usage:
|
|
14
|
+
# massgen --config @examples/tools/mcp/five_agents_weather_mcp_test "What's the weather like in Tokyo, London, and New York today? Compare the conditions and give me travel recommendations."
|
|
15
|
+
|
|
16
|
+
agents:
|
|
17
|
+
- id: "gemini_weather_agent"
|
|
18
|
+
backend:
|
|
19
|
+
type: "gemini"
|
|
20
|
+
model: "gemini-2.5-flash"
|
|
21
|
+
mcp_servers:
|
|
22
|
+
- name: "weather"
|
|
23
|
+
type: "stdio"
|
|
24
|
+
command: "npx"
|
|
25
|
+
args: ["-y", "@fak111/weather-mcp"]
|
|
26
|
+
security:
|
|
27
|
+
level: "moderate"
|
|
28
|
+
system_message: |
|
|
29
|
+
Available Weather Tools:
|
|
30
|
+
- Weather information via MCP integration
|
|
31
|
+
- Current conditions, forecasts, and alerts
|
|
32
|
+
|
|
33
|
+
- id: "openai_weather_agent"
|
|
34
|
+
backend:
|
|
35
|
+
type: "openai"
|
|
36
|
+
model: "gpt-4o-mini"
|
|
37
|
+
mcp_servers:
|
|
38
|
+
- name: "weather"
|
|
39
|
+
type: "stdio"
|
|
40
|
+
command: "npx"
|
|
41
|
+
args: ["-y", "@fak111/weather-mcp"]
|
|
42
|
+
security:
|
|
43
|
+
level: "moderate"
|
|
44
|
+
system_message: |
|
|
45
|
+
Available Weather Tools:
|
|
46
|
+
- Weather information via MCP integration
|
|
47
|
+
- Current conditions, forecasts, and alerts
|
|
48
|
+
|
|
49
|
+
- id: "claude_code_weather_agent"
|
|
50
|
+
backend:
|
|
51
|
+
type: "claude_code"
|
|
52
|
+
cwd: "claude_code_workspace_weather_mcp"
|
|
53
|
+
permission_mode: "bypassPermissions"
|
|
54
|
+
mcp_servers:
|
|
55
|
+
weather:
|
|
56
|
+
type: "stdio"
|
|
57
|
+
command: "npx"
|
|
58
|
+
args: ["-y", "@fak111/weather-mcp"]
|
|
59
|
+
system_message: |
|
|
60
|
+
Available Weather Tools:
|
|
61
|
+
- Weather information via MCP integration
|
|
62
|
+
- Current conditions, forecasts, and alerts
|
|
63
|
+
|
|
64
|
+
- id: "claude_weather_agent"
|
|
65
|
+
backend:
|
|
66
|
+
type: "claude"
|
|
67
|
+
model: "claude-sonnet-4-20250514"
|
|
68
|
+
mcp_servers:
|
|
69
|
+
- name: "weather"
|
|
70
|
+
type: "stdio"
|
|
71
|
+
command: "npx"
|
|
72
|
+
args: ["-y", "@fak111/weather-mcp"]
|
|
73
|
+
security:
|
|
74
|
+
level: "moderate"
|
|
75
|
+
system_message: |
|
|
76
|
+
Available Weather Tools:
|
|
77
|
+
- Weather information via MCP integration
|
|
78
|
+
- Current conditions, forecasts, and alerts
|
|
79
|
+
|
|
80
|
+
- id: "grok_weather_agent"
|
|
81
|
+
backend:
|
|
82
|
+
type: "grok"
|
|
83
|
+
model: "grok-3-mini"
|
|
84
|
+
mcp_servers:
|
|
85
|
+
- name: "weather"
|
|
86
|
+
type: "stdio"
|
|
87
|
+
command: "npx"
|
|
88
|
+
args: ["-y", "@fak111/weather-mcp"]
|
|
89
|
+
security:
|
|
90
|
+
level: "moderate"
|
|
91
|
+
system_message: |
|
|
92
|
+
Available Weather Tools:
|
|
93
|
+
- Weather information via MCP integration
|
|
94
|
+
- Current conditions, forecasts, and alerts
|
|
95
|
+
|
|
96
|
+
ui:
|
|
97
|
+
display_type: "rich_terminal"
|
|
98
|
+
logging_enabled: true
|
|
99
|
+
|
|
100
|
+
# Orchestrator Settings with Coordination Configuration
|
|
101
|
+
orchestrator:
|
|
102
|
+
snapshot_storage: "massgen_logs/snapshots" # Directory for workspace snapshots
|
|
103
|
+
agent_temporary_workspace: "massgen_logs/temp_workspaces" # Directory for temporary agent workspaces
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# MassGen Configuration: Gemini with MCP Integration
|
|
2
|
+
# Usage:
|
|
3
|
+
# massgen --config @examples/tools/mcp/gemini_mcp_example "whats the weather of Tokyo"
|
|
4
|
+
agents:
|
|
5
|
+
- id: "gemini2.5flash_mcp_weather"
|
|
6
|
+
backend:
|
|
7
|
+
type: "gemini"
|
|
8
|
+
model: "gemini-2.5-flash"
|
|
9
|
+
mcp_servers:
|
|
10
|
+
- name: "weather"
|
|
11
|
+
type: "stdio"
|
|
12
|
+
command: "npx"
|
|
13
|
+
args: ["-y", "@fak111/weather-mcp"]
|
|
14
|
+
system_message: |
|
|
15
|
+
You are an AI assistant with access to weather information through MCP (Model Context Protocol) integration.
|
|
16
|
+
|
|
17
|
+
Weather tools are available via MCP sessions and will be called automatically by the system when needed.
|
|
18
|
+
Do not output tool call syntax or function declarations. Focus on answering the user's question clearly.
|
|
19
|
+
|
|
20
|
+
When users ask about weather conditions, forecasts, or alerts, include the location and time frame in your
|
|
21
|
+
response and provide concise, up-to-date information using the integrated tools.
|
|
22
|
+
ui:
|
|
23
|
+
display_type: "rich_terminal"
|
|
24
|
+
logging_enabled: true
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# MassGen Configuration
|
|
2
|
+
# Usage:
|
|
3
|
+
# massgen --config @examples/tools/mcp/gemini_mcp_filesystem_test " Please create a Python script with a hello world function in various fictional languages and save it directly into a file in your workspace."
|
|
4
|
+
agents:
|
|
5
|
+
- id: "gemini_agent1"
|
|
6
|
+
backend:
|
|
7
|
+
type: "gemini"
|
|
8
|
+
model: "gemini-2.5-pro"
|
|
9
|
+
cwd: "workspace1" # Working directory for file operations
|
|
10
|
+
|
|
11
|
+
- id: "gemini_agent2"
|
|
12
|
+
backend:
|
|
13
|
+
type: "gemini"
|
|
14
|
+
model: "gemini-2.5-pro"
|
|
15
|
+
cwd: "workspace2" # Working directory for file operations
|
|
16
|
+
|
|
17
|
+
orchestrator:
|
|
18
|
+
snapshot_storage: "snapshots" # Directory to store workspace snapshots
|
|
19
|
+
agent_temporary_workspace: "temp_workspaces" # Directory for temporary agent workspaces
|
|
20
|
+
|
|
21
|
+
ui:
|
|
22
|
+
display_type: "rich_terminal"
|
|
23
|
+
logging_enabled: true
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# MassGen Configuration
|
|
2
|
+
# Usage:
|
|
3
|
+
# massgen --config @examples/tools/mcp/gemini_mcp_filesystem_test_sharing "Please create a txt file with all the current directories you can read files from."
|
|
4
|
+
agents:
|
|
5
|
+
- id: "gemini_agent1"
|
|
6
|
+
backend:
|
|
7
|
+
type: "gemini"
|
|
8
|
+
model: "gemini-2.5-flash"
|
|
9
|
+
cwd: "workspace1" # Working directory for file operations. Generic name so no hint of content.
|
|
10
|
+
|
|
11
|
+
- id: "gemini_agent2"
|
|
12
|
+
backend:
|
|
13
|
+
type: "gemini"
|
|
14
|
+
model: "gemini-2.5-flash"
|
|
15
|
+
cwd: "workspace2" # Working directory for file operations. Generic name so no hint of content.
|
|
16
|
+
|
|
17
|
+
orchestrator:
|
|
18
|
+
snapshot_storage: "snapshots" # Directory to store workspace snapshots
|
|
19
|
+
agent_temporary_workspace: "workspaces" # Directory for temporary agent workspaces
|
|
20
|
+
|
|
21
|
+
ui:
|
|
22
|
+
display_type: "rich_terminal"
|
|
23
|
+
logging_enabled: true
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# MassGen Configuration
|
|
2
|
+
# Usage:
|
|
3
|
+
# massgen --config @examples/tools/mcp/gemini_mcp_filesystem_test_single_agent "Please create a Python script with a hello world function in various fictional languages and save it directly into a file in your workspace."
|
|
4
|
+
agents:
|
|
5
|
+
- id: "gemini_agent1"
|
|
6
|
+
backend:
|
|
7
|
+
type: "gemini"
|
|
8
|
+
model: "gemini-2.5-flash"
|
|
9
|
+
cwd: "workspace1" # Working directory for file operations
|
|
10
|
+
|
|
11
|
+
orchestrator:
|
|
12
|
+
snapshot_storage: "snapshots" # Directory to store workspace snapshots
|
|
13
|
+
agent_temporary_workspace: "workspaces" # Directory for temporary agent workspaces
|
|
14
|
+
|
|
15
|
+
ui:
|
|
16
|
+
display_type: "rich_terminal"
|
|
17
|
+
logging_enabled: true
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# MassGen Configuration
|
|
2
|
+
# Usage:
|
|
3
|
+
# massgen --config @examples/tools/mcp/gemini_mcp_filesystem_test_with_claude_code "Create a presentation that teaches a reinforcement learning algorithm and output it in LaTeX Beamer format. No figures should be added."
|
|
4
|
+
agents:
|
|
5
|
+
- id: "gemini_agent"
|
|
6
|
+
backend:
|
|
7
|
+
type: "gemini"
|
|
8
|
+
model: "gemini-2.5-pro"
|
|
9
|
+
cwd: "workspace1" # Working directory for file operations
|
|
10
|
+
enable_web_search: true
|
|
11
|
+
|
|
12
|
+
- id: "claude_code"
|
|
13
|
+
backend:
|
|
14
|
+
type: "claude_code"
|
|
15
|
+
model: "claude-sonnet-4-20250514"
|
|
16
|
+
cwd: "workspace2" # Working directory for file operations
|
|
17
|
+
|
|
18
|
+
orchestrator:
|
|
19
|
+
snapshot_storage: "snapshots" # Directory to store workspace snapshots
|
|
20
|
+
agent_temporary_workspace: "temp_workspaces" # Directory for temporary agent workspaces
|
|
21
|
+
|
|
22
|
+
ui:
|
|
23
|
+
display_type: "rich_terminal"
|
|
24
|
+
logging_enabled: true
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# MassGen Configuration
|
|
2
|
+
# Usage:
|
|
3
|
+
# massgen --config @examples/tools/mcp/gemini_mcp_test "Test the MCP tools by calling mcp_echo with text 'Hello massgen' and add_numbers with 46 and 52"
|
|
4
|
+
agents:
|
|
5
|
+
- id: "gemini_mcp_test"
|
|
6
|
+
backend:
|
|
7
|
+
type: "gemini"
|
|
8
|
+
model: "gemini-2.5-flash"
|
|
9
|
+
mcp_servers:
|
|
10
|
+
- name: "test_server"
|
|
11
|
+
type: "stdio"
|
|
12
|
+
command: "python"
|
|
13
|
+
args: ["-u", "-m", "massgen.tests.mcp_test_server"]
|
|
14
|
+
system_message: |
|
|
15
|
+
You are testing the MCP integration with Google Gemini.
|
|
16
|
+
|
|
17
|
+
MCP tools from the "test_server" will be available via sessions and auto-called by the system when needed.
|
|
18
|
+
Do not output function-call syntax. Simply perform the tasks and present clear, concise results.
|
|
19
|
+
|
|
20
|
+
Tasks to verify:
|
|
21
|
+
- Echo: return the text given in the question.
|
|
22
|
+
- Add numbers: return the sum of a and b.
|
|
23
|
+
- Current time: return the current timestamp.
|
|
24
|
+
|
|
25
|
+
ui:
|
|
26
|
+
display_type: "rich_terminal"
|
|
27
|
+
logging_enabled: true
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Dual agent configuration using Notion MCP with Gemini-2.5-pro.
|
|
2
|
+
# To avoid connection issues, we give each agent its own Notion token with access to a different page (we call them `LLM Agent Research (1)` and `LLM Agent Research (2)`) and use NOTION_TOKEN_ONE and NOTION_TOKEN_TWO in the .env file to represent them, respectively.
|
|
3
|
+
# To set this up, you must do the below twice, since we create one page for each agent (the process for doing it once is detailed in depth [here](https://github.com/makenotion/notion-mcp-server)):
|
|
4
|
+
# 1) create a new page titled `LLM Agent Research ({1 or 2})` in Notion.
|
|
5
|
+
# 2) generate an integration token (Internal Integration Secret) in Notion by visiting [the integrations page](https://www.notion.so/profile/integrations), and visit the Access tab to add the integration to your new page.
|
|
6
|
+
# 3) place it in your .env file: NOTION_TOKEN_{ONE or TWO}="your_notion_token_here"
|
|
7
|
+
#
|
|
8
|
+
# cmd: massgen --config @examples/tools/mcp/gemini_notion_mcp "Generate and refine a structured Todo list for learning about LLM multi-agent systems, complete with exciting objectives and fun activities. Each time you have a new version, create a new Notion page with a title and the current date and time (including hours, minutes, seconds, and milliseconds) to store the list. Then, verify that you can access the page and read back the content. Create this page as a subpage under an existing notion page called 'LLM Agent Research (x)', where x is either 1 or 2 depending on which you have access to."
|
|
9
|
+
agents:
|
|
10
|
+
- id: "gemini-2.5-pro1"
|
|
11
|
+
backend:
|
|
12
|
+
type: "gemini"
|
|
13
|
+
model: "gemini-2.5-pro"
|
|
14
|
+
enable_web_search: true
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# MCP tools configuration
|
|
18
|
+
mcp_servers:
|
|
19
|
+
notionApi:
|
|
20
|
+
type: "stdio"
|
|
21
|
+
command: "npx"
|
|
22
|
+
args: ["-y", "@notionhq/notion-mcp-server"]
|
|
23
|
+
env:
|
|
24
|
+
NOTION_TOKEN: "${NOTION_TOKEN_ONE}"
|
|
25
|
+
# There are errors with how this tool functions, so we exclude it for now
|
|
26
|
+
exclude_tools:
|
|
27
|
+
- post_search
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
- id: "gemini-2.5-pro2"
|
|
31
|
+
backend:
|
|
32
|
+
type: "gemini"
|
|
33
|
+
model: "gemini-2.5-pro"
|
|
34
|
+
enable_web_search: true
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
# MCP tools configuration
|
|
38
|
+
mcp_servers:
|
|
39
|
+
notionApi:
|
|
40
|
+
type: "stdio"
|
|
41
|
+
command: "npx"
|
|
42
|
+
args: ["-y", "@notionhq/notion-mcp-server"]
|
|
43
|
+
env:
|
|
44
|
+
NOTION_TOKEN: "${NOTION_TOKEN_TWO}"
|
|
45
|
+
exclude_tools:
|
|
46
|
+
- post_search
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# UI Configuration
|
|
50
|
+
ui:
|
|
51
|
+
type: "rich_terminal"
|
|
52
|
+
logging_enabled: true
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# MassGen Configuration: Gemini with MCP Integration
|
|
2
|
+
# Usage:
|
|
3
|
+
# massgen --config @examples/tools/mcp/gpt5_nano_mcp_example "whats the weather of Tokyo"
|
|
4
|
+
agents:
|
|
5
|
+
- id: "gpt5_nano_mcp_weather"
|
|
6
|
+
backend:
|
|
7
|
+
type: "openai"
|
|
8
|
+
model: "gpt-5-nano"
|
|
9
|
+
mcp_servers:
|
|
10
|
+
- name: "weather"
|
|
11
|
+
type: "stdio"
|
|
12
|
+
command: "npx"
|
|
13
|
+
args: ["-y", "@fak111/weather-mcp"]
|
|
14
|
+
system_message: |
|
|
15
|
+
You are an AI assistant with access to weather information through MCP (Model Context Protocol) integration.
|
|
16
|
+
|
|
17
|
+
Weather tools are available via MCP sessions and will be called automatically by the system when needed.
|
|
18
|
+
Do not output tool call syntax or function declarations. Focus on answering the user's question clearly.
|
|
19
|
+
|
|
20
|
+
When users ask about weather conditions, forecasts, or alerts, include the location and time frame in your
|
|
21
|
+
response and provide concise, up-to-date information using the integrated tools.
|
|
22
|
+
ui:
|
|
23
|
+
display_type: "rich_terminal"
|
|
24
|
+
logging_enabled: true
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# MassGen Configuration
|
|
2
|
+
# Usage:
|
|
3
|
+
# massgen --config @examples/tools/mcp/gpt5_nano_mcp_test "Test the MCP tools by calling mcp_echo with text 'Hello massgen' and add_numbers with 46 and 52"
|
|
4
|
+
agents:
|
|
5
|
+
- id: "gpt5_nano_mcp_test"
|
|
6
|
+
backend:
|
|
7
|
+
type: "openai"
|
|
8
|
+
model: "gpt-5-nano"
|
|
9
|
+
mcp_servers:
|
|
10
|
+
- name: "test_server"
|
|
11
|
+
type: "stdio"
|
|
12
|
+
command: "python"
|
|
13
|
+
args: ["-u", "-m", "massgen.tests.mcp_test_server"]
|
|
14
|
+
system_message: |
|
|
15
|
+
You are testing the MCP integration with OpenAI GPT.
|
|
16
|
+
|
|
17
|
+
MCP tools from the "test_server" will be available via sessions and auto-called by the system when needed.
|
|
18
|
+
Do not output function-call syntax. Simply perform the tasks and present clear, concise results.
|
|
19
|
+
|
|
20
|
+
Tasks to verify:
|
|
21
|
+
- Echo: return the text given in the question.
|
|
22
|
+
- Add numbers: return the sum of a and b.
|
|
23
|
+
- Current time: return the current timestamp.
|
|
24
|
+
|
|
25
|
+
ui:
|
|
26
|
+
display_type: "simple"
|
|
27
|
+
logging_enabled: true
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
agents:
|
|
2
|
+
- id: "claude_code_discord_mcp"
|
|
3
|
+
backend:
|
|
4
|
+
type: "claude_code"
|
|
5
|
+
cwd: "claude_code_workspace_discord_mcp"
|
|
6
|
+
permission_mode: "bypassPermissions"
|
|
7
|
+
|
|
8
|
+
# Discord MCP server
|
|
9
|
+
mcp_servers:
|
|
10
|
+
discord:
|
|
11
|
+
type: "stdio"
|
|
12
|
+
command: "npx"
|
|
13
|
+
args: ["-y", "mcp-discord", "--config", "YOUR_DISCORD_TOKEN"]
|
|
14
|
+
|
|
15
|
+
allowed_tools:
|
|
16
|
+
- "Read"
|
|
17
|
+
- "Write"
|
|
18
|
+
- "Bash"
|
|
19
|
+
- "LS"
|
|
20
|
+
- "WebSearch"
|
|
21
|
+
# MCP tools will be auto-discovered from the server
|
|
22
|
+
system_message: |
|
|
23
|
+
You are a helpful assistant with access to built-in tools and MCP servers. Before using any tools, check if the task is already completed by previous steps or agents. Only use tools for unfinished tasks. Never duplicate actions, especially communications (messages, emails) or workspace modifications (file edits, Discord/Slack posts). For these critical operations, first provide the content as your answer, then execute the tools only during final presentation.
|
|
24
|
+
|
|
25
|
+
- id: "gpt-5-mini"
|
|
26
|
+
backend:
|
|
27
|
+
type: "openai"
|
|
28
|
+
model: "gpt-5-mini"
|
|
29
|
+
reasoning:
|
|
30
|
+
effort: "medium"
|
|
31
|
+
summary: "auto"
|
|
32
|
+
enable_web_search: true
|
|
33
|
+
enable_code_interpreter: true
|
|
34
|
+
system_message: "You are a helpful AI assistant with web search and code execution capabilities. You should always complete tasks that you can do. If you cannot complete a task, just omit it."
|
|
35
|
+
|
|
36
|
+
ui:
|
|
37
|
+
display_type: "rich_terminal"
|
|
38
|
+
logging_enabled: true
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# MassGen Configuration: Gemini with MCP Integration
|
|
2
|
+
# Usage:
|
|
3
|
+
# massgen --config @examples/tools/mcp/gpt_oss_mcp_example "whats the weather of Tokyo"
|
|
4
|
+
agents:
|
|
5
|
+
- id: "gpt-oss-mcp_weather" # Cerebras AI
|
|
6
|
+
backend:
|
|
7
|
+
type: "chatcompletion"
|
|
8
|
+
model: "gpt-oss-120b"
|
|
9
|
+
base_url: "https://api.cerebras.ai/v1"
|
|
10
|
+
mcp_servers:
|
|
11
|
+
- name: "weather"
|
|
12
|
+
type: "stdio"
|
|
13
|
+
command: "npx"
|
|
14
|
+
args: ["-y", "@fak111/weather-mcp"]
|
|
15
|
+
system_message: |
|
|
16
|
+
You are an AI assistant with access to weather information through MCP (Model Context Protocol) integration.
|
|
17
|
+
|
|
18
|
+
Weather tools are available via MCP sessions and will be called automatically by the system when needed.
|
|
19
|
+
Do not output tool call syntax or function declarations. Focus on answering the user's question clearly.
|
|
20
|
+
|
|
21
|
+
When users ask about weather conditions, forecasts, or alerts, include the location and time frame in your
|
|
22
|
+
response and provide concise, up-to-date information using the integrated tools.
|
|
23
|
+
ui:
|
|
24
|
+
display_type: "rich_terminal"
|
|
25
|
+
logging_enabled: true
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# MassGen Configuration
|
|
2
|
+
# Usage:
|
|
3
|
+
# massgen --config @examples/tools/mcp/gpt_oss_mcp_test "Test the MCP tools by calling mcp_echo with text 'Hello massgen' and add_numbers with 46 and 52"
|
|
4
|
+
agents:
|
|
5
|
+
- id: "gpt_oss_mcp_weather"
|
|
6
|
+
backend:
|
|
7
|
+
type: "chatcompletion"
|
|
8
|
+
model: "gpt-oss-120b"
|
|
9
|
+
base_url: "https://api.cerebras.ai/v1"
|
|
10
|
+
mcp_servers:
|
|
11
|
+
- name: "test_server"
|
|
12
|
+
type: "stdio"
|
|
13
|
+
command: "python"
|
|
14
|
+
args: ["-u", "-m", "massgen.tests.mcp_test_server"]
|
|
15
|
+
system_message: |
|
|
16
|
+
You are testing the MCP integration with OpenAI GPT.
|
|
17
|
+
|
|
18
|
+
MCP tools from the "test_server" will be available via sessions and auto-called by the system when needed.
|
|
19
|
+
Do not output function-call syntax. Simply perform the tasks and present clear, concise results.
|
|
20
|
+
|
|
21
|
+
Tasks to verify:
|
|
22
|
+
- Echo: return the text given in the question.
|
|
23
|
+
- Add numbers: return the sum of a and b.
|
|
24
|
+
- Current time: return the current timestamp.
|
|
25
|
+
|
|
26
|
+
ui:
|
|
27
|
+
display_type: "rich_terminal"
|
|
28
|
+
logging_enabled: true
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# MassGen Configuration: Gemini with MCP Integration
|
|
2
|
+
# Usage:
|
|
3
|
+
# massgen --config @examples/tools/mcp/grok3_mini_mcp_example "whats the weather of Tokyo"
|
|
4
|
+
agents:
|
|
5
|
+
- id: "grok3_mini_mcp_weather"
|
|
6
|
+
backend:
|
|
7
|
+
type: "grok"
|
|
8
|
+
model: "grok-3-mini"
|
|
9
|
+
mcp_servers:
|
|
10
|
+
- name: "weather"
|
|
11
|
+
type: "stdio"
|
|
12
|
+
command: "npx"
|
|
13
|
+
args: ["-y", "@fak111/weather-mcp"]
|
|
14
|
+
system_message: |
|
|
15
|
+
You are an AI assistant with access to weather information through MCP (Model Context Protocol) integration.
|
|
16
|
+
|
|
17
|
+
Weather tools are available via MCP sessions and will be called automatically by the system when needed.
|
|
18
|
+
Do not output tool call syntax or function declarations. Focus on answering the user's question clearly.
|
|
19
|
+
|
|
20
|
+
When users ask about weather conditions, forecasts, or alerts, include the location and time frame in your
|
|
21
|
+
response and provide concise, up-to-date information using the integrated tools.
|
|
22
|
+
ui:
|
|
23
|
+
display_type: "rich_terminal"
|
|
24
|
+
logging_enabled: true
|