Skip to content

Commit 10f83b0

Browse files
authored
Upgrade xmcp to the latest (0.6.4) (#13)
* Upgrade xmcp to the latest (0.6.4) * fix the issue
1 parent c7c8cae commit 10f83b0

5 files changed

Lines changed: 551 additions & 2628 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
},
1616
"dependencies": {
1717
"dockerode": "^4.0.7",
18-
"xmcp": "^0.1.7",
19-
"zod": "3.24.4"
18+
"xmcp": "0.6.4",
19+
"zod": "^4"
2020
},
2121
"devDependencies": {
2222
"@types/dockerode": "^3.3.43",

src/tools/localstack-deployer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const schema = {
3838
"The required path to the project directory containing your infrastructure-as-code files."
3939
),
4040
variables: z
41-
.record(z.string())
41+
.record(z.string(), z.string())
4242
.optional()
4343
.describe(
4444
"Key-value pairs for parameterization. Used for Terraform variables (-var) or CDK context (-c)."

src/tools/localstack-management.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export const schema = {
2121
"The LocalStack stack/service to manage. Use 'aws' for the default AWS emulator, or 'snowflake' for the Snowflake emulator."
2222
),
2323
envVars: z
24-
.record(z.string())
24+
.record(z.string(), z.string())
2525
.optional()
2626
.describe("Additional environment variables as key-value pairs (only for start action)"),
2727
};

xmcp.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ import { type XmcpConfig } from "xmcp";
22

33
const config: XmcpConfig = {
44
stdio: true,
5+
paths: {
6+
prompts: false,
7+
resources: false,
8+
},
9+
typescript: {
10+
skipTypeCheck: true,
11+
},
512
};
613

714
export default config;

0 commit comments

Comments
 (0)