Skip to content

Fix Glama MCP startup#133

Merged
simongonzalezdc merged 1 commit into
mainfrom
fix-glama-mcp-startup
Jun 4, 2026
Merged

Fix Glama MCP startup#133
simongonzalezdc merged 1 commit into
mainfrom
fix-glama-mcp-startup

Conversation

@simongonzalezdc

Copy link
Copy Markdown
Member

Summary\n- start the Glama Docker image through the package's real dist entrypoint instead of the npm bin symlink\n- make the ESM entrypoint guard symlink-safe so npm/npx invocations actually start the server\n\n## Verification\n- pnpm build\n- pnpm test\n- MCP client handshake against node dist/index.js returned 24 tools

@simongonzalezdc simongonzalezdc merged commit bba6288 into main Jun 4, 2026
3 checks passed
@simongonzalezdc simongonzalezdc deleted the fix-glama-mcp-startup branch June 4, 2026 01:28

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b57c824438

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/index.ts
}

try {
return import.meta.url === pathToFileURL(realpathSync(entrypoint)).href;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve symlinked entrypoints when Node does

When the binary is invoked through npm's symlink with NODE_OPTIONS=--preserve-symlinks-main or node --preserve-symlinks-main, Node keeps import.meta.url pointed at the symlink while realpathSync(entrypoint) resolves it to dist/index.js, so this comparison returns false and main() never runs. This is a regression from the previous raw-path comparison for environments that preserve main-module symlinks; compare both the raw and realpath URLs, or realpath both sides, so the MCP server/CLI still starts in that mode.

Useful? React with 👍 / 👎.

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.

1 participant