clear_project_context
Revert from project-specific scope to organization-level context in Azure DevOps, allowing users to switch between different projects or work at the broader organizational level.
Instructions
Clears the project context, reverting to organization-level scope.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- The main handler function that executes the tool logic by clearing the project's context attribute and returning a success message.def clear_project_context(self): self.project_context = None return {"message": "Project context cleared."}
- mcp_azure_devops/server.py:539-543 (schema)Input schema definition for the tool, which requires no parameters (empty properties).inputSchema={ "type": "object", "properties": {}, "additionalProperties": False }
- mcp_azure_devops/server.py:536-544 (registration)Tool registration in the self.tools list returned by list_tools() handler, defining name, description, and schema.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 (registration)Dispatch logic in the _execute_tool method that routes the tool call to the client handler.elif name == "clear_project_context": return self.client.clear_project_context()