feat: align template URI handling across MCP demos#46
Open
Obad94 wants to merge 1 commit intoopenai:mainfrom
Open
feat: align template URI handling across MCP demos#46Obad94 wants to merge 1 commit intoopenai:mainfrom
Obad94 wants to merge 1 commit intoopenai:mainfrom
Conversation
This was referenced Oct 14, 2025
- add environment-aware asset selection for Node and Python MCP servers - expose pizzaz video widget, shared scripts, and env examples
55a8023 to
f440a2d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #17.
Testing
All scenarios were manually tested following the test plan below. These tests were performed by hand to verify functionality.
pnpm installpnpm run buildassets/populated with*-<hash>.{js,css,html}bundles; build reports the 4-char hash.pnpm run servecd pizzaz_server_node2.pnpm install3.pnpm starthttp://localhost:8000/mcpand logsGET /mcp/POST /mcp/messages..env+ ngrok.envfiles set withENVIRONMENT=production,DOMAIN=<static-origin>, optionalPORT; static server running (TS-003)DOMAIN4. Invoke widgets via ChatGPT connector?v=<hash>suffix; server respects port overrides..env+ ngrok.envupdated withENVIRONMENT=local,DOMAIN=<dev-origin>;pnpm run devrunningDOMAIN3. Start MCP server 4. Tunnel MCP port 5. Invoke widgets after editingsrc/?v=dev-*; widgets reflect live edits through ChatGPT via dev tunnel.assets/removed/renamed;.envunsetpersistent.oaistatic.com) with default port 8000.python -m venv .venv2. Activate venv 3.pip install -r pizzaz_server_python/requirements.txt4.python pizzaz_server_python/main.py/mcp; metadata matches Node server tools.pnpm start:pizzaz-pythonpip install -r solar-system_server_python/requirements.txtpython solar-system_server_python/main.py/mcpserves solar-system widget; structured response includes planet metadata.pnpm start:solar-python.envValidation.envfiles present in each server directoryENVIRONMENT,DOMAIN,PORT).ngrok http <port>2. Configure ChatGPT connector.\.venv\Scripts\activate).source,export).pizza-videovia ChatGPT/mcp-inspector.?v=<hash>.pizza-videowhile editing source.?v=dev-*; widget reflects edits.