mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-15 14:08:08 +01:00
Model Context Protocol (MCP) support with new use case (#42)
* initial mcp * food ordering with mcp * prompt eng * splitting out goals and updating docs * a diff so I can get tests from codex * a diff so I can get tests from codex * oops, missing files * tests, file formatting * readme and setup updates * setup.md link fixes * readme change * readme change * readme change * stripe food setup script * single agent mode default * prompt engineering for better multi agent performance * performance should be greatly improved * Update goals/finance.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update activities/tool_activities.py Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * co-pilot PR suggested this change, and now fixed it * stronger wording around json format response * formatting * moved docs to dir * moved image assets under docs * cleanup env example, stripe guidance * cleanup --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
1811e4cf59
commit
5d55a9fe80
27
shared/mcp_config.py
Normal file
27
shared/mcp_config.py
Normal file
@@ -0,0 +1,27 @@
|
||||
import os
|
||||
|
||||
from models.tool_definitions import MCPServerDefinition
|
||||
|
||||
|
||||
def get_stripe_mcp_server_definition(included_tools: list[str]) -> MCPServerDefinition:
|
||||
"""
|
||||
Returns a Stripe MCP server definition with customizable included tools.
|
||||
|
||||
Args:
|
||||
included_tools: List of tool names to include from the Stripe MCP server
|
||||
|
||||
Returns:
|
||||
MCPServerDefinition configured for Stripe
|
||||
"""
|
||||
return MCPServerDefinition(
|
||||
name="stripe-mcp",
|
||||
command="npx",
|
||||
args=[
|
||||
"-y",
|
||||
"@stripe/mcp",
|
||||
"--tools=all",
|
||||
f"--api-key={os.getenv('STRIPE_API_KEY')}",
|
||||
],
|
||||
env=None,
|
||||
included_tools=included_tools,
|
||||
)
|
||||
Reference in New Issue
Block a user