|
| 1 | +{ |
| 2 | + "description": "Abstract Components Overview", |
| 3 | + "components": [ |
| 4 | + { |
| 5 | + "name": "External Integration Layer", |
| 6 | + "description": "The overarching component responsible for abstracting and managing interactions with external AI frameworks and systems. It acts as the primary interface for `mcp-use` to leverage external functionalities, ensuring loose coupling and adaptability.", |
| 7 | + "referenced_source_code": [ |
| 8 | + { |
| 9 | + "qualified_name": "mcp_use.adapters.base.BaseAdapter", |
| 10 | + "reference_file": "/mnt/e/StartUp/mcp-use/mcp_use/adapters/base.py", |
| 11 | + "reference_start_line": 0, |
| 12 | + "reference_end_line": 0 |
| 13 | + }, |
| 14 | + { |
| 15 | + "qualified_name": "mcp_use.adapters.langchain_adapter.LangChainAdapter", |
| 16 | + "reference_file": "/mnt/e/StartUp/mcp-use/mcp_use/adapters/langchain_adapter.py", |
| 17 | + "reference_start_line": 0, |
| 18 | + "reference_end_line": 0 |
| 19 | + } |
| 20 | + ], |
| 21 | + "can_expand": true |
| 22 | + }, |
| 23 | + { |
| 24 | + "name": "Base Adapter", |
| 25 | + "description": "Defines the abstract interface and contract for all external integrations. It establishes the common methods and properties that any concrete adapter must implement, ensuring a consistent approach to integrating diverse external systems. It also orchestrates the lifecycle of connectors.", |
| 26 | + "referenced_source_code": [ |
| 27 | + { |
| 28 | + "qualified_name": "mcp_use.adapters.base.BaseAdapter", |
| 29 | + "reference_file": "/mnt/e/StartUp/mcp-use/mcp_use/adapters/base.py", |
| 30 | + "reference_start_line": 0, |
| 31 | + "reference_end_line": 0 |
| 32 | + } |
| 33 | + ], |
| 34 | + "can_expand": true |
| 35 | + }, |
| 36 | + { |
| 37 | + "name": "LangChain Adapter", |
| 38 | + "description": "A concrete implementation of the `BaseAdapter` specifically tailored for integrating with the LangChain framework. It translates `mcp-use`'s internal requests and data structures into LangChain-compatible formats and vice-versa, enabling the use of LangChain's agents, tools, and chains.", |
| 39 | + "referenced_source_code": [ |
| 40 | + { |
| 41 | + "qualified_name": "mcp_use.adapters.langchain_adapter.LangChainAdapter", |
| 42 | + "reference_file": "/mnt/e/StartUp/mcp-use/mcp_use/adapters/langchain_adapter.py", |
| 43 | + "reference_start_line": 0, |
| 44 | + "reference_end_line": 0 |
| 45 | + } |
| 46 | + ], |
| 47 | + "can_expand": true |
| 48 | + }, |
| 49 | + { |
| 50 | + "name": "Connector Management Logic", |
| 51 | + "description": "An internal helper component responsible for the initialization, configuration, and lifecycle management of connectors to external systems. It ensures that the necessary connections are established and maintained for adapters to function correctly.", |
| 52 | + "referenced_source_code": [ |
| 53 | + { |
| 54 | + "qualified_name": "mcp_use.connectors.base.BaseConnector", |
| 55 | + "reference_file": "/mnt/e/StartUp/mcp-use/mcp_use/connectors/base.py", |
| 56 | + "reference_start_line": 0, |
| 57 | + "reference_end_line": 0 |
| 58 | + }, |
| 59 | + { |
| 60 | + "qualified_name": "mcp_use.connectors.http.HttpConnector", |
| 61 | + "reference_file": "/mnt/e/StartUp/mcp-use/mcp_use/connectors/http.py", |
| 62 | + "reference_start_line": 0, |
| 63 | + "reference_end_line": 0 |
| 64 | + }, |
| 65 | + { |
| 66 | + "qualified_name": "mcp_use.connectors.sandbox.SandboxConnector", |
| 67 | + "reference_file": "/mnt/e/StartUp/mcp-use/mcp_use/connectors/sandbox.py", |
| 68 | + "reference_start_line": 0, |
| 69 | + "reference_end_line": 0 |
| 70 | + }, |
| 71 | + { |
| 72 | + "qualified_name": "mcp_use.connectors.stdio.StdioConnector", |
| 73 | + "reference_file": "/mnt/e/StartUp/mcp-use/mcp_use/connectors/stdio.py", |
| 74 | + "reference_start_line": 0, |
| 75 | + "reference_end_line": 0 |
| 76 | + }, |
| 77 | + { |
| 78 | + "qualified_name": "mcp_use.connectors.websocket.WebSocketConnector", |
| 79 | + "reference_file": "/mnt/e/StartUp/mcp-use/mcp_use/connectors/websocket.py", |
| 80 | + "reference_start_line": 0, |
| 81 | + "reference_end_line": 0 |
| 82 | + }, |
| 83 | + { |
| 84 | + "qualified_name": "mcp_use.session.MCPSession", |
| 85 | + "reference_file": "/mnt/e/StartUp/mcp-use/mcp_use/session.py", |
| 86 | + "reference_start_line": 0, |
| 87 | + "reference_end_line": 0 |
| 88 | + } |
| 89 | + ], |
| 90 | + "can_expand": true |
| 91 | + }, |
| 92 | + { |
| 93 | + "name": "Tool/Resource/Prompt Conversion Helpers", |
| 94 | + "description": "An internal helper component that performs specific data transformations, such as converting `mcp-use`'s internal tool definitions, resources, or prompt templates into formats compatible with external frameworks (e.g., LangChain's tool schema or prompt templates), and vice-versa.", |
| 95 | + "referenced_source_code": [ |
| 96 | + { |
| 97 | + "qualified_name": "mcp_use.adapters.langchain_adapter.LangChainAdapter._convert_prompt", |
| 98 | + "reference_file": "/mnt/e/StartUp/mcp-use/mcp_use/adapters/langchain_adapter.py", |
| 99 | + "reference_start_line": 0, |
| 100 | + "reference_end_line": 0 |
| 101 | + }, |
| 102 | + { |
| 103 | + "qualified_name": "mcp_use.adapters.langchain_adapter.LangChainAdapter._convert_resource", |
| 104 | + "reference_file": "/mnt/e/StartUp/mcp-use/mcp_use/adapters/langchain_adapter.py", |
| 105 | + "reference_start_line": 0, |
| 106 | + "reference_end_line": 0 |
| 107 | + }, |
| 108 | + { |
| 109 | + "qualified_name": "mcp_use.adapters.langchain_adapter.LangChainAdapter._convert_tool", |
| 110 | + "reference_file": "/mnt/e/StartUp/mcp-use/mcp_use/adapters/langchain_adapter.py", |
| 111 | + "reference_start_line": 0, |
| 112 | + "reference_end_line": 0 |
| 113 | + } |
| 114 | + ], |
| 115 | + "can_expand": false |
| 116 | + } |
| 117 | + ], |
| 118 | + "components_relations": [ |
| 119 | + { |
| 120 | + "relation": "contains", |
| 121 | + "src_name": "External Integration Layer", |
| 122 | + "dst_name": "Base Adapter" |
| 123 | + }, |
| 124 | + { |
| 125 | + "relation": "contains", |
| 126 | + "src_name": "External Integration Layer", |
| 127 | + "dst_name": "LangChain Adapter" |
| 128 | + }, |
| 129 | + { |
| 130 | + "relation": "defines the interface for", |
| 131 | + "src_name": "Base Adapter", |
| 132 | + "dst_name": "LangChain Adapter" |
| 133 | + }, |
| 134 | + { |
| 135 | + "relation": "orchestrates", |
| 136 | + "src_name": "Base Adapter", |
| 137 | + "dst_name": "Connector Management Logic" |
| 138 | + }, |
| 139 | + { |
| 140 | + "relation": "leverages", |
| 141 | + "src_name": "LangChain Adapter", |
| 142 | + "dst_name": "Tool/Resource/Prompt Conversion Helpers" |
| 143 | + } |
| 144 | + ] |
| 145 | +} |
0 commit comments