Add OAuth-protected MCP server with generated API client packages

This commit is contained in:
Mike Cao committed 2026-09-03 16:58:47 -07:00
1 parent 26e236c95c
commit 65bf19e067
235 files changed
+33755 -3199

No files matched your search

@@ -9,7 +9,7 @@ const operation1 = defineOperation({
audience: 'public',
auth: 'bearer',
operation: {
operationId: 'deleteMeApiKeysKeyId',
operationId: 'deleteMyApiKey',
summary: 'Delete me api keys key id',
tags: ['Account'],
parameters: [
@@ -9,7 +9,7 @@ const operation1 = defineOperation({
audience: 'public',
auth: 'bearer',
operation: {
operationId: 'getMeApiKeys',
operationId: 'getMyApiKeys',
summary: 'Get me api keys',
tags: ['Account'],
responses: {
@@ -90,7 +90,7 @@ const operation2 = defineOperation({
audience: 'public',
auth: 'bearer',
operation: {
operationId: 'postMeApiKeys',
operationId: 'createMyApiKey',
summary: 'Create or update me api keys',
tags: ['Account'],
requestBody: {
+35
View File
@@ -12,6 +12,7 @@ const operation1 = defineOperation({
operationId: 'getMe',
summary: 'Get me',
tags: ['Account'],
'x-umami-oauth-scope': 'websites:read',
responses: {
'200': {
description: 'The operation completed successfully.',
@@ -50,6 +51,40 @@ const operation1 = defineOperation({
},
required: ['id', 'name'],
},
authType: {
anyOf: [
{
const: 'session',
},
{
const: 'share',
},
{
const: 'api-key',
},
{
const: 'oauth',
},
],
},
oauth: {
type: 'object',
properties: {
clientId: {
type: 'string',
},
scopes: {
type: 'array',
items: {
type: 'string',
},
},
tokenId: {
type: 'string',
},
},
required: ['clientId', 'scopes'],
},
shareToken: {
type: 'object',
properties: {
@@ -9,7 +9,7 @@ const operation1 = defineOperation({
audience: 'public',
auth: 'bearer',
operation: {
operationId: 'postMePassword',
operationId: 'updateMyPassword',
summary: 'Create or update me password',
tags: ['Account'],
requestBody: {
+1 -1
View File
@@ -9,7 +9,7 @@ const operation1 = defineOperation({
audience: 'public',
auth: 'bearer',
operation: {
operationId: 'getMeTeams',
operationId: 'getMyTeams',
summary: 'Get me teams',
tags: ['Account'],
parameters: [
@@ -9,7 +9,7 @@ const operation1 = defineOperation({
audience: 'public',
auth: 'bearer',
operation: {
operationId: 'getMeWebsites',
operationId: 'getMyWebsites',
summary: 'Get me websites',
tags: ['Account'],
parameters: [