configure_authenticator_context
Configure Microsoft Authenticator to display login context for enhanced security verification during authentication processes.
Instructions
Configure Microsoft Authenticator to show login context (MS.AAD.3.3v1)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "configure_authenticator_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- cisa-m365/src/index.ts:559-587 (handler)The main handler function for the 'configure_authenticator_context' tool. It patches the Microsoft Graph API's authenticationMethodsPolicy to enable the Microsoft Authenticator with context information in notifications.
private async configureAuthenticatorContext() { try { // Configure Microsoft Authenticator settings using Microsoft Graph API await this.graphClient .api('/policies/authenticationMethodsPolicy') .patch({ policies: { microsoftAuthenticator: { isEnabled: true, showContextInformationInNotifications: true, }, }, }); return { content: [ { type: 'text', text: 'Microsoft Authenticator context information configured successfully', }, ], }; } catch (error: unknown) { throw new McpError( ErrorCode.InternalError, `Failed to configure Authenticator context: ${error instanceof Error ? error.message : 'Unknown error'}` ); } } - cisa-m365/src/index.ts:160-167 (registration)Registration of the tool in the ListToolsRequestSchema handler, specifying the name, description, and input schema (empty object, no parameters required).
{ name: 'configure_authenticator_context', description: 'Configure Microsoft Authenticator to show login context (MS.AAD.3.3v1)', inputSchema: { type: 'object', properties: {}, }, }, - cisa-m365/src/index.ts:163-166 (schema)Input schema definition for the tool, which is an empty object indicating no input parameters are required.
inputSchema: { type: 'object', properties: {}, }, - cisa-m365/src/index.ts:333-334 (handler)Dispatcher case in the CallToolRequestSchema handler that routes the tool call to the specific handler function.
case 'configure_authenticator_context': return await this.configureAuthenticatorContext();