Skip to content

Commit 60a640a

Browse files
aakashH242Aakash
andauthored
docs: Added details on how to configure redirect URIs when using OAuth mode with custom Azure credentials. (#155)
Co-authored-by: Aakash <[email protected]>
1 parent 09e4eb3 commit 60a640a

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

README.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -287,19 +287,30 @@ registration:
287287
- Navigate to Azure Active Directory → App registrations → New registration
288288
- Set name: "MS365 MCP Server"
289289

290-
1. **Configure Redirect URIs**:
291-
Add these redirect URIs for testing with MCP Inspector (`npm run inspector`):
290+
2. **Configure Redirect URIs**:
292291

293-
- `http://localhost:6274/oauth/callback`
294-
- `http://localhost:6274/oauth/callback/debug`
295-
- `http://localhost:3000/callback` (optional, for server callback)
292+
- **Configure the OAuth callback URI**: Go to your app registration and on the left side, go to Authentication.
293+
- Under Platform configurations:
294+
- Click Add a platform (if you don’t already see one for "Mobile and desktop applications" / "Public client").
295+
- Choose Mobile and desktop applications or Public client/native (mobile & desktop) (label depends on portal version).
296296

297-
1. **Get Credentials**:
297+
3. **Testing with MCP Inspector (`npm run inspector`)**:
298+
299+
- Go to your app registration and on the left side, go to Authentication.
300+
- Under Platform configurations:
301+
- Click Add a platform (if you don’t already see one for "Web").
302+
- Choose Web.
303+
- Configure the following redirect URIs
304+
- `http://localhost:6274/oauth/callback`
305+
- `http://localhost:6274/oauth/callback/debug`
306+
- `http://localhost:3000/callback` (optional, for server callback)
307+
308+
4. **Get Credentials**:
298309

299310
- Copy the **Application (client) ID** from Overview page
300311
- Go to Certificates & secrets → New client secret → Copy the secret value
301312

302-
1. **Configure Environment Variables**:
313+
5. **Configure Environment Variables**:
303314
Create a `.env` file in your project root:
304315
```env
305316
MS365_MCP_CLIENT_ID=your-azure-ad-app-client-id-here

0 commit comments

Comments
 (0)