Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1b6d77f

Browse files
pietrozullorenvinsCopilot
authored
feat/authorization (#149)
* Auth 1.0 * Defualt to DCR * Fix client list server names * Fix oauth problems with no oauth servers, enhance documentation and comments * Add OAuth metadata provider and specific fixes - Remove auth field to reduce API verbosity - Add "auth" support for MCPClient's config - Add "oauth_provider" key to MCPClient's config to provide metadata - Fix no OAuth servers' errors * Relocate authentication doc * Fix ruff formatting as usual * Fix http connectors tests with oauth support * Fix test_config unit tests * Final fix for tests * Add integration for auth - Add auth server for testing - Add test for complete auth flow with mock on OAuth callback - Add test for custom client auth - Add test for bearer auth token * Add further test and update README - Add OAuth metadata provider (no discovery) - Update README with new auth badge * Format fixes * Remove redefined exception * Add auth test on GH action * Update docs with correct example * Apply suggestions from code review Co-authored-by: Copilot <[email protected]> Signed-off-by: Pietro Zullo <[email protected]> * Update mcp_use/auth/oauth.py Co-authored-by: Copilot <[email protected]> Signed-off-by: Pietro Zullo <[email protected]> * Add custom callback port feature - Add customizable port for callback - Remove dynamic port - Fix bug of registration before checking port * Add GitHub MCP support * Update docs * chore: highlight hack * chore: change wording in docs * Add authlib on project dependencies * Remove useless example * Fix formatting as usual --------- Signed-off-by: Vincenzo Reina <[email protected]> Signed-off-by: Pietro Zullo <[email protected]> Co-authored-by: renvins <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent c0d971f commit 1b6d77f

File tree

22 files changed

+1877
-50
lines changed

22 files changed

+1877
-50
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
strategy:
7878
fail-fast: false
7979
matrix:
80-
primitive: [sampling, tools, resources, prompts, elicitation, notifications]
80+
primitive: [sampling, tools, resources, prompts, elicitation, notifications, auth]
8181
steps:
8282
- uses: actions/checkout@v3
8383
- name: Set up Python 3.11

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
| Supports | |
4747
| :------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
48-
| **Primitives** | [![Tools](https://img.shields.io/github/actions/workflow/status/pietrozullo/mcp-use/tests.yml?job=primitive-tools&label=Tools&style=flat)](https://github.com/pietrozullo/mcp-use/actions/workflows/tests.yml) [![Resources](https://img.shields.io/github/actions/workflow/status/pietrozullo/mcp-use/tests.yml?job=primitive-resources&label=Resources&style=flat)](https://github.com/pietrozullo/mcp-use/actions/workflows/tests.yml) [![Prompts](https://img.shields.io/github/actions/workflow/status/pietrozullo/mcp-use/tests.yml?job=primitive-prompts&label=Prompts&style=flat)](https://github.com/pietrozullo/mcp-use/actions/workflows/tests.yml) [![Sampling](https://img.shields.io/github/actions/workflow/status/pietrozullo/mcp-use/tests.yml?job=primitive-sampling&label=Sampling&style=flat)](https://github.com/pietrozullo/mcp-use/actions/workflows/tests.yml) [![Elicitation](https://img.shields.io/github/actions/workflow/status/pietrozullo/mcp-use/tests.yml?job=primitive-elicitation&label=Elicitation&style=flat)](https://github.com/pietrozullo/mcp-use/actions/workflows/tests.yml) |
48+
| **Primitives** | [![Tools](https://img.shields.io/github/actions/workflow/status/pietrozullo/mcp-use/tests.yml?job=primitive-tools&label=Tools&style=flat)](https://github.com/pietrozullo/mcp-use/actions/workflows/tests.yml) [![Resources](https://img.shields.io/github/actions/workflow/status/pietrozullo/mcp-use/tests.yml?job=primitive-resources&label=Resources&style=flat)](https://github.com/pietrozullo/mcp-use/actions/workflows/tests.yml) [![Prompts](https://img.shields.io/github/actions/workflow/status/pietrozullo/mcp-use/tests.yml?job=primitive-prompts&label=Prompts&style=flat)](https://github.com/pietrozullo/mcp-use/actions/workflows/tests.yml) [![Sampling](https://img.shields.io/github/actions/workflow/status/pietrozullo/mcp-use/tests.yml?job=primitive-sampling&label=Sampling&style=flat)](https://github.com/pietrozullo/mcp-use/actions/workflows/tests.yml) [![Elicitation](https://img.shields.io/github/actions/workflow/status/pietrozullo/mcp-use/tests.yml?job=primitive-elicitation&label=Elicitation&style=flat)](https://github.com/pietrozullo/mcp-use/actions/workflows/tests.yml) [![Authentication](https://img.shields.io/github/actions/workflow/status/pietrozullo/mcp-use/tests.yml?job=primitive-authentication&label=Authentication&style=flat)](https://github.com/pietrozullo/mcp-use/actions/workflows/tests.yml) |
4949
| **Transports** | [![Stdio](https://img.shields.io/github/actions/workflow/status/pietrozullo/mcp-use/tests.yml?job=transport-stdio&label=Stdio&style=flat)](https://github.com/pietrozullo/mcp-use/actions/workflows/tests.yml) [![SSE](https://img.shields.io/github/actions/workflow/status/pietrozullo/mcp-use/tests.yml?job=transport-sse&label=SSE&style=flat)](https://github.com/pietrozullo/mcp-use/actions/workflows/tests.yml) [![Streamable HTTP](https://img.shields.io/github/actions/workflow/status/pietrozullo/mcp-use/tests.yml?job=transport-streamableHttp&label=Streamable%20HTTP&style=flat)](https://github.com/pietrozullo/mcp-use/actions/workflows/tests.yml) |
5050

5151
## Features

0 commit comments

Comments
 (0)