asn1-mcp
Compiles ASN.1 schema definitions into executable source code like Python and Rust.
我该使用它吗
质量与安全性
A
基于对工具定义和协议合规性的自动分析。
上下文开销
~372token 数(工具定义)
~3.6 KB典型响应大小
对注意力的影响极小(占 128k 上下文窗口的 0.29%)
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"asn1-mcp": {
"url": "https://asn1.io/mcp"
}
}
}远程端点
https://asn1.io/mcpstreamable-http它能做什么
工具清单
工具(1)
🟢 只读🟡 写入🔴 删除⚪ 未知
🟡compile_asn1_schema(userId, fileName, schemaContent, targetLanguage, codec)
Compiles ASN.1 schema definitions into executable source code. Use this tool whenever a user asks to generate code, compile an ASN.1 schema, or create a codec (e.g., DER, PER, UPER, BER) for a specific programming language. The tool returns the compilation status, error messages, and files containing the generated source code.
输入模式
{
"type": "object",
"properties": {
"userId": {
"description": "The user's email address to look up the asn1.io user account. If the user's identity is unknown, pass an empty string.",
"type": "string",
"default": ""
},
"fileName": {
"description": "The name of the schema file being compiled. This should end in '.asn' (e.g., 'Rocket.asn'). If the user does not provide a filename, invent a logical one based on the schema's main module name. It is used for errors to reference a specific location in the schema .",
"type": "string",
"default": "schema.asn"
},
"schemaContent": {
"description": "Plain-text ASN.1 schema definition. This must be valid ASN.1 syntax, typically starting with the 'DEFINITIONS' keyword and concluding with 'END'.",
"type": "string",
"default": ""
},
"targetLanguage": {
"description": "The target programming language for the generated code. Allowed values include 'python' and ‘rust’. Infer this from the user's prompt. If not specified, ask the user before calling the tool.",
"type": "string",
"default": "python"
},
"codec": {
"description": "The ASN.1 encoding rules to support in the generated code. Valid options include 'uper', 'per', 'der', 'ber', or 'oer'. If the user does not specify a codec, default to 'der'.",
"type": "string",
"default": "der"
}
}
}社区
证据
最近观测
已验证未记录版本1 个工具