Skip to content

Commit 3cd6aa8

Browse files
committed
feat(api): accept enableMcpAndroid in create-project request + OpenAPI
Add enableMcpAndroid to the create-project schema, contract type, and service request mapping, and regenerate the OpenAPI spec + typed paths. REF: issue-436
1 parent 8ef4167 commit 3cd6aa8

5 files changed

Lines changed: 7 additions & 0 deletions

File tree

packages/api/src/api/contracts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,7 @@ export type CreateProjectRequest = {
476476
readonly dockerNetworkMode?: string | undefined
477477
readonly dockerSharedNetworkName?: string | undefined
478478
readonly enableMcpPlaywright?: boolean | undefined
479+
readonly enableMcpAndroid?: boolean | undefined
479480
readonly outDir?: string | undefined
480481
readonly gitTokenLabel?: string | undefined
481482
readonly skipGithubAuth?: boolean | undefined

packages/api/src/api/schema.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export const CreateProjectRequestSchema = Schema.Struct({
4343
dockerNetworkMode: OptionalString,
4444
dockerSharedNetworkName: OptionalString,
4545
enableMcpPlaywright: OptionalBoolean,
46+
enableMcpAndroid: OptionalBoolean,
4647
outDir: OptionalString,
4748
gitTokenLabel: OptionalString,
4849
skipGithubAuth: OptionalBoolean,

packages/api/src/services/projects.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,7 @@ const toCreateRawOptions = (request: CreateProjectRequest): RawOptions => ({
471471
? {}
472472
: { dockerSharedNetworkName: request.dockerSharedNetworkName }),
473473
...(request.enableMcpPlaywright === undefined ? {} : { enableMcpPlaywright: request.enableMcpPlaywright }),
474+
...(request.enableMcpAndroid === undefined ? {} : { enableMcpAndroid: request.enableMcpAndroid }),
474475
...(request.outDir === undefined ? {} : { outDir: request.outDir }),
475476
...(request.gitTokenLabel === undefined ? {} : { gitTokenLabel: request.gitTokenLabel }),
476477
...(request.skipGithubAuth === undefined ? {} : { skipGithubAuth: request.skipGithubAuth }),

packages/openapi/openapi.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,6 +1081,9 @@
10811081
"enableMcpPlaywright": {
10821082
"type": "boolean"
10831083
},
1084+
"enableMcpAndroid": {
1085+
"type": "boolean"
1086+
},
10841087
"outDir": {
10851088
"type": "string"
10861089
},

packages/openapi/src/openapi-paths.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,6 +1188,7 @@ export interface operations {
11881188
dockerNetworkMode?: string;
11891189
dockerSharedNetworkName?: string;
11901190
enableMcpPlaywright?: boolean;
1191+
enableMcpAndroid?: boolean;
11911192
outDir?: string;
11921193
gitTokenLabel?: string;
11931194
skipGithubAuth?: boolean;

0 commit comments

Comments
 (0)