You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add OAuth 2.1 authentication for secure connections
- Implement JWT token validation and management
- Create permission-based method access control
- Add automatic token refresh capabilities
- Update HTTP transport with authentication integration
- Create HTTP server with authentication middleware
- Add examples for authenticated MCP servers and clients
- Update documentation to reflect authentication features
- Bump version to 0.2.0 for authentication release
-**JWT Implementation**: Secure token validation and management
217
+
-**Automatic Token Refresh**: Seamless handling of token expiration
218
+
-**Scope-based Authorization**: Fine-grained access control for MCP methods
219
+
220
+
### Permission Management
221
+
222
+
-**Method-level Permissions**: Control access to individual MCP methods
223
+
-**Scope Requirements**: Define required scopes for each method
224
+
-**Integration with OAuth**: Leverage OAuth scopes for authorization decisions
225
+
-**Middleware Architecture**: Apply permissions consistently across all requests
226
+
139
227
## Advanced Usage
140
228
141
229
See the [wiki](https://github.com/nagstler/mcp_on_ruby/wiki) for advanced usage, including:
142
230
143
231
- Creating complex tool hierarchies
144
-
- Implementing custom authentication
232
+
- Implementing custom OAuth providers
233
+
- Configuring method-level permissions
234
+
- Token management and refresh strategies
145
235
- Streaming responses
146
236
- Working with resources and prompts
147
237
- File system integration with roots
148
238
239
+
Check out the `/examples` directory for complete working examples:
240
+
241
+
-**Simple Server** - Basic MCP server implementation
242
+
-**Authentication** - OAuth 2.1 integration example
243
+
-**Rails Integration** - Using MCP with Rails
244
+
-**Streaming** - Real-time bidirectional communication
245
+
149
246
## Development
150
247
151
248
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
0 commit comments