SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
feat(global): add mcp_url to global config (#11085)
Pandey7e7d7ab5704e
diff --git a/conf/example.yaml b/conf/example.yamlindex c6e8ec99ab..b35e05947f 100644--- a/conf/example.yaml+++ b/conf/example.yaml@@ -11,6 +11,8 @@ global:external_url: <unset># the url where the SigNoz backend receives telemetry data (traces, metrics, logs) from instrumented applications.ingestion_url: <unset>+ # the url of the SigNoz MCP server. when unset, the MCP settings page is hidden in the frontend.+ # mcp_url: <unset>##################### Version #####################version:diff --git a/docs/api/openapi.yml b/docs/api/openapi.ymlindex d23bd98a6e..75a1444c4a 100644--- a/docs/api/openapi.yml+++ b/docs/api/openapi.yml@@ -2369,6 +2369,13 @@ components:$ref: '#/components/schemas/GlobaltypesIdentNConfig'ingestion_url:type: string+ mcp_url:+ nullable: true+ type: string+ required:+ - external_url+ - ingestion_url+ - mcp_urltype: objectGlobaltypesIdentNConfig:properties:diff --git a/frontend/src/api/generated/services/sigNoz.schemas.ts b/frontend/src/api/generated/services/sigNoz.schemas.tsindex 82e2abd76d..4c7fa4ad71 100644--- a/frontend/src/api/generated/services/sigNoz.schemas.ts+++ b/frontend/src/api/generated/services/sigNoz.schemas.ts@@ -3125,12 +3125,17 @@ export interface GlobaltypesConfigDTO {/*** @type string*/- external_url?: string;+ external_url: string;identN?: GlobaltypesIdentNConfigDTO;/*** @type string*/- ingestion_url?: string;+ ingestion_url: string;+ /**+ * @type string+ * @nullable true+ */+ mcp_url: string | null;}export interface GlobaltypesIdentNConfigDTO {diff --git a/pkg/global/config.go b/pkg/global/config.goindex f27d39d9c2..5579821cfa 100644--- a/pkg/global/config.go+++ b/pkg/global/config.go@@ -17,6 +17,7 @@ var (type Config struct {ExternalURL *url.URL `mapstructure:"external_url"`IngestionURL *url.URL `mapstructure:"ingestion_url"`+ MCPURL *url.URL `mapstructure:"mcp_url"`}func NewConfigFactory() factory.ConfigFactory {diff --git a/pkg/global/signozglobal/provider.go b/pkg/global/signozglobal/provider.goindex 50382a66c9..5a6401585d 100644--- a/pkg/global/signozglobal/provider.go+++ b/pkg/global/signozglobal/provider.go@@ -31,8 +31,14 @@ func newProvider(_ context.Context, providerSettings factory.ProviderSettings, c}func (provider *provider) GetConfig(context.Context) *globaltypes.Config {+ var mcpURL *string+ if provider.config.MCPURL != nil {+ s := provider.config.MCPURL.String()+ mcpURL = &s+ }+return globaltypes.NewConfig(- globaltypes.NewEndpoint(provider.config.ExternalURL.String(), provider.config.IngestionURL.String()),+ globaltypes.NewEndpoint(provider.config.ExternalURL.String(), provider.config.IngestionURL.String(), mcpURL),globaltypes.NewIdentNConfig(globaltypes.TokenizerConfig{Enabled: provider.identNConfig.Tokenizer.Enabled},globaltypes.APIKeyConfig{Enabled: provider.identNConfig.APIKeyConfig.Enabled},diff --git a/pkg/types/globaltypes/endpoint.go b/pkg/types/globaltypes/endpoint.goindex ed3b139481..9a6f47b47c 100644--- a/pkg/types/globaltypes/endpoint.go+++ b/pkg/types/globaltypes/endpoint.go@@ -1,13 +1,15 @@package globaltypestype Endpoint struct {- ExternalURL string `json:"external_url"`- IngestionURL string `json:"ingestion_url"`+ ExternalURL string `json:"external_url" required:"true"`+ IngestionURL string `json:"ingestion_url" required:"true"`+ MCPURL *string `json:"mcp_url" required:"true" nullable:"true"`}-func NewEndpoint(externalURL, ingestionURL string) Endpoint {+func NewEndpoint(externalURL, ingestionURL string, mcpURL *string) Endpoint {return Endpoint{ExternalURL: externalURL,IngestionURL: ingestionURL,+ MCPURL: mcpURL,}}