Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 0 additions & 44 deletions .github/workflows/deploy-vtex.yml

This file was deleted.

108 changes: 95 additions & 13 deletions bun.lock

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions deploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,15 @@
"shared/**"
]
},
"vtex": {
"site": "vtex",
"entrypoint": "./dist/server/main.js",
"platformName": "kubernetes-bun",
"watch": [
"vtex/**",
"shared/**"
]
},
"perplexity": {
"site": "perplexity",
"entrypoint": "./dist/server/main.js",
Expand Down
2 changes: 1 addition & 1 deletion vtex/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"friendlyName": "VTEX Commerce APIs",
"connection": {
"type": "HTTP",
"url": "https://vtex-mcp.decocms.com/mcp",
"url": "https://sites-vtex.decocache.com/mcp",
"configSchema": {
"type": "object",
"properties": {
Expand Down
703 changes: 703 additions & 0 deletions vtex/bun.lock

Large diffs are not rendered by default.

28 changes: 17 additions & 11 deletions vtex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,32 @@
"private": true,
"type": "module",
"scripts": {
"dev": "bunx wrangler dev",
"dev": "bun run --hot server/main.ts",
"configure": "deco configure",
"gen": "deco gen --output=shared/deco.gen.ts",
"deploy": "npm run build && deco deploy ./dist/server",
"check": "tsc --noEmit",
"test": "bun test",
"build": "bunx wrangler deploy --dry-run --outdir=dist",
"deploy": "bunx wrangler deploy"
"build:server": "NODE_ENV=production bun build server/main.ts --target=bun --outfile=dist/server/main.js",
"build": "bun run build:server",
"openapi": "openapi-ts",
"generate": "bun run download-schemas && bun run openapi",
"download-schemas": "bun run scripts/download-schemas.ts",
"test": "bun test"
},
"dependencies": {
"@decocms/bindings": "^1.4.0",
"@decocms/runtime": "^1.6.2",
"@modelcontextprotocol/sdk": "^1.27.1",
"@decocms/bindings": "^1.3.1",
"@decocms/runtime": "1.3.1",
"zod": "^4.0.0"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20251014.0",
"@cloudflare/workers-types": "^4.20260206.0",
"@decocms/mcps-shared": "1.0.0",
"@hey-api/client-fetch": "^0.8.0",
"@hey-api/openapi-ts": "0.92.4",
"@modelcontextprotocol/sdk": "1.20.2",
"@types/bun": "^1.2.14",
"@types/node": "^22.0.0",
"typescript": "^5.7.2",
"wrangler": "^4.28.0"
"deco-cli": "^0.28.0",
"typescript": "^5.7.2"
},
"engines": {
"node": ">=22.0.0"
Expand Down
12 changes: 6 additions & 6 deletions vtex/server/main.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
/**
* VTEX Commerce MCP — Cloudflare Workers entrypoint
* VTEX Commerce MCP
*
* MCP for VTEX Commerce APIs - Catalog, Orders, and Logistics/Inventory.
* Auth is per-connection static config (accountName/appKey/appToken) supplied
* via the configSchema in app.json — no OAuth.
*/
import { serve } from "@decocms/mcps-shared/serve";
import { withRuntime } from "@decocms/runtime";
import { tools } from "./tools/index.ts";
import { type Env, StateSchema } from "./types/env.ts";
import packageJson from "../package.json" with { type: "json" };

console.log(`VTEX Commerce MCP v${packageJson.version}`);

export type { Env };
export { StateSchema };
Expand All @@ -19,6 +21,4 @@ const runtime = withRuntime<Env, typeof StateSchema>({
tools,
});

export default {
fetch: runtime.fetch,
};
serve(runtime.fetch);
Loading
Loading