BRAINIAC GraphQL Federation Security
Paid GraphQL Federation Security API via x402. Unpaid tool calls return 402.
사용해야 할까요
품질 및 안전성
발견 사항 (8)
- LOWgraphql-security_federation-authorization-audit에서
- LOWgraphql-security_federation-authorization-audit에서
- LOWgraphql-security_field-authorization-coverage에서
- LOWgraphql-security_field-authorization-coverage에서
- LOWgraphql-security_federation-subgraph-exposure-audit에서
- LOWgraphql-security_federation-subgraph-exposure-audit에서
- LOWgraphql-security_subgraph-complexity에서
- LOWgraphql-security_subgraph-complexity에서
도구 정의와 프로토콜 준수에 대한 자동 분석을 기반으로 합니다.
컨텍스트 비용
이는 서버의 도구가 모델의 컨텍스트에 로드될 때마다 소비되는 대략적인 토큰 수입니다. 수치가 높을수록 다른 작업에 사용할 수 있는 주의가 줄어듭니다.
설치
원클릭 설치
`claude_desktop_config.json` 파일에 다음을 추가하세요:
{
"mcpServers": {
"graphql-security": {
"url": "https://www.brainiac.software/mcp/graphql-security"
}
}
}원격 엔드포인트
https://www.brainiac.software/mcp/graphql-securitystreamable-http할 수 있는 일
도구 목록
도구 (4)
🟢graphql-security_federation-authorization-audit(subgraphs, authorizationDirectives, expected, supergraph)
Compare @authenticated, @requiresScopes, @policy, and caller-defined authorization directives across supplied subgraph SDL. Docs: https://www.brainiac.software/api/graphql-security/federation-authorization-audit Keywords: before you expose or merge a GraphQL schema, subgraphs, authorizationDirectives, expected, supergraph, audit status, audit_status, risk level, risk_level, authorization conflicts, authorization_conflicts, transitive dependency findings, transitive_dependency_findings, interface policy mismatches, interface_policy_mismatches.
입력 스키마
{
"type": "object",
"properties": {
"subgraphs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,79}$",
"description": "name, string. Required."
},
"sdl": {
"type": "string",
"minLength": 1,
"maxLength": 60000,
"description": "sdl, string, length 1 to 60000. Required."
},
"federationVersion": {
"description": "federationVersion, string. Optional.",
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._-]{0,39}$"
}
},
"required": [
"name",
"sdl"
],
"additionalProperties": false,
"description": "item, object. Required."
},
"description": "subgraphs, array. Required."
},
"authorizationDirectives": {
"description": "authorizationDirectives, array. Optional.",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[_A-Za-z][_0-9A-Za-z]{0,79}$",
"description": "name, string. Required."
},
"semantics": {
"type": "string",
"enum": [
"authenticated",
"scopes",
"policy"
],
"description": "semantics, string, one of authenticated, scopes, policy. Required."
},
"argument": {
"description": "argument, string. Optional.",
"type": "string",
"pattern": "^[_A-Za-z][_0-9A-Za-z]{0,79}$"
}
},
"required": [
"name",
"semantics"
],
"additionalProperties": false,
"description": "item, object. Required."
}
},
"expected": {
"description": "expected, array. Optional.",
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"pattern": "^[_A-Za-z][_0-9A-Za-z]{0,79}$",
"description": "name, string. Required."
},
"field": {
"description": "field, string. Optional.",
"type": "string",
"pattern": "^[_A-Za-z][_0-9A-Za-z]{0,79}$"
},
"subgraph": {
"description": "subgraph, string. Optional.",
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,79}$"
},
"authenticated": {
"description": "authenticated, boolean. Optional.",
"type": "boolean"
},
"scopes": {
"description": "scopes, array. Optional.",
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "item, string, length 1 to 200. Required."
},
"description": "item, array. Required."
}
},
"policies": {
"description": "policies, array. Optional.",
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "item, string, length 1 to 200. Required."
},
"description": "item, array. Required."
}
}
},
"required": [
"type"
],
"additionalProperties": false,
"description": "item, object. Required."
}
},
"supergraph": {
"description": "supergraph, string, length 1 to 80000. Optional.",
"type": "string",
"minLength": 1,
"maxLength": 80000
}
},
"required": [
"subgraphs"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}출력 스키마
{
"type": "object",
"properties": {
"audit_status": {
"type": "string",
"description": "audit_status. String."
},
"risk_level": {
"type": "string",
"description": "risk_level. String."
},
"authorization_conflicts": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"type": {
"type": "string",
"description": "type. String."
},
"field": {
"type": "string",
"description": "field. String."
},
"subgraphs": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "subgraphs. Array."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "authorization_conflicts. Array."
},
"transitive_dependency_findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"subgraph": {
"type": "string",
"description": "subgraph. String."
},
"type": {
"type": "string",
"description": "type. String."
},
"field": {
"type": "string",
"description": "field. String."
},
"requires": {
"type": "string",
"description": "requires. String."
},
"required_field": {
"type": "string",
"description": "required_field. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "transitive_dependency_findings. Array."
},
"interface_policy_mismatches": {
"type": "array",
"items": {
"type": "object",
"properties": {
"subgraph": {
"type": "string",
"description": "subgraph. String."
},
"interface": {
"type": "string",
"description": "interface. String."
},
"type": {
"type": "string",
"description": "type. String."
},
"field": {
"type": "string",
"description": "field. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "interface_policy_mismatches. Array."
},
"shared_field_policy_mismatches": {
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string",
"description": "type. String."
},
"field": {
"type": "string",
"description": "field. String."
},
"subgraphs": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "subgraphs. Array."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "shared_field_policy_mismatches. Array."
},
"affected_subgraphs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"subgraph": {
"type": "string",
"description": "subgraph. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "affected_subgraphs. Array."
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"severity": {
"type": "string",
"description": "severity. String."
},
"subgraph": {
"type": "string",
"description": "subgraph. String."
},
"type": {
"type": "string",
"description": "type. String."
},
"field": {
"type": "string",
"description": "field. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "findings. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢graphql-security_field-authorization-coverage(protected_directives, subgraphs)
Count object and interface fields in the supplied subgraph SDL and mark a field when its line, or its type line, contains one of the supplied directive names. Docs: https://www.brainiac.software/api/graphql-security/field-authorization-coverage Keywords: before you expose or merge a GraphQL schema, protected directives, subgraphs, authorization coverage score, authorization_coverage_score, unprotected fields percentage, unprotected_fields_percentage, Score field authorization coverage, field authorization coverage.
입력 스키마
{
"type": "object",
"properties": {
"protected_directives": {
"type": "array",
"items": {
"type": "string",
"pattern": "^@[A-Za-z][A-Za-z0-9]*$",
"description": "item, string. Required."
},
"description": "protected directives, array. Required."
},
"subgraphs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 80,
"description": "name, string, length 1 to 80. Required."
},
"sdl": {
"type": "string",
"minLength": 1,
"maxLength": 50000,
"description": "sdl, string, length 1 to 50000. Required."
}
},
"required": [
"name",
"sdl"
],
"description": "item, object. Required."
},
"description": "subgraphs, array. Required."
}
},
"required": [
"protected_directives",
"subgraphs"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}출력 스키마
{
"type": "object",
"properties": {
"authorization_coverage_score": {
"type": "number",
"description": "authorization_coverage_score. Number."
},
"unprotected_fields_percentage": {
"type": "number",
"description": "unprotected_fields_percentage. Number."
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢graphql-security_federation-subgraph-exposure-audit(subgraphs, router, networkRules, publicEndpoints)
Compare caller-supplied subgraph endpoints, router authentication, network rules, and service or ingress labels with the intended public subgraph list. Docs: https://www.brainiac.software/api/graphql-security/federation-subgraph-exposure-audit Keywords: before you expose or merge a GraphQL schema, subgraphs, router, networkRules, publicEndpoints, audit status, audit_status, risk level, risk_level, potentially public subgraphs, potentially_public_subgraphs, internal authentication gaps, internal_authentication_gaps, federation internal field findings, federation_internal_field_findings.
입력 스키마
{
"type": "object",
"properties": {
"subgraphs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,79}$",
"description": "name, string. Required."
},
"endpoint": {
"description": "endpoint, string, length 1 to 500. Optional.",
"type": "string",
"minLength": 1,
"maxLength": 500
},
"authentication": {
"description": "authentication, string, one of required, disabled, unknown. Optional.",
"type": "string",
"enum": [
"required",
"disabled",
"unknown"
]
},
"acceptsDirectClients": {
"description": "acceptsDirectClients, boolean. Optional.",
"type": "boolean"
},
"introspection": {
"description": "introspection, boolean. Optional.",
"type": "boolean"
},
"developmentMode": {
"description": "developmentMode, boolean. Optional.",
"type": "boolean"
},
"service": {
"description": "service, object. Optional.",
"type": "object",
"properties": {
"exposure": {
"type": "string",
"enum": [
"cluster_local",
"internal",
"public",
"unknown"
],
"description": "exposure, string, one of cluster_local, internal, public, unknown. Required."
}
},
"required": [
"exposure"
],
"additionalProperties": false
},
"ingress": {
"description": "ingress, object. Optional.",
"type": "object",
"properties": {
"audience": {
"type": "string",
"enum": [
"public",
"internal",
"unknown"
],
"description": "audience, string, one of public, internal, unknown. Required."
}
},
"required": [
"audience"
],
"additionalProperties": false
},
"federationFields": {
"description": "federationFields, object. Optional.",
"type": "object",
"properties": {
"service": {
"description": "service, string, one of router_only, exposed, unknown. Optional.",
"type": "string",
"enum": [
"router_only",
"exposed",
"unknown"
]
},
"entities": {
"description": "entities, string, one of router_only, exposed, unknown. Optional.",
"type": "string",
"enum": [
"router_only",
"exposed",
"unknown"
]
}
},
"additionalProperties": false
}
},
"required": [
"name"
],
"additionalProperties": false,
"description": "item, object. Required."
},
"description": "subgraphs, array. Required."
},
"router": {
"description": "router, object. Optional.",
"type": "object",
"properties": {
"authenticationToSubgraphs": {
"description": "authenticationToSubgraphs, string, one of required, disabled, per_subgraph, unknown. Optional.",
"type": "string",
"enum": [
"required",
"disabled",
"per_subgraph",
"unknown"
]
},
"introspection": {
"description": "introspection, boolean. Optional.",
"type": "boolean"
},
"sandbox": {
"description": "sandbox, boolean. Optional.",
"type": "boolean"
}
},
"additionalProperties": false
},
"networkRules": {
"description": "networkRules, array. Optional.",
"type": "array",
"items": {
"type": "object",
"properties": {
"subgraph": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,79}$",
"description": "name, string. Required."
},
"source": {
"type": "string",
"enum": [
"router",
"public",
"cluster",
"any"
],
"description": "source, string, one of router, public, cluster, any. Required."
},
"action": {
"type": "string",
"enum": [
"allow",
"deny"
],
"description": "action, string, one of allow, deny. Required."
}
},
"required": [
"subgraph",
"source",
"action"
],
"additionalProperties": false,
"description": "item, object. Required."
}
},
"publicEndpoints": {
"description": "publicEndpoints, array. Optional.",
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9._:-]{0,79}$",
"description": "name, string. Required."
}
}
},
"required": [
"subgraphs"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}출력 스키마
{
"type": "object",
"properties": {
"audit_status": {
"type": "string",
"description": "audit_status. String."
},
"risk_level": {
"type": "string",
"description": "risk_level. String."
},
"potentially_public_subgraphs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"subgraph": {
"type": "string",
"description": "subgraph. String."
},
"reason": {
"type": "string",
"description": "reason. String."
},
"host": {
"type": "string",
"description": "host. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "potentially_public_subgraphs. Array."
},
"internal_authentication_gaps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"subgraph": {
"type": "string",
"description": "subgraph. String."
},
"source": {
"type": "string",
"description": "source. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "internal_authentication_gaps. Array."
},
"federation_internal_field_findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"subgraph": {
"type": "string",
"description": "subgraph. String."
},
"field": {
"type": "string",
"description": "field. String."
},
"exposure": {
"type": "string",
"description": "exposure. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "federation_internal_field_findings. Array."
},
"trust_boundary_violations": {
"type": "array",
"items": {
"type": "object",
"properties": {
"subgraph": {
"type": "string",
"description": "subgraph. String."
},
"configured": {
"type": "string",
"description": "configured. String."
},
"intended": {
"type": "string",
"description": "intended. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "trust_boundary_violations. Array."
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"severity": {
"type": "string",
"description": "severity. String."
},
"subgraph": {
"type": "string",
"description": "subgraph. String."
},
"field": {
"type": "string",
"description": "field. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "findings. Array."
},
"limitations": {
"type": "array",
"items": {
"type": "string",
"description": "item. String."
},
"description": "limitations. Array."
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}🟢graphql-security_subgraph-complexity(sdl, max_depth, introspection)
Walk object-type references in the supplied SDL, starting at Query when that type is present. Docs: https://www.brainiac.software/api/graphql-security/subgraph-complexity Keywords: before you expose or merge a GraphQL schema, sdl, max depth, introspection, exposure risk score, exposure_risk_score, max query complexity index, max_query_complexity_index, Score subgraph query depth, subgraph complexity.
입력 스키마
{
"type": "object",
"properties": {
"sdl": {
"type": "string",
"minLength": 1,
"maxLength": 50000,
"description": "sdl, string, length 1 to 50000. Required."
},
"max_depth": {
"type": "integer",
"minimum": 1,
"maximum": 20,
"description": "max depth, integer, from 1 to 20. Required."
},
"introspection": {
"type": "string",
"enum": [
"enabled",
"disabled"
],
"description": "introspection, string, one of enabled, disabled. Required."
}
},
"required": [
"sdl",
"max_depth",
"introspection"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}출력 스키마
{
"type": "object",
"properties": {
"exposure_risk_score": {
"type": "number",
"description": "exposure_risk_score. Number."
},
"max_query_complexity_index": {
"type": "number",
"description": "max_query_complexity_index. Number."
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}커뮤니티
증거