Commit f3593c8a authored by Joe Chen's avatar Joe Chen
Browse files

ss

parent 28cc2f42
No related merge requests found
Showing with 5 additions and 5 deletions
+5 -5
......@@ -219,7 +219,7 @@ async def set_access_token(ctx: Context, token: str) -> str:
"""
try:
ctx.request_context.lifespan_context.access_token = token
return "Access token successfully set"
except Exception as e:
return f"Error setting access token: {str(e)}"
......@@ -304,7 +304,7 @@ async def check_domain_availability(ctx: Context, domain_name: str) -> str:
return error_msg
@mcp.tool()
async def deploy_repository_site(ctx: Context, repository_url: str, domain_name: str, username: Optional[str] = None, token: Optional[str] = None) -> str:
async def deploy_repository_site(ctx: Context, repository_url: str, domain_name: str, username: str, token: str) -> str:
"""Deploy a website from a Git repository to a custom domain.
This tool clones a Git repository (GitHub, GitLab, or self-hosted Git),
......@@ -313,9 +313,9 @@ async def deploy_repository_site(ctx: Context, repository_url: str, domain_name:
Args:
ctx: The MCP server provided context
repository_url: The Git repository URL to clone (GitHub, GitLab, or self-hosted Git)
domain_name: The subdomain name (will be deployed as domain_name.smartzliving.ai)
username: Optional username for private repositories
token: Optional token for private repositories
domain_name: The subdomain name always ask for it, the full domain name will be domain_name.smartzliving.ai
username: username for private repositories
token: token for private repositories
Returns:
A success message or an error message
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment