Feat/mcp oauth (#4837)

* feat: implement OAuth client provider and lockfile management

* feat: implement OAuth callback server and refactor authentication flow

* fix(McpService): restrict command handling to 'npx' for improved clarity

* refactor: make callbackPort optional in OAuthProviderOptions and clean up MCPService

* refactor: restructure OAuth handling by creating separate callback and provider classes, and remove unused utility functions
This commit is contained in:
LiuVaayne
2025-04-16 22:07:32 +08:00
committed by GitHub
parent 5062d56ea6
commit e97dfb4a4e
6 changed files with 425 additions and 14 deletions
+4
View File
@@ -79,3 +79,7 @@ export function getFilesDir() {
export function getConfigDir() {
return path.join(os.homedir(), '.cherrystudio', 'config')
}
export function getAppConfigDir(name: string) {
return path.join(getConfigDir(), name)
}