set_project_context
Sets the Azure DevOps project context for subsequent commands to avoid repeating the project parameter across multiple 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)Defines the input schema for the set_project_context tool, specifying that it requires a single 'project' string 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 (registration)The dispatch logic in the _execute_tool method that routes calls to the client's set_project_context handler.elif name == "set_project_context": return self.client.set_project_context(**arguments)
- mcp_azure_devops/server.py:521-535 (registration)The Tool object definition that registers the set_project_context tool with the MCP server, 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 } ),