Skip to content

Commit 42ab7f8

Browse files
committed
MCP Resources
1 parent 5bd9536 commit 42ab7f8

File tree

5 files changed

+365
-64
lines changed

5 files changed

+365
-64
lines changed

plugins/communication_protocols/mcp/pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ requires-python = ">=3.10"
1414
dependencies = [
1515
"pydantic>=2.0",
1616
"mcp>=1.12",
17-
"utcp>=1.0"
17+
"utcp>=1.0",
18+
"mcp-use>=1.3"
1819
]
1920
classifiers = [
2021
"Development Status :: 4 - Beta",

plugins/communication_protocols/mcp/src/utcp_mcp/mcp_call_template.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,15 @@ class McpCallTemplate(CallTemplate):
4242
config: Configuration object containing MCP server definitions.
4343
This follows the same format as the official MCP server configuration.
4444
auth: Optional OAuth2 authentication for HTTP-based MCP servers.
45+
register_resources_as_tools: Whether to register MCP resources as callable tools.
46+
When True, server resources are exposed as tools that can be called.
47+
Default is False.
4548
"""
4649

4750
call_template_type: Literal["mcp"] = "mcp"
4851
config: McpConfig
4952
auth: Optional[OAuth2Auth] = None
53+
register_resources_as_tools: bool = False
5054

5155
class McpCallTemplateSerializer(Serializer[McpCallTemplate]):
5256
"""REQUIRED

0 commit comments

Comments
 (0)