Skip to content

Commit 8562b8b

Browse files
committed
Bump pyproject.toml version, and upgrade mcp dependency to >= 1.13.1
1 parent 6de7862 commit 8562b8b

File tree

10 files changed

+43
-11
lines changed

10 files changed

+43
-11
lines changed

examples/mcp_agent_server/asyncio/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
# Note: This is purely optional:
3030
# if not provided, a default FastMCP server will be created by MCPApp using create_mcp_server_for_app()
31-
mcp = FastMCP(name="basic_agent_server")
31+
mcp = FastMCP(name="basic_agent_server", instructions="My basic agent server example.")
3232

3333
# Define the MCPApp instance. The server created for this app will advertise the
3434
# MCP logging capability and forward structured logs upstream to connected clients.
@@ -249,6 +249,7 @@ async def grade_story_async(story: str, app_ctx: Optional[AppContext] = None) ->
249249

250250
return result
251251

252+
252253
# Add custom tool to get token usage for a workflow
253254
@mcp.tool(
254255
name="get_token_usage",
@@ -362,6 +363,7 @@ def collect_model_usage(node: TokenNode):
362363

363364
return result
364365

366+
365367
async def main():
366368
parser = argparse.ArgumentParser()
367369
parser.add_argument(

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "mcp-agent"
3-
version = "0.1.18"
3+
version = "0.1.19"
44
description = "Build effective agents with Model Context Protocol (MCP) using simple, composable patterns."
55
readme = "README.md"
66
license = { file = "LICENSE" }
@@ -17,7 +17,7 @@ dependencies = [
1717
"aiohttp>=3.11.13",
1818
"fastapi>=0.115.6",
1919
"jsonref>=1.1.0",
20-
"mcp>=1.10.1",
20+
"mcp>=1.13.1",
2121
"numpy>=2.1.3",
2222
"opentelemetry-distro>=0.50b0",
2323
"opentelemetry-exporter-otlp-proto-http>=1.29.0",

src/mcp_agent/app.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,11 @@ def __init__(
8888
upstream_session: Upstream session if the MCPApp is running as a server to an MCP client.
8989
initialize_model_selector: Initializes the built-in ModelSelector to help with model selection. Defaults to False.
9090
"""
91-
self.name = name
92-
self.description = description or "MCP Agent Application"
9391
self.mcp = mcp
92+
self.name = name or (mcp.name if mcp else None)
93+
self.description = description or (
94+
mcp.instructions if mcp else "MCP Agent Application"
95+
)
9496

9597
# We use these to initialize the context in initialize()
9698
if settings is None:

src/mcp_agent/data/examples/basic/agent_factory/agents.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ agents:
66
- name: coder
77
instruction: You can inspect and modify code files in the repository
88
server_names: [filesystem]
9+

src/mcp_agent/data/examples/basic/mcp_basic_agent/mcp_agent.config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ openai:
2525
default_model: "gpt-4o-mini"
2626
anthropic:
2727
default_model: claude-3-5-sonnet-latest
28+

src/mcp_agent/data/examples/basic/mcp_basic_agent/mcp_agent.secrets.yaml.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ anthropic:
2929
# # aws_session_token: "..."
3030
# # profile: "default"
3131

32+

src/mcp_agent/data/examples/basic/token_counter/mcp_agent.config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ openai:
2424
default_model: "gpt-4o-mini"
2525
anthropic:
2626
default_model: claude-3-5-sonnet-latest
27+

src/mcp_agent/data/examples/basic/token_counter/mcp_agent.secrets.yaml.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ bedrock:
1414
aws_secret_access_key: "..."
1515
aws_region: "us-east-1"
1616

17+

src/mcp_agent/server/app_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ async def _internal_human_prompts(request: Request):
632632
# TODO: saqadri (MAC) - create a much more detailed description
633633
# based on all the available agents and workflows,
634634
# or use the MCPApp's description if available.
635-
instructions=f"MCP server exposing {app.name} workflows and agents. Description: {app.description}",
635+
instructions=f"MCP server exposing {app.name} workflows and agents as tools. Description: {app.description}",
636636
lifespan=app_specific_lifespan,
637637
**kwargs,
638638
)

uv.lock

Lines changed: 28 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)