set_project_context
Sets the project context for Azure DevOps commands to eliminate repetitive project parameter entry in subsequent operations.
Instructions
Sets the project context for subsequent commands to avoid repeating project parameter.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes | The name or ID of the project to set as context. |
Implementation Reference
- The main handler function in AzureDevOpsClient that sets the project_context attribute and returns a confirmation message.def set_project_context(self, project): self.project_context = project return {"message": f"Project context set to '{project}'."}
- mcp_azure_devops/server.py:524-534 (schema)The JSON schema defining the input parameters for the set_project_context tool, requiring a 'project' string.inputSchema={ "type": "object", "properties": { "project": { "type": "string", "description": "The name or ID of the project to set as context." }, }, "required": ["project"], "additionalProperties": False }
- mcp_azure_devops/server.py:521-535 (registration)The tool registration in the server's tools list, including name, description, and schema.types.Tool( name="set_project_context", description="Sets the project context for subsequent commands to avoid repeating project parameter.", inputSchema={ "type": "object", "properties": { "project": { "type": "string", "description": "The name or ID of the project to set as context." }, }, "required": ["project"], "additionalProperties": False } ),
- mcp_azure_devops/server.py:1057-1058 (handler)The server-side dispatch handler that routes the tool call to the client's set_project_context method.elif name == "set_project_context": return self.client.set_project_context(**arguments)