Skip to content

Commit 27ed0de

Browse files
authored
updates for tool (#41945)
* naming update * bump version
1 parent 2fc8535 commit 27ed0de

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

eng/tools/mcp/azure-sdk-python-mcp/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def init_tool(tsp_config_path: str, repo_path: str, is_local: bool = False) -> D
230230

231231
@mcp.tool("update")
232232
def update_tool(package_path: str, commit_hash: Optional[str] = None, repo: Optional[str] = None,
233-
tsp_config: Optional[str] = None, local_spec_repo: Optional[str] = None) -> Dict[str, Any]:
233+
tsp_config: Optional[str] = None, local_spec: Optional[str] = None) -> Dict[str, Any]:
234234
"""Updates an existing client library with local or remote TypeSpec changes.
235235
236236
This command is used to update an existing client library.
@@ -240,7 +240,7 @@ def update_tool(package_path: str, commit_hash: Optional[str] = None, repo: Opti
240240
:param Optional[str] commit_hash: Optional. The commit hash to update to.
241241
:param Optional[str] repo: Optional. Repository where the project is defined.
242242
:param Optional[str] tsp_config: Optional. Path to tspconfig.yaml.
243-
:param Optional[str] local_spec_repo: Optional. Path to local spec repo.
243+
:param Optional[str] local_spec: Optional. Path to the local TypeSpec project (../azure-rest-api-specs/specification/eventgrid/Azure.Messaging.EventGrid/).
244244
245245
Returns:
246246
A dictionary containing the result of the command.
@@ -257,8 +257,8 @@ def update_tool(package_path: str, commit_hash: Optional[str] = None, repo: Opti
257257
typespec_args["repo"] = repo
258258
if tsp_config:
259259
typespec_args["tsp-config"] = tsp_config
260-
if local_spec_repo:
261-
typespec_args["local-spec-repo"] = local_spec_repo
260+
if local_spec:
261+
typespec_args["local-spec-repo"] = local_spec
262262

263263
# Run the update command
264264
return run_command(["update"], cwd=package_path, is_typespec=True,

eng/tools/mcp/azure-sdk-python-mcp/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "azure-sdk-python-mcp"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
description = "MCP server for Azure SDK for Python"
55
readme = "README.md"
66
requires-python = ">=3.10"

0 commit comments

Comments
 (0)