forked from lastmile-ai/mcp-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCore_Application_Setup.json
More file actions
195 lines (195 loc) · 8.78 KB
/
Core_Application_Setup.json
File metadata and controls
195 lines (195 loc) · 8.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
{
"description": "This component is the foundational layer of the `mcp-agent` application. It is responsible for the initial bootstrapping of the entire agent framework, establishing the global application context, and managing the loading, parsing, and provision of all application settings and sensitive information. It acts as the central orchestrator for the agent's environment, ensuring that all subsequent components operate with the correct parameters and have access to essential services. Its design emphasizes modularity and extensibility, crucial for an AI agent development framework.",
"components": [
{
"name": "Application Core (MCPApp)",
"description": "The primary entry point and orchestrator of the `mcp-agent` application. It initializes and coordinates all other core services and components, setting up the runtime environment for agents and workflows.",
"referenced_source_code": [
{
"qualified_name": "mcp_agent.app.MCPApp",
"reference_file": "/home/ivan/StartUp/CodeBoarding/repos/mcp-agent/src/mcp_agent/app.py",
"reference_start_line": 34,
"reference_end_line": 508
}
]
},
{
"name": "Configuration Management (Settings)",
"description": "Centralized management for all application configurations, including API keys, service endpoints, and operational parameters. It ensures that all components have access to the necessary settings in a structured and secure manner, supporting various LLM providers and external services.",
"referenced_source_code": [
{
"qualified_name": "mcp_agent.config.Settings",
"reference_file": "/home/ivan/StartUp/CodeBoarding/repos/mcp-agent/src/mcp_agent/config.py",
"reference_start_line": 0,
"reference_end_line": 0
},
{
"qualified_name": "mcp_agent.config.AnthropicSettings",
"reference_file": "/home/ivan/StartUp/CodeBoarding/repos/mcp-agent/src/mcp_agent/config.py",
"reference_start_line": 0,
"reference_end_line": 0
},
{
"qualified_name": "mcp_agent.config.OpenAISettings",
"reference_file": "/home/ivan/StartUp/CodeBoarding/repos/mcp-agent/src/mcp_agent/config.py",
"reference_start_line": 0,
"reference_end_line": 0
},
{
"qualified_name": "mcp_agent.config.TemporalSettings",
"reference_file": "/home/ivan/StartUp/CodeBoarding/repos/mcp-agent/src/mcp_agent/config.py",
"reference_start_line": 0,
"reference_end_line": 0
},
{
"qualified_name": "mcp_agent.config.AzureSettings",
"reference_file": "/home/ivan/StartUp/CodeBoarding/repos/mcp-agent/src/mcp_agent/config.py",
"reference_start_line": 0,
"reference_end_line": 0
},
{
"qualified_name": "mcp_agent.config.BedrockSettings",
"reference_file": "/home/ivan/StartUp/CodeBoarding/repos/mcp-agent/src/mcp_agent/config.py",
"reference_start_line": 0,
"reference_end_line": 0
},
{
"qualified_name": "mcp_agent.config.GoogleSettings",
"reference_file": "/home/ivan/StartUp/CodeBoarding/repos/mcp-agent/src/mcp_agent/config.py",
"reference_start_line": 0,
"reference_end_line": 0
}
]
},
{
"name": "Decorator Registry",
"description": "A central registry for managing and retrieving decorators, enabling dynamic extension and modification of component behavior across the framework. This supports the \"Strategy Pattern\" and extensibility by allowing new functionalities to be plugged in without altering core code.",
"referenced_source_code": [
{
"qualified_name": "mcp_agent.executor.decorator_registry.DecoratorRegistry",
"reference_file": "/home/ivan/StartUp/CodeBoarding/repos/mcp-agent/src/mcp_agent/executor/decorator_registry.py",
"reference_start_line": 0,
"reference_end_line": 0
}
]
},
{
"name": "Signal Registry",
"description": "Provides a mechanism for registering and dispatching signals, facilitating event-driven communication and coordination between different parts of the agent framework. This is crucial for implementing the \"Observer Pattern\" and asynchronous interactions.",
"referenced_source_code": [
{
"qualified_name": "mcp_agent.executor.signal_registry.SignalRegistry",
"reference_file": "/home/ivan/StartUp/CodeBoarding/repos/mcp-agent/src/mcp_agent/executor/signal_registry.py",
"reference_start_line": 3,
"reference_end_line": 29
}
]
},
{
"name": "Task Registry (ActivityRegistry)",
"description": "A registry for managing and retrieving executable tasks or activities, allowing the framework to dynamically discover and invoke operations. This is key for defining and executing agent capabilities.",
"referenced_source_code": [
{
"qualified_name": "mcp_agent.executor.task_registry.ActivityRegistry",
"reference_file": "/home/ivan/StartUp/CodeBoarding/repos/mcp-agent/src/mcp_agent/executor/task_registry.py",
"reference_start_line": 0,
"reference_end_line": 0
}
]
},
{
"name": "MCP Server Management",
"description": "Manages the lifecycle and connections to various Model Context Protocol (MCP) servers, enabling the agent to interact with external models and services. This component is critical for the \"Microservices/Service-Oriented Architecture\" aspect of the framework.",
"referenced_source_code": [
{
"qualified_name": "mcp_agent.mcp.mcp_connection_manager.MCPConnectionManager",
"reference_file": "/home/ivan/StartUp/CodeBoarding/repos/mcp-agent/src/mcp_agent/mcp/mcp_connection_manager.py",
"reference_start_line": 0,
"reference_end_line": 0
},
{
"qualified_name": "mcp_agent.mcp.mcp_server_registry.ServerRegistry",
"reference_file": "/home/ivan/StartUp/CodeBoarding/repos/mcp-agent/src/mcp_agent/mcp/mcp_server_registry.py",
"reference_start_line": 0,
"reference_end_line": 0
},
{
"qualified_name": "mcp_agent.mcp.mcp_aggregator.MCPAggregator",
"reference_file": "/home/ivan/StartUp/CodeBoarding/repos/mcp-agent/src/mcp_agent/mcp/mcp_aggregator.py",
"reference_start_line": 77,
"reference_end_line": 1357
}
]
},
{
"name": "LLM Selection",
"description": "Responsible for selecting and managing Large Language Models (LLMs), including their configuration and augmentation, to provide the core AI capabilities for the agents. It allows for flexible integration of different LLM providers.",
"referenced_source_code": [
{
"qualified_name": "mcp_agent.workflows.llm.llm_selector.ModelSelector",
"reference_file": "/home/ivan/StartUp/CodeBoarding/repos/mcp-agent/src/mcp_agent/workflows/llm/llm_selector.py",
"reference_start_line": 96,
"reference_end_line": 413
},
{
"qualified_name": "mcp_agent.workflows.llm.augmented_llm.AugmentedLLM",
"reference_file": "/home/ivan/StartUp/CodeBoarding/repos/mcp-agent/src/mcp_agent/workflows/llm/augmented_llm.py",
"reference_start_line": 218,
"reference_end_line": 668
}
]
}
],
"components_relations": [
{
"relation": "uses",
"src_name": "Application Core (MCPApp)",
"dst_name": "Configuration Management (Settings)"
},
{
"relation": "manages",
"src_name": "Application Core (MCPApp)",
"dst_name": "Decorator Registry"
},
{
"relation": "manages",
"src_name": "Application Core (MCPApp)",
"dst_name": "Signal Registry"
},
{
"relation": "manages",
"src_name": "Application Core (MCPApp)",
"dst_name": "Task Registry (ActivityRegistry)"
},
{
"relation": "orchestrates",
"src_name": "Application Core (MCPApp)",
"dst_name": "MCP Server Management"
},
{
"relation": "integrates",
"src_name": "Application Core (MCPApp)",
"dst_name": "LLM Selection"
},
{
"relation": "configures",
"src_name": "Configuration Management (Settings)",
"dst_name": "LLM Selection"
},
{
"relation": "configures",
"src_name": "Configuration Management (Settings)",
"dst_name": "MCP Server Management"
},
{
"relation": "depends on",
"src_name": "MCP Server Management",
"dst_name": "Configuration Management (Settings)"
},
{
"relation": "depends on",
"src_name": "LLM Selection",
"dst_name": "Configuration Management (Settings)"
}
]
}