Skip to content

Deploy scripts - #49

Merged
kpodemski merged 6 commits into
PrestaShop:mainfrom
kpodemski:devdocs-mcp-cleaning
Aug 4, 2026
Merged

Deploy scripts#49
kpodemski merged 6 commits into
PrestaShop:mainfrom
kpodemski:devdocs-mcp-cleaning

Conversation

@kpodemski

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread mcp-server/src/server.ts
DOCS_BASE_URL: process.env.DOCS_BASE_URL ?? "https://devdocs.prestashop-project.org/",
DOCS_VERSION: process.env.DOCS_VERSION ?? "9",
ALGOLIA_APP_ID: process.env.ALGOLIA_APP_ID ?? "79DO4UR9Y5",
ALGOLIA_API_KEY: process.env.ALGOLIA_API_KEY ?? "352524fc37137a45610faa44bcc1a47c",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This git repo is public, this PR is also public, this API key should considered as leaked and should be revoked as quickly as possible.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't worry, both keys are public.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be more precise: It's a search-only key that's always public.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a comment to the code explaining this context. This can also help when secret-detection is added to the security measures, having an explicit exception here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point, there's a docblock above now

@arthurzenika

Copy link
Copy Markdown

Can you split into multiple commits since there are multiple changes in a single commit which indicates little information about the changes made ?

@arthurzenika

Copy link
Copy Markdown

Why is GCP Cloud Run the target deployment technology ?

Comment thread mcp-server/.gitignore
@kpodemski
kpodemski force-pushed the devdocs-mcp-cleaning branch 2 times, most recently from 67fde11 to 9865436 Compare August 3, 2026 12:56
kpodemski and others added 3 commits August 3, 2026 15:01
The MCP core (src/index.ts) is unchanged; src/server.ts is a ~70-line
node:http adapter around it and becomes the only entry point. Drops the
wrangler and @cloudflare/workers-types dependencies (lockfile shrinks by
~1600 lines), switches tsconfig to @types/node, and removes wrangler.jsonc.

Note: bin/mcp-local.sh still points at wrangler until the follow-up commit
in this sequence.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
bin/mcp-local.sh builds and starts dist/server.mjs instead of wrangler dev;
shutdown still guarantees both ports are freed. Root README wording updated
to match. npm run mcp:local / mcp:test unchanged for users.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@kpodemski
kpodemski force-pushed the devdocs-mcp-cleaning branch from 9865436 to 1036817 Compare August 3, 2026 13:01
Comment thread mcp-server/src/server.ts Outdated
ALGOLIA_INDEX: process.env.ALGOLIA_INDEX ?? "prestashop",
};

// Cloud Run injects PORT; default to its convention locally too.

@arthurzenika arthurzenika Aug 3, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A left over Cloud Run mention which can be removed

Comment thread mcp-server/Dockerfile Outdated
# Container image for the devdocs MCP server. Host-agnostic: the same image runs on
# Kubernetes, Cloud Run, or anything else that can start a container.

FROM node:22-slim AS build

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Node 24 is the most recent current LTS version. Is there a reason why Node 22 is being used ?

Comment thread mcp-server/src/server.ts Outdated
* translates Node's http primitives to Request/Response and back. It is the sole
* entry point for local development and for the container image alike.
*
* The `cf:` cache hints index.ts passes to fetch() are a leftover of the original

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this comment still necessary ? I don't see any cf or cache in the server.ts file ...

kpodemski and others added 3 commits August 3, 2026 15:24
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@kpodemski
kpodemski merged commit c3ea47c into PrestaShop:main Aug 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants