Skip to content

Commit 33e03f4

Browse files
committed
Merge branch 'main' into fix/skip_validate_if_error
2 parents c20a47a + 600c623 commit 33e03f4

30 files changed

+1150
-97
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ Client-side: Handle elicitation requests
930930
```typescript
931931
// This is a placeholder - implement based on your UI framework
932932
async function getInputFromUser(message: string, schema: any): Promise<{
933-
action: "accept" | "decline" | "cancel";
933+
action: "accept" | "reject" | "cancel";
934934
data?: Record<string, any>;
935935
}> {
936936
// This should be implemented depending on the app

eslint.config.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,12 @@ export default tseslint.config(
1515
{ "argsIgnorePattern": "^_" }
1616
]
1717
}
18+
},
19+
{
20+
files: ["src/client/**/*.ts", "src/server/**/*.ts"],
21+
ignores: ["**/*.test.ts"],
22+
rules: {
23+
"no-console": "error"
24+
}
1825
}
1926
);

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@modelcontextprotocol/sdk",
3-
"version": "1.12.3",
3+
"version": "1.13.1",
44
"description": "Model Context Protocol implementation for TypeScript",
55
"license": "MIT",
66
"author": "Anthropic, PBC (https://anthropic.com)",
@@ -36,8 +36,11 @@
3636
],
3737
"scripts": {
3838
"build": "npm run build:esm && npm run build:cjs",
39-
"build:esm": "tsc -p tsconfig.prod.json && echo '{\"type\": \"module\"}' > dist/esm/package.json",
40-
"build:cjs": "tsc -p tsconfig.cjs.json && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json",
39+
"build:esm": "mkdir -p dist/esm && echo '{\"type\": \"module\"}' > dist/esm/package.json && tsc -p tsconfig.prod.json",
40+
"build:esm:w": "npm run build:esm -- -w",
41+
"build:cjs": "mkdir -p dist/cjs && echo '{\"type\": \"commonjs\"}' > dist/cjs/package.json && tsc -p tsconfig.cjs.json",
42+
"build:cjs:w": "npm run build:cjs -- -w",
43+
"examples:simple-server:w": "tsx --watch src/examples/server/simpleStreamableHttp.ts --oauth",
4144
"prepack": "npm run build:esm && npm run build:cjs",
4245
"lint": "eslint src/",
4346
"test": "jest",

0 commit comments

Comments
 (0)