BRAINIAC Contract Security
Paid Contract Security API via x402. Unpaid tool calls return 402.
¿Debería usar esto?
Calidad y seguridad
Hallazgos (4)
- LOWen contract-security_contract-bytecode-compare
- LOWen contract-security_contract-bytecode-compare
- LOWen contract-security_bytecode-structure-diff
- LOWen contract-security_bytecode-structure-diff
Basado en el análisis automatizado de las definiciones de herramientas y el cumplimiento del protocolo.
Costo de contexto
Este es el número aproximado de tokens que se consumen cada vez que las herramientas del servidor se cargan en el contexto de un modelo. Los recuentos más altos reducen la atención disponible para otras tareas.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"contract-security": {
"url": "https://www.brainiac.software/mcp/contract-security"
}
}
}Puntos de conexión remotos
https://www.brainiac.software/mcp/contract-securitystreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (2)
🟢contract-security_contract-bytecode-compare(reference, candidate, bytecodeKind, mode, compilerMetadata, ...)
Compare two caller-supplied EVM bytecodes. Docs: https://www.brainiac.software/api/contract-security/contract-bytecode-compare Keywords: before you trust or deploy a contract, reference, candidate, bytecodeKind, mode, compilerMetadata, constructorArguments, immutableRanges, expectedDifferences, comparison status, comparison_status, reference hash, reference_hash, candidate hash, candidate_hash.
Esquema de entrada
{
"type": "object",
"properties": {
"reference": {
"type": "string",
"maxLength": 262146,
"pattern": "^0x(?:[0-9a-fA-F]{2})*$",
"description": "reference, string, length 0 to 262146. Required."
},
"candidate": {
"type": "string",
"maxLength": 262146,
"pattern": "^0x(?:[0-9a-fA-F]{2})*$",
"description": "reference, string, length 0 to 262146. Required."
},
"bytecodeKind": {
"description": "bytecodeKind, string, one of runtime, creation. Optional.",
"type": "string",
"enum": [
"runtime",
"creation"
]
},
"mode": {
"description": "mode, string, one of exact, normalized. Optional.",
"type": "string",
"enum": [
"exact",
"normalized"
]
},
"compilerMetadata": {
"description": "compilerMetadata, object. Optional.",
"type": "object",
"properties": {
"compiler": {
"description": "compiler, string, length 1 to 80. Optional.",
"type": "string",
"minLength": 1,
"maxLength": 80
},
"version": {
"description": "version, string, length 1 to 40. Optional.",
"type": "string",
"minLength": 1,
"maxLength": 40
}
},
"additionalProperties": false
},
"constructorArguments": {
"description": "constructorArguments, string, length 0 to 262146. Optional.",
"type": "string",
"maxLength": 262146,
"pattern": "^0x(?:[0-9a-fA-F]{2})*$"
},
"immutableRanges": {
"description": "immutableRanges, array. Optional.",
"type": "array",
"items": {
"type": "object",
"properties": {
"start": {
"type": "integer",
"minimum": 0,
"maximum": 131072,
"description": "start, integer, from 0 to 131072. Required."
},
"end": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 131072,
"description": "end, integer, from any to 131072. Required."
}
},
"required": [
"start",
"end"
],
"additionalProperties": false,
"description": "item, object. Required."
}
},
"expectedDifferences": {
"description": "expectedDifferences, array. Optional.",
"type": "array",
"items": {
"type": "object",
"properties": {
"start": {
"type": "integer",
"minimum": 0,
"maximum": 131072,
"description": "start, integer, from 0 to 131072. Required."
},
"end": {
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 131072,
"description": "end, integer, from any to 131072. Required."
}
},
"required": [
"start",
"end"
],
"additionalProperties": false,
"description": "item, object. Required."
}
}
},
"required": [
"reference",
"candidate"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}Esquema de salida
{
"type": "object",
"properties": {
"comparison_status": {
"type": "string",
"description": "comparison_status. String."
},
"reference_hash": {
"type": "string",
"description": "reference_hash. String."
},
"candidate_hash": {
"type": "string",
"description": "candidate_hash. String."
},
"reference_length": {
"type": "number",
"description": "reference_length. Number."
},
"candidate_length": {
"type": "number",
"description": "candidate_length. Number."
},
"similarity": {
"type": "string",
"description": "similarity. String."
},
"difference_ranges": {
"type": "array",
"items": {
"type": "object",
"properties": {
"start": {
"type": "number",
"description": "start. Number."
},
"end": {
"type": "number",
"description": "end. Number."
},
"length": {
"type": "number",
"description": "length. Number."
},
"kind": {
"type": "string",
"description": "kind. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "difference_ranges. Array."
},
"metadata_differences": {
"type": "array",
"items": {
"type": "object",
"properties": {
"field": {
"type": "string",
"description": "field. String."
},
"reference": {
"type": "string",
"description": "reference. String."
},
"candidate": {
"type": "string",
"description": "candidate. String."
},
"detail": {
"type": "string",
"description": "detail. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "metadata_differences. Array."
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "code. String."
},
"severity": {
"type": "string",
"description": "severity. 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": {}
}🟢contract-security_bytecode-structure-diff(left, right)
Decode two caller-supplied EVM bytecodes, or two instruction lists, into opcodes and compare the instruction sequence. Docs: https://www.brainiac.software/api/contract-security/bytecode-structure-diff Keywords: before you trust or deploy a contract, left, right, similarity index, similarity_index, risk delta score, risk_delta_score, divergence points, divergence_points, Diff bytecode structure, bytecode structure diff.
Esquema de entrada
{
"type": "object",
"properties": {
"left": {
"anyOf": [
{
"type": "string",
"maxLength": 200000,
"pattern": "^(0x)?[0-9a-fA-F]*$"
},
{
"type": "object",
"properties": {
"ops": {
"minItems": 1,
"maxItems": 1500,
"type": "array",
"items": {
"type": "object",
"properties": {
"op": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9]{0,31}$"
},
"arg": {
"type": "string",
"pattern": "^(0x)?[0-9a-fA-F]{0,64}$"
}
},
"required": [
"op"
]
}
}
},
"required": [
"ops"
]
}
],
"description": "left, value. Required."
},
"right": {
"anyOf": [
{
"type": "string",
"maxLength": 200000,
"pattern": "^(0x)?[0-9a-fA-F]*$"
},
{
"type": "object",
"properties": {
"ops": {
"minItems": 1,
"maxItems": 1500,
"type": "array",
"items": {
"type": "object",
"properties": {
"op": {
"type": "string",
"pattern": "^[A-Za-z][A-Za-z0-9]{0,31}$"
},
"arg": {
"type": "string",
"pattern": "^(0x)?[0-9a-fA-F]{0,64}$"
}
},
"required": [
"op"
]
}
}
},
"required": [
"ops"
]
}
],
"description": "left, value. Required."
}
},
"required": [
"left",
"right"
],
"$schema": "http://json-schema.org/draft-07/schema#"
}Esquema de salida
{
"type": "object",
"properties": {
"similarity_index": {
"type": "number",
"description": "similarity_index. Number."
},
"risk_delta_score": {
"type": "number",
"description": "risk_delta_score. Number."
},
"divergence_points": {
"type": "array",
"items": {
"type": "object",
"properties": {
"index": {
"type": "number",
"description": "index. Number."
},
"left": {
"type": "string",
"description": "left. String."
},
"right": {
"type": "string",
"description": "right. String."
},
"kind": {
"type": "string",
"description": "kind. String."
}
},
"additionalProperties": {},
"description": "item. Object."
},
"description": "divergence_points. Array."
}
},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": {}
}Comunidad
Evidencia