Skip to content

Commit 8b47cd9

Browse files
prachi-shah-harnessHarness
authored andcommitted
fix: [ML-1255]: run mcp-server in http mode (#164)
* run make format * lint error fix * remove dockerfile changes * Revert "remove dockerfile from commit" This reverts commit 71c8246. * remove dockerfile from commit * remove internalCmd and other minor changes * review comments * fix import order * fix small errors * Merge branch 'master' into ML-1255 * fix: ML-1255]: deploy mcp-server as a service * feat: run mcp-server on http
1 parent 59d90b6 commit 8b47cd9

File tree

3 files changed

+202
-183
lines changed

3 files changed

+202
-183
lines changed

cmd/harness-mcp-server/config/config.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
package config
22

3+
import "github.com/harness/harness-mcp/pkg/types/enum"
4+
35
type Config struct {
46
// Common fields for both modes
57
Version string
@@ -10,6 +12,13 @@ type Config struct {
1012
Debug bool
1113
EnableLicense bool
1214

15+
// Server configuration
16+
Transport enum.TransportType
17+
HTTP struct {
18+
Port int `envconfig:"MCP_HTTP_PORT" default:"8080"`
19+
Path string `envconfig:"MCP_HTTP_PATH" default:"/mcp"`
20+
}
21+
1322
Internal bool
1423

1524
// Only used for external mode

0 commit comments

Comments
 (0)