clear_project_context
Reset to organization-level scope by clearing the current project context in Azure DevOps.
Instructions
Clears the project context, reverting to organization-level scope.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The core handler function that implements the tool logic by clearing the project_context attribute on the client instance and returning a success message.def clear_project_context(self): self.project_context = None return {"message": "Project context cleared."}
- mcp_azure_devops/server.py:536-544 (registration)The tool registration in the server's tools list, including name, description, and empty input schema since no parameters are required.types.Tool( name="clear_project_context", description="Clears the project context, reverting to organization-level scope.", inputSchema={ "type": "object", "properties": {}, "additionalProperties": False } ),
- mcp_azure_devops/server.py:1059-1060 (handler)The dispatch handler in the server's _execute_tool method that routes the tool call to the client's clear_project_context method.elif name == "clear_project_context": return self.client.clear_project_context()
- mcp_azure_devops/server.py:539-543 (schema)The input schema definition for the tool, specifying an empty object with no properties required.inputSchema={ "type": "object", "properties": {}, "additionalProperties": False }