Skip to content

feat(http): add HTTP_PORT and HTTP_MCP_ENDPOINT configuration options#92

Merged
mborne merged 3 commits into
masterfrom
91-http-config
May 2, 2026
Merged

feat(http): add HTTP_PORT and HTTP_MCP_ENDPOINT configuration options#92
mborne merged 3 commits into
masterfrom
91-http-config

Conversation

@mborne
Copy link
Copy Markdown
Contributor

@mborne mborne commented Apr 29, 2026

feat(config): add HTTP_PORT and HTTP_MCP_ENDPOINT configuration options (closes #91)

Summary

Adds two new environment variables to customize the HTTP server configuration, and clarifies the default value of HTTP_HOST.

Changes

index.ts

  • Replaces the static TRANSPORTS dictionary with a dynamic buildTransport function that reads environment variables.
  • Adds support for HTTP_PORT (default: 3000) to configure the listening port.
  • Adds support for HTTP_MCP_ENDPOINT (default: /mcp) to configure the MCP endpoint path
  • The default value of HTTP_HOST is now explicitly 127.0.0.1 (no behavior change).

docker-compose.yaml

  • Passes the HTTP_MCP_ENDPOINT variable to the container (with default /mcp).
  • Replaces APP_PORT with HTTP_PORT in the port mapping for consistency with the new environment variables.

README.md

  • Documents the new HTTP_PORT and HTTP_MCP_ENDPOINT entries in the configuration table.
  • Clarifies the default value of HTTP_HOST ("127.0.0.1" instead of mcp-framework default).
  • Fixes indentation in the table of contents.

New environment variables

Variable Description Default
HTTP_PORT MCP listening port 3000
HTTP_MCP_ENDPOINT MCP HTTP endpoint path /mcp

@mborne mborne changed the title feat(config): add HTTP_PORT and HTTP_ENDPOINT configuration options (closes #91) feat(http): add HTTP_PORT and HTTP_ENDPOINT configuration options Apr 29, 2026
@mborne mborne changed the title feat(http): add HTTP_PORT and HTTP_ENDPOINT configuration options feat(http): add HTTP_PORT and HTTP_MCP_ENDPOINT configuration options Apr 29, 2026
@mborne mborne mentioned this pull request Apr 30, 2026
Closed
3 tasks
@esgn esgn assigned mborne and unassigned mborne and esgn May 1, 2026
@mborne mborne merged commit 7cce8d3 into master May 2, 2026
3 checks passed
@mborne mborne deleted the 91-http-config branch May 2, 2026 19:48
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.

Improve options for HTTP exposition to allow domain sharing

2 participants