configure_authenticator_context
Configure Microsoft Authenticator to display login context information during authentication, enhancing security awareness by showing verification request details.
Instructions
Configure Microsoft Authenticator to show login context (MS.AAD.3.3v1)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- cisa-m365/src/index.ts:559-587 (handler)The handler function that implements the tool logic: patches the authenticationMethodsPolicy to enable 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:333-334 (registration)Switch case that dispatches tool calls named 'configure_authenticator_context' to the handler method.case 'configure_authenticator_context': return await this.configureAuthenticatorContext();
- cisa-m365/src/index.ts:160-167 (registration)Tool registration in listTools response, defining name, description, and input schema (empty object).{ 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 for the tool: requires no parameters (empty object).inputSchema: { type: 'object', properties: {}, },