Skip to content

Commit 80cf222

Browse files
authored
fix: update ui/message to pass an array (#167)
1 parent 36a11ab commit 80cf222

14 files changed

Lines changed: 1620 additions & 294 deletions

.eslintignore

Lines changed: 0 additions & 8 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 33 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
import js from '@eslint/js';
2+
import tseslint from 'typescript-eslint';
3+
import react from 'eslint-plugin-react';
4+
import prettier from 'eslint-config-prettier';
5+
import globals from 'globals';
6+
7+
export default tseslint.config(
8+
// Global ignores (replaces .eslintignore)
9+
{
10+
ignores: [
11+
'**/node_modules/**',
12+
'**/dist/**',
13+
'**/coverage/**',
14+
'**/*.log',
15+
'**/*.js',
16+
'**/*.mjs',
17+
'**/*.cjs',
18+
'sdks/typescript/client/src/remote-dom/iframe-bundle.ts',
19+
'examples/**',
20+
'docs/**',
21+
],
22+
},
23+
24+
// Base configs
25+
js.configs.recommended,
26+
...tseslint.configs.recommended,
27+
28+
// React config
29+
{
30+
files: ['**/*.tsx', '**/*.jsx'],
31+
...react.configs.flat.recommended,
32+
...react.configs.flat['jsx-runtime'],
33+
settings: {
34+
react: {
35+
version: 'detect',
36+
},
37+
},
38+
},
39+
40+
// TypeScript and general config
41+
{
42+
files: ['**/*.ts', '**/*.tsx'],
43+
languageOptions: {
44+
ecmaVersion: 'latest',
45+
sourceType: 'module',
46+
globals: {
47+
...globals.node,
48+
...globals.browser,
49+
...globals.es2021,
50+
...globals.jest,
51+
},
52+
parserOptions: {
53+
ecmaFeatures: {
54+
jsx: true,
55+
},
56+
},
57+
},
58+
rules: {
59+
'react/prop-types': 'off',
60+
'@typescript-eslint/no-unused-vars': [
61+
'error',
62+
{
63+
argsIgnorePattern: '^_',
64+
varsIgnorePattern: '^_',
65+
caughtErrorsIgnorePattern: '^_',
66+
},
67+
],
68+
},
69+
},
70+
71+
// Prettier must be last to override other formatting rules
72+
prettier
73+
);

examples/mcp-apps-demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"dependencies": {
1010
"@mcp-ui/server": "workspace:*",
11-
"@modelcontextprotocol/ext-apps": "https://github.com/modelcontextprotocol/ext-apps/archive/192d29f2ba122d0ad22e4456b9fd6b1e0fa7110f.tar.gz",
11+
"@modelcontextprotocol/ext-apps": "^0.2.2",
1212
"@modelcontextprotocol/sdk": "^1.22.0",
1313
"cors": "^2.8.5",
1414
"express": "^4.18.2",

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"test:ruby": "cd sdks/ruby && bundle install && bundle exec rake spec",
1212
"test:watch": "vitest watch",
1313
"coverage": "vitest run --coverage",
14-
"lint": "eslint . --ext .ts,.tsx,.js,.jsx",
15-
"lint:fix": "eslint . --ext .ts,.tsx,.js,.jsx --fix",
14+
"lint": "eslint .",
15+
"lint:fix": "eslint . --fix",
1616
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
1717
"version:patch": "echo \"Versioning with Changesets, then run pnpm install\" && pnpm changeset version && pnpm install --lockfile-only",
1818
"publish-packages": "pnpm build && pnpm changeset publish",
@@ -21,6 +21,7 @@
2121
"docs:preview": "vitepress preview docs/src"
2222
},
2323
"devDependencies": {
24+
"@eslint/js": "^9.25.0",
2425
"@semantic-release/changelog": "^6.0.3",
2526
"@semantic-release/commit-analyzer": "^13.0.1",
2627
"@semantic-release/exec": "^7.1.0",
@@ -44,6 +45,7 @@
4445
"eslint-plugin-prettier": "^5.5.4",
4546
"eslint-plugin-react": "^7.37.5",
4647
"eslint-plugin-react-hooks": "^7.0.1",
48+
"globals": "^16.0.0",
4749
"husky": "^9.1.7",
4850
"jsdom": "^25.0.1",
4951
"prettier": "^3.7.4",
@@ -52,6 +54,7 @@
5254
"ts-jest": "^29.1.1",
5355
"ts-node": "^10.9.2",
5456
"typescript": "^5.9.3",
57+
"typescript-eslint": "^8.30.1",
5558
"vite": "^7.2.7",
5659
"vite-plugin-dts": "^4.5.4",
5760
"vitepress": "^1.6.4",

0 commit comments

Comments
 (0)