{"record":{"id":"4459c5147725ca54","repo":"googleapis/mcp-toolbox","slug":"introspectionendpoint-is-not-allowed-when-mcpen-4459c5","errorCode":null,"errorMessage":"`introspectionEndpoint` is not allowed when `mcpEnabled` is false","messagePattern":"`introspectionEndpoint` is not allowed when `mcpEnabled` is false","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/server/config.go","lineNumber":419,"sourceCode":"\t\t\treturn nil, fmt.Errorf(\"unable to parse as %s: %w\", name, err)\n\t\t}\n\t\tif !actual.McpEnabled {\n\t\t\tif actual.Audience != \"\" {\n\t\t\t\treturn nil, fmt.Errorf(\"`audience` is not allowed when `mcpEnabled` is false\")\n\t\t\t}\n\t\t\tif len(actual.ScopesRequired) > 0 {\n\t\t\t\treturn nil, fmt.Errorf(\"`scopesRequired` is not allowed when `mcpEnabled` is false\")\n\t\t\t}\n\t\t}\n\t\treturn actual, nil\n\tcase generic.AuthServiceType:\n\t\tactual := generic.Config{Name: name}\n\t\tif err := dec.DecodeContext(ctx, &actual); err != nil {\n\t\t\treturn nil, fmt.Errorf(\"unable to parse as %s: %w\", name, err)\n\t\t}\n\t\tif !actual.McpEnabled {\n\t\t\tif actual.IntrospectionEndpoint != \"\" {\n\t\t\t\treturn nil, fmt.Errorf(\"`introspectionEndpoint` is not allowed when `mcpEnabled` is false\")\n\t\t\t}\n\t\t\tif actual.IntrospectionMethod != \"\" {\n\t\t\t\treturn nil, fmt.Errorf(\"`introspectionMethod` is not allowed when `mcpEnabled` is false\")\n\t\t\t}\n\t\t\tif actual.IntrospectionParamName != \"\" {\n\t\t\t\treturn nil, fmt.Errorf(\"`introspectionParamName` is not allowed when `mcpEnabled` is false\")\n\t\t\t}\n\t\t\tif len(actual.ScopesRequired) > 0 {\n\t\t\t\treturn nil, fmt.Errorf(\"`scopesRequired` is not allowed when `mcpEnabled` is false\")\n\t\t\t}\n\t\t}\n\t\treturn actual, nil\n\tdefault:\n\t\treturn nil, fmt.Errorf(\"%s is not a valid type of auth service\", resourceType)\n\t}\n}\n\nfunc UnmarshalYAMLEmbeddingModelConfig(ctx context.Context, name string, r map[string]any) (embeddingmodels.EmbeddingModelConfig, error) {","sourceCodeStart":401,"sourceCodeEnd":437,"githubUrl":"https://github.com/googleapis/mcp-toolbox/blob/8cc6e09de2ad7b8bffc77751799585a1401a48eb/internal/server/config.go#L401-L437","documentation":"Error \"`introspectionEndpoint` is not allowed when `mcpEnabled` is false\" thrown in googleapis/mcp-toolbox.","triggerScenarios":"Thrown at internal/server/config.go:419 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8cc6e09de2ad7b8bffc77751799585a1401a48eb","analyzedAt":"2026-09-05T01:10:36.887Z","contentChangedAt":"2026-09-05T01:10:36.887Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}