@ui5/mcp-server 0.2.5 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +75 -59
- package/lib/tools/create_ui5_app/create_ui5_app.js +9 -7
- package/lib/tools/create_ui5_app/create_ui5_app.js.map +1 -1
- package/lib/tools/create_ui5_app/templateProcessor.d.ts +2 -0
- package/lib/tools/create_ui5_app/templateProcessor.js.map +1 -1
- package/npm-shrinkwrap.json +362 -582
- package/package.json +10 -10
- package/resources/template-js/webapp/manifest.json +5 -1
- package/resources/template-ts/webapp/manifest.json +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.2.6](https://github.com/UI5/mcp-server/compare/v0.2.5...v0.2.6) (2026-02-17)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* Add UI5_MCP_SERVER_ALLOWED_DOMAINS configuration option ([#235](https://github.com/UI5/mcp-server/issues/235)) ([b551473](https://github.com/UI5/mcp-server/commit/b5514733e066cb033384c573f1958d0d2f2f2da0))
|
|
9
|
+
* **ui5_create_app:** Add sourceTemplate section to manifest.json ([#231](https://github.com/UI5/mcp-server/issues/231)) ([9a22531](https://github.com/UI5/mcp-server/commit/9a2253121d6a9d7bc806309f0dcf5d5e317cfe0a))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Dependencies
|
|
13
|
+
|
|
14
|
+
* Bump @ui5/project from 4.0.9 to 4.0.10 ([35336f3](https://github.com/UI5/mcp-server/commit/35336f3525e3902db6a08bc860e9528480158e48))
|
|
15
|
+
* Bump fast-xml-parser from 5.3.5 to 5.3.6 ([60567db](https://github.com/UI5/mcp-server/commit/60567db072a3e26fd109f443e10a83d2f98f43a2))
|
|
16
|
+
|
|
3
17
|
## [0.2.5](https://github.com/UI5/mcp-server/compare/v0.2.4...v0.2.5) (2026-02-09)
|
|
4
18
|
|
|
5
19
|
|
package/README.md
CHANGED
|
@@ -23,22 +23,22 @@ The UI5 [Model Context Protocol](https://modelcontextprotocol.io/) server offers
|
|
|
23
23
|
|
|
24
24
|
## Available Tools
|
|
25
25
|
|
|
26
|
+
- `create_integration_card`: Scaffolds a new UI Integration Card.
|
|
26
27
|
- `create_ui5_app`: Scaffolds a new UI5 application based on a set of templates.
|
|
27
28
|
- `get_api_reference`: Fetches and formats UI5 API documentation.
|
|
28
29
|
- `get_guidelines`: Provides access to UI5 development best practices.
|
|
30
|
+
- `get_integration_cards_guidelines`: Provides access to UI Integration Cards development best practices.
|
|
29
31
|
- `get_project_info`: Extracts metadata and configuration from a UI5 project.
|
|
30
|
-
- `get_version_info`: Retrieves version information for the UI5 framework.
|
|
31
|
-
- `run_ui5_linter`: Integrates with [`@ui5/linter`](https://github.com/UI5/linter) to analyze and report issues in UI5 code.
|
|
32
32
|
- `get_typescript_conversion_guidelines`: Provides guidelines for converting UI5 applications and controls from JavaScript to TypeScript.
|
|
33
|
-
- `
|
|
34
|
-
- `create_integration_card`: Scaffolds a new UI Integration Card.
|
|
33
|
+
- `get_version_info`: Retrieves version information for the UI5 framework.
|
|
35
34
|
- `run_manifest_validation`: Validates the manifest against the UI5 Manifest schema.
|
|
35
|
+
- `run_ui5_linter`: Integrates with [`@ui5/linter`](https://github.com/UI5/linter) to analyze and report issues in the UI5 code.
|
|
36
36
|
|
|
37
37
|
## Requirements
|
|
38
38
|
|
|
39
39
|
- [Node.js](https://nodejs.org/) Version v20.17.0, v22.9.0 or higher
|
|
40
40
|
- [npm](https://www.npmjs.com/) Version v8.0.0 or higher
|
|
41
|
-
- An MCP client such as VS Code, Cline, or any other MCP-compatible client
|
|
41
|
+
- An MCP client, such as VS Code (GitHub Copilot), Cline, Claude Code, Codex, or any other MCP-compatible client
|
|
42
42
|
|
|
43
43
|
## Setup
|
|
44
44
|
|
|
@@ -48,82 +48,78 @@ This configuration works for most MCP clients:
|
|
|
48
48
|
|
|
49
49
|
```json
|
|
50
50
|
{
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
51
|
+
"mcpServers": {
|
|
52
|
+
"@ui5/mcp-server": {
|
|
53
|
+
"type": "stdio",
|
|
54
|
+
"command": "npx",
|
|
55
|
+
"args": [
|
|
56
|
+
"-y",
|
|
57
|
+
"@ui5/mcp-server"
|
|
58
|
+
]
|
|
59
|
+
}
|
|
60
|
+
}
|
|
60
61
|
}
|
|
61
62
|
```
|
|
62
63
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
**Custom Configuration Example:**
|
|
64
|
+
<details>
|
|
65
|
+
<summary><i>Special configuration for native Windows</i></summary>
|
|
66
|
+
On native Windows (not WSL), you might need to prefix npx with `cmd /c`:
|
|
68
67
|
|
|
69
68
|
```json
|
|
70
69
|
{
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"UI5_DATA_DIR": "/change-me/to/some/other/path",
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
70
|
+
"mcpServers": {
|
|
71
|
+
"@ui5/mcp-server": {
|
|
72
|
+
"type": "stdio",
|
|
73
|
+
"command": "cmd",
|
|
74
|
+
"args": [
|
|
75
|
+
"/c",
|
|
76
|
+
"npx -y @ui5/mcp-server"
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
}
|
|
85
80
|
}
|
|
86
81
|
```
|
|
87
|
-
|
|
88
|
-
**Configuration Options:**
|
|
89
|
-
|
|
90
|
-
* **`UI5_MCP_SERVER_ALLOWED_ODATA_DOMAINS`**:
|
|
91
|
-
* Default Value: `localhost, services.odata.org`
|
|
92
|
-
* Description: A comma-separated list of domains that are allowed to be used in the `oDataV4Url` parameter of the `create_ui5_app` tool, for example: `localhost, example.com, sub.example.com`. Set to an empty string to allow any domains.
|
|
93
|
-
For wildcard subdomains, prefix the domain with a dot: `.example.com`. This will match `www.example.com` but not `example.com`.
|
|
94
|
-
* **`UI5_MCP_SERVER_RESPONSE_NO_STRUCTURED_CONTENT`**:
|
|
95
|
-
* Description: Set to any value to disable structured content in the MCP server responses.
|
|
96
|
-
* **`UI5_MCP_SERVER_RESPONSE_NO_RESOURCES`**:
|
|
97
|
-
* Description: Set to any value to disable [resources](https://modelcontextprotocol.io/specification/2025-06-18/server/resources) in the MCP server responses. This is useful for [clients that do not support resources](https://modelcontextprotocol.io/clients), such as Cursor or the Gemini CLI.
|
|
98
|
-
* **`UI5_LOG_LVL`**:
|
|
99
|
-
* Default Value: `info`
|
|
100
|
-
* Description: Internal [log level](https://ui5.github.io/cli/stable/pages/Troubleshooting/#changing-the-log-level): `silent`, `error`, `warn`, `info`, `perf`, `verbose`, `silly`
|
|
101
|
-
* **`UI5_DATA_DIR`**:
|
|
102
|
-
* Default Value: The `.ui5` directory in the user's home directory
|
|
103
|
-
* Description: Directory where the MCP server stores its data, such as cached API references
|
|
104
|
-
|
|
82
|
+
</details>
|
|
105
83
|
|
|
106
84
|
### Specific MCP Clients
|
|
107
85
|
|
|
86
|
+
Besides the general configuration outlined above, some MCP clients offer shortcuts for installing MCP servers. Below are instructions for some popular clients, but you can also refer to your specific client's documentation for more details.
|
|
87
|
+
|
|
108
88
|
#### VS Code
|
|
109
89
|
|
|
110
|
-
|
|
90
|
+
**Preferred:** Install from the **[GitHub MCP server registry](https://github.com/mcp/UI5/mcp-server)**
|
|
111
91
|
|
|
112
|
-
|
|
92
|
+
_Alternatively you can use the VS Code CLI:_
|
|
113
93
|
|
|
114
94
|
```bash
|
|
115
95
|
# Using VS Code CLI
|
|
116
|
-
code --add-mcp '{"name":"@ui5/mcp-server","type": "stdio","command":"npx","args":["@ui5/mcp-server"]}'
|
|
96
|
+
code --add-mcp '{"name":"@ui5/mcp-server","type": "stdio","command":"npx","args":["-y", "@ui5/mcp-server"]}'
|
|
117
97
|
```
|
|
118
98
|
|
|
119
99
|
#### Cline
|
|
120
100
|
|
|
121
101
|
1. Open the Cline panel in VSCode.
|
|
122
|
-
2.
|
|
123
|
-
3.
|
|
102
|
+
2. Click on the "MCP Servers" icon at the top, next to the "plus" symbol
|
|
103
|
+
3. Change to the "Configure" tab, then click "Configure MCP servers"
|
|
104
|
+
4. In the editor that opens, insert the above [Standard Configuration for Most Clients](#standard-configuration-for-most-clients)
|
|
105
|
+
|
|
106
|
+
See [docs.cline.bot/mcp/adding-and-configuring-servers](https://docs.cline.bot/mcp/adding-and-configuring-servers) for details.
|
|
124
107
|
|
|
125
|
-
|
|
126
|
-
|
|
108
|
+
#### Claude Code
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
claude mcp add --transport stdio --scope user ui5-mcp-server -- npx -y @ui5/mcp-server
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
#### Codex
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
codex mcp add --transport stdio ui5-mcp-server -- npx -y @ui5/mcp-server
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
## Adding Rules to your Project
|
|
121
|
+
|
|
122
|
+
The following rules **guide large language models (LLMs) in using the UI5 MCP server correctly**. Add these rules to your existing global or project-specific [`AGENTS.md`](https://agents.md/) file. The exact location may vary depending on the MCP client. For example, Claude Code uses a `CLAUDE.md` file instead of `AGENTS.md`.
|
|
127
123
|
|
|
128
124
|
```markdown
|
|
129
125
|
## Guidelines for UI5
|
|
@@ -131,7 +127,26 @@ The following rules help guide the LLM to use the server correctly:
|
|
|
131
127
|
Use the `get_guidelines` tool of the UI5 MCP server to retrieve the latest coding standards and best practices for UI5 development.
|
|
132
128
|
```
|
|
133
129
|
|
|
134
|
-
|
|
130
|
+
### Configuration
|
|
131
|
+
|
|
132
|
+
The UI5 MCP server can be configured using the following environment variables. It does not accept any command-line arguments.
|
|
133
|
+
|
|
134
|
+
**Configuration Options:**
|
|
135
|
+
|
|
136
|
+
* **`UI5_MCP_SERVER_ALLOWED_DOMAINS`**:
|
|
137
|
+
* Default Value: `localhost, services.odata.org`
|
|
138
|
+
* Description: A comma-separated list of domains that are allowed to be used in various tools, for example: `localhost, example.com, sub.example.com`. Set to an empty string to allow any domains.
|
|
139
|
+
For wildcard subdomains, prefix the domain with a dot: `.example.com`. This will match `www.example.com` but not `example.com`.
|
|
140
|
+
* **`UI5_MCP_SERVER_RESPONSE_NO_STRUCTURED_CONTENT`**:
|
|
141
|
+
* Description: Set to any value to disable structured content in the MCP server responses.
|
|
142
|
+
* **`UI5_MCP_SERVER_RESPONSE_NO_RESOURCES`**:
|
|
143
|
+
* Description: Set to any value to disable [resources](https://modelcontextprotocol.io/specification/2025-06-18/server/resources) in the MCP server responses. This is useful for [clients that do not support resources](https://modelcontextprotocol.io/clients), such as Cursor or the Gemini CLI.
|
|
144
|
+
* **`UI5_LOG_LVL`**:
|
|
145
|
+
* Default Value: `info`
|
|
146
|
+
* Description: Internal [log level](https://ui5.github.io/cli/stable/pages/Troubleshooting/#changing-the-log-level): `silent`, `error`, `warn`, `info`, `perf`, `verbose`, `silly`
|
|
147
|
+
* **`UI5_DATA_DIR`**:
|
|
148
|
+
* Default Value: The `.ui5` directory in the user's home directory
|
|
149
|
+
* Description: Directory where the MCP server stores its data, such as cached API references.
|
|
135
150
|
|
|
136
151
|
## Support, Feedback, Contributing
|
|
137
152
|
|
|
@@ -140,6 +155,7 @@ This project is open to feature requests/suggestions, bug reports etc. via [GitH
|
|
|
140
155
|
You can also chat with us in the [`#tooling`](https://openui5.slack.com/archives/C0A7QFN6B) channel of the [OpenUI5 Community Slack](https://ui5-slack-invite.cfapps.eu10.hana.ondemand.com/). For public Q&A, use the [`ui5-tooling` tag on Stack Overflow](https://stackoverflow.com/questions/tagged/ui5-tooling).
|
|
141
156
|
|
|
142
157
|
## Security / Disclosure
|
|
158
|
+
|
|
143
159
|
If you find any bug that may be a security problem, please follow our instructions at [in our security policy](https://github.com/UI5/mcp-server/security/policy) on how to report it. Please do not create GitHub issues for security-related doubts or problems.
|
|
144
160
|
|
|
145
161
|
## Code of Conduct
|
|
@@ -9,7 +9,7 @@ import { processTemplates } from "./templateProcessor.js";
|
|
|
9
9
|
import ODataMetadata from "./ODataMetadata.js";
|
|
10
10
|
import { getLogger } from "@ui5/logger";
|
|
11
11
|
import { isUi5Framework } from "../../utils/ui5Framework.js";
|
|
12
|
-
import { dirExists, InvalidInputError } from "../../utils.js";
|
|
12
|
+
import { dirExists, InvalidInputError, PKG_VERSION } from "../../utils.js";
|
|
13
13
|
import isValidUrl from "./isValidUrl.js";
|
|
14
14
|
const log = getLogger("tools:create_ui5_app:create_ui5_app");
|
|
15
15
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
@@ -57,7 +57,7 @@ The minimum version for ${framework} is ${minFwkVersionToUse}.`);
|
|
|
57
57
|
if (oDataV4Url.startsWith("/")) {
|
|
58
58
|
metadataUrl = `http://localhost:4004${oDataV4Url}`;
|
|
59
59
|
}
|
|
60
|
-
const allowedDomains =
|
|
60
|
+
const allowedDomains = getAllowedDomains();
|
|
61
61
|
if (!isValidUrl(metadataUrl, allowedDomains)) {
|
|
62
62
|
let allowedDomainsNote = "";
|
|
63
63
|
if (allowedDomains.length) {
|
|
@@ -179,6 +179,7 @@ The minimum version for ${framework} is ${minFwkVersionToUse}.`);
|
|
|
179
179
|
qunitCoverageFile: semver.gte(frameworkVersion, "1.113.0") ?
|
|
180
180
|
"qunit-coverage-istanbul.js" :
|
|
181
181
|
"qunit-coverage.js",
|
|
182
|
+
mcpServerVersion: PKG_VERSION,
|
|
182
183
|
gte1_98_0: semver.gte(frameworkVersion, "1.98.0"),
|
|
183
184
|
gte1_100_0: semver.gte(frameworkVersion, "1.100.0"),
|
|
184
185
|
gte1_104_0: semver.gte(frameworkVersion, "1.104.0"),
|
|
@@ -243,12 +244,13 @@ The minimum version for ${framework} is ${minFwkVersionToUse}.`);
|
|
|
243
244
|
},
|
|
244
245
|
};
|
|
245
246
|
}
|
|
246
|
-
function
|
|
247
|
-
if ("UI5_MCP_SERVER_ALLOWED_ODATA_DOMAINS" in process.env) {
|
|
248
|
-
const inputDomainList = process.env.
|
|
247
|
+
function getAllowedDomains() {
|
|
248
|
+
if ("UI5_MCP_SERVER_ALLOWED_DOMAINS" in process.env || "UI5_MCP_SERVER_ALLOWED_ODATA_DOMAINS" in process.env) {
|
|
249
|
+
const inputDomainList = process.env.UI5_MCP_SERVER_ALLOWED_DOMAINS ??
|
|
250
|
+
process.env.UI5_MCP_SERVER_ALLOWED_ODATA_DOMAINS;
|
|
249
251
|
if (!inputDomainList?.trim()) {
|
|
250
252
|
// Empty list allows all domains
|
|
251
|
-
log.verbose("Empty value for
|
|
253
|
+
log.verbose("Empty value for UI5_MCP_SERVER_ALLOWED_DOMAINS, allowing all domains");
|
|
252
254
|
return [];
|
|
253
255
|
}
|
|
254
256
|
// Use the environment variable if set
|
|
@@ -260,7 +262,7 @@ function getAllowedOdataV4Domains() {
|
|
|
260
262
|
new URL(`https://${domain}`);
|
|
261
263
|
}
|
|
262
264
|
catch (err) {
|
|
263
|
-
throw new InvalidInputError(`Invalid domain '${domain}' in
|
|
265
|
+
throw new InvalidInputError(`Invalid domain '${domain}' in UI5_MCP_SERVER_ALLOWED_DOMAINS: ` +
|
|
264
266
|
(err instanceof Error ? err.message : String(err)));
|
|
265
267
|
}
|
|
266
268
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create_ui5_app.js","sourceRoot":"","sources":["../../../src/tools/create_ui5_app/create_ui5_app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,EAAE,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;AACtC,OAAO,EAAC,aAAa,EAAC,MAAM,KAAK,CAAC;AAClC,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AChC,GAAG,CAAC,OAAO,CAAC,sEAAsE,CAAC,CAAC;YACpF,OAAO,EAAE,CAAC;QACX,CAAC;QACD,sCAAsC;QACtC,MAAM,UAAU,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;QACnE,wCAAwC;QACxC,KAAK,MAAM,MAAM,IAAI,UAAU,EAAE,CAAC;YACjC,IAAI,CAAC;gBACJ,6EAA6E;gBAC7E,IAAI,GAAG,CAAC,WAAW,MAAM,EAAE,CAAC,CAAC;YAC9B,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACd,MAAM,IAAI,iBAAiB,CAC1B,mBAAmB,MAAM,uCAAuC;oBAChE,CAAC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAClD,CAAC;YACH,CAAC;QACF,CAAC;QACD,GAAG,CAAC,OAAO,CAAC,GAAG,UAAU,CAAC,MAAM,yCAAyC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAClG,OAAO,UAAU,CAAC;IACnB,CAAC;IACD,OAAO;QACN,gDAAgD;QAChD,WAAW;QACX,oBAAoB;KACpB,CAAC;AACH,CAAC"}
|
|
@@ -33,6 +33,8 @@ export interface TemplateVars {
|
|
|
33
33
|
defaultTheme: string;
|
|
34
34
|
/** QUnit coverage file - depends on UI5 version */
|
|
35
35
|
qunitCoverageFile: string;
|
|
36
|
+
/** Version of the MCP server, for source template metadata */
|
|
37
|
+
mcpServerVersion: string;
|
|
36
38
|
/** Flags for version-specific features */
|
|
37
39
|
gte1_98_0: boolean;
|
|
38
40
|
gte1_100_0: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templateProcessor.js","sourceRoot":"","sources":["../../../src/tools/create_ui5_app/templateProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAC9B,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"templateProcessor.js","sourceRoot":"","sources":["../../../src/tools/create_ui5_app/templateProcessor.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAC9B,OAAO,GAAG,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAC,MAAM,aAAa,CAAC;AAoEvD;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,OAAkC;IACxE,MAAM,EAAC,WAAW,EAAE,SAAS,EAAE,YAAY,EAAE,oBAAoB,EAAC,GAAG,OAAO,CAAC;IAE7E,8EAA8E;IAC9E,MAAM,aAAa,GAAG,cAAc,CAAC;IACrC,MAAM,qBAAqB,GAAG,sBAAsB,CAAC;IAErD,yBAAyB;IACzB,MAAM,aAAa,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE;QACxC,GAAG,EAAE,WAAW;KAChB,CAAC,CAAC;IACH,MAAM,cAAc,GAAG,EAAE,CAAC;IAE1B,KAAK,MAAM,IAAI,IAAI,aAAa,EAAE,CAAC;QAClC,IAAI,UAAU,GAAG,IAAI,CAAC;QAEtB,4CAA4C;QAC5C,IAAI,oBAAoB,EAAE,CAAC;YAC1B,IAAI,IAAI,CAAC,UAAU,CAAC,qBAAqB,CAAC,EAAE,CAAC;gBAC5C,IAAI,oBAAoB,CAAC,SAAS,EAAE,CAAC;oBACpC,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,aAAa,CAAC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