Skip to content

Commit 64f9607

Browse files
committed
Improve some wording in MCP Auth guide
1 parent 7ed8573 commit 64f9607

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

en/asgardeo/docs/quick-starts/mcp-auth-server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ template: templates/quick-start.html
1717
"Make sure you have a JavaScript package manager like npm, yarn, or pnpm",
1818
"A favorite text editor or IDE"
1919
],
20-
source_code: "<a href='https://github.com/ayshsandu/mcp-auth-quickstart' target='_blank' class='github-icon'>MCP-Auth Sample</a>"
20+
source_code: "<a href='https://github.com/wso2/iam-ai-samples/tree/main/mcp-auth/typescript' target='_blank' class='github-icon'>MCP-Auth Sample</a>"
2121
};
2222
</script>
2323

en/includes/quick-starts/mcp-auth-server.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# MCP-Auth Quickstart
22

3-
Welcome to the Secure MCP server Quickstart guide! In this document, you will learn to build a Node.js MCP server using Asgardeo MCP Auth SDK, secure it with {{ product_name }} and define a MCP tool to add two numbers and a `greeting` resource.
3+
Welcome to the Secure MCP server Quickstart guide! This document shows you how to build a secure MCP (Model Context Protocol) server using [MCP TypeScript SDK](https://www.npmjs.com/package/@modelcontextprotocol/sdk) and [WSO2 MCP Auth SDK](https://www.npmjs.com/package/@asgardeo/mcp-express).
4+
5+
You will create an MCP server that:
6+
7+
- **Implements authorization** with {{ product_name }}
8+
- **Defines a tool** that adds two numbers
9+
- **Serves a resource** that generates a greeting
10+
11+
After completing this guide, you will have a working MCP server that uses OAuth 2.1 according to the [MCP auth specification](https://modelcontextprotocol.io/specification/2025-06-18/basic/authorization).
412

513
[//] STEPS_START
614

@@ -227,7 +235,7 @@ User **MCP Inspector** as the client application to test the MCP server.
227235
npx @modelcontextprotocol/inspector http://localhost:3000/mcp
228236
```
229237

230-
Use it to list tools/resources, invoke the "add" tool (e.g., inputs `{ "a": 5, "b": 3 }`), or query the "greeting" resource (e.g., `greeting://world`).
238+
Use it to list tools/resources, invoke the "add" tool, or query the "greeting" resource using the inspector UI.
231239

232240

233241
## Add auth to the MCP server
@@ -268,7 +276,7 @@ import { z } from 'zod';
268276
import {McpAuthServer} from '@asgardeo/mcp-express';
269277

270278
// Define the port
271-
const port = parseInt(process.env.PORT || '3000');
279+
const port = '3000';
272280

273281
// Initialize McpAuthServer (Asgardeo auth middleware)
274282
const mcpAuthServer = new McpAuthServer({
@@ -358,7 +366,7 @@ app.listen(port, () => {
358366
});
359367
```
360368

361-
Verify and update the placeholder values of `mcpAuthServer` configurations to properly connect to `{{ product_name }}`.
369+
Verify and update the placeholder values of `mcpAuthServer` configurations to properly connect to `{{ product_name }}`. Alternatively, you can use environment variables to manage these configurations securely.
362370

363371
First run the dev server by running the following command.
364372

0 commit comments

Comments
 (0)