forked from themanojdesai/python-a2a
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path__init__.py
More file actions
71 lines (58 loc) · 1.33 KB
/
Copy path__init__.py
File metadata and controls
71 lines (58 loc) · 1.33 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
"""
Model Context Protocol (MCP) integration for python-a2a.
This module provides classes and utilities for integrating with MCP servers,
allowing A2A agents to securely access data sources and tools using the
Model Context Protocol (MCP).
"""
# Original MCP client
from .client import (
MCPClient,
MCPError,
MCPConnectionError,
MCPTimeoutError,
MCPToolError
)
# Original MCP-enabled agent
from .agent import MCPEnabledAgent
# FastMCP implementation
from .fastmcp import (
FastMCP,
MCPResponse,
text_response,
error_response,
image_response,
multi_content_response
)
# Improved agent integration
from .integration import (
FastMCPAgent,
A2AMCPAgent
)
# Proxy functionality
from .proxy import create_proxy_server
# Transport for easy imports
from .transport import create_fastapi_app
__all__ = [
# Client classes
"MCPClient",
# Agent classes
"MCPEnabledAgent",
"FastMCPAgent",
"A2AMCPAgent",
# Error classes
"MCPError",
"MCPConnectionError",
"MCPTimeoutError",
"MCPToolError",
# FastMCP classes
"FastMCP",
"MCPResponse",
"text_response",
"error_response",
"image_response",
"multi_content_response",
# Proxy functionality
"create_proxy_server",
# Transport
"create_fastapi_app"
]