Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Aligns Task Wizard’s OAuth scope strings with the Entra-style Resource/ScopeName pattern (e.g., Tasks.Read) so MCP and server-side scope constants match the scopes clients request.
Changes:
- Updated MCP server
ScopesSupportedto useUser.Read,Labels.*, andTasks.*scope names. - Renamed API server
ApiTokenScopeconstants fromtask:read-style toTasks.Read-style. - Updated API token feature documentation to reflect the new scope naming.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
mcpserver/Program.cs |
Updates advertised OAuth scopes for the MCP server to Entra-style scope names. |
apiserver/internal/models/user.go |
Renames API token scope constants to *.Read/*.Write naming. |
.agents/features/api-tokens.md |
Updates documented scope names (but currently includes an unimplemented scope). |
|
|
||
| - Create named API tokens with an expiration date | ||
| - Scoped permissions: task:read, task:write, label:read, label:write, dav:read, dav:write, user:read, user:write, token:write | ||
| - Scoped permissions: Tasks.Read, Tasks.Write, Labels.Read, Labels.Write, Dav.Read, Dav.Write, User.Read, User.Write, Tokens.Write |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.