Skip to content

Commit 340461b

Browse files
committed
chore(examples): show how to pass an authorization token to an MCP server
1 parent b7ebb90 commit 340461b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/mcp.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const main = async () => {
1414
type: 'url',
1515
url: 'http://example-server.modelcontextprotocol.io/sse',
1616
name: 'example',
17+
authorization_token: 'YOUR_TOKEN',
1718
tool_configuration: {
1819
// Optional, defaults to allowing all tools
1920
enabled: true, // Optional

0 commit comments

Comments
 (0)