Mitre Cwe Mcp Server

io.github.cyanheads由 GitHub 账号 cyanheads 发布v0.2.0更新于 Oct 30, 2026

Explore MITRE CWE weaknesses, CAPEC attack patterns, mitigations, code examples, and mappings.

已验证Streamable HTTP可网页运行知识与记忆安全与监控

概览

AI 生成的概览

只读 MCP 服务器,用于查询 MITRE CWE 弱点与 CAPEC 攻击模式,包括缓解措施、代码示例、视图、层级与映射关系。

可以做什么
  • 按文本、平台、后果、状态、分类法映射或已观测 CVE 搜索与浏览 CWE 弱点
  • 获取弱点、类别与分组记录,可选择缓解措施、示例、检测等章节
  • 搜索并获取 CAPEC 攻击模式、类别与视图,含前提条件、执行步骤与映射
  • 读取 CWE 视图,并遍历实时的父级、子级、祖先与后代层级
  • 列出参考词表、工作流指引以及目录版本与刷新状态
适用场景
适合需要权威软硬件弱点或攻击模式知识的场景:为漏洞分类、查找缓解措施与代码示例,或在安全评审与研究中对 CWE 到 CAPEC 再到 ATT&CK 的映射进行追溯。
运行要求
可作为托管远程端点使用,也可通过 npx(Node.js)或 Docker 本地运行。无需 API 密钥。首次启动或没有可用缓存目录时,需要访问 MITRE 下载源与 CWE REST API 的出站 HTTPS;CWE_CACHE_DIR 可指定缓存位置。可选 HTTP 设置包括 MCP_HTTP_PORT、MCP_HTTP_HOST 与 MCP_AUTH_MODE。
安装前请注意
七个工具均为只读,但目录中的文本与代码属于参考资料,不应作为指令执行。CAPEC 映射与执行流程并不完整,已观测 CVE 是 MITRE 的示例而非 NVD 的分配结果。MITRE 可能对突发请求临时返回 HTTP 403。本地 HTTP 模式默认不启用身份验证。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mitre Cwe Mcp Server,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.cyanheads%2Fmitre-cwe-mcp-server/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "mitre-cwe": {
      "type": "http",
      "url": "https://mitre-cwe.caseyjhand.com/mcp"
    }
  }
}

README

@cyanheads/mitre-cwe-mcp-server

Explore MITRE CWE weaknesses and CAPEC attack patterns, mitigations, code examples, and mappings via MCP. STDIO or Streamable HTTP.

7 Tools

Public Hosted Server: https://mitre-cwe.caseyjhand.com/mcp


Overview

MITRE's CWE and CAPEC catalogs connect software and hardware weaknesses with attack mechanics. Search root causes, inspect mitigations and code examples, navigate CWE views and live hierarchies, and follow recorded CWE → CAPEC → ATT&CK mappings.

Tools

ToolDescription
cwe_list_referenceDiscover views, filter vocabulary, workflow guidance, and catalog refresh health
cwe_get_weaknessRetrieve CWE weaknesses, categories, or groupings with selected sections and complete example pages
cwe_get_attack_patternRetrieve CAPEC attack patterns, categories, and views: prerequisites, execution steps, mitigations, members, and recorded mappings
cwe_search_weaknessesSearch weaknesses by text, platform, abstraction, consequences, status, mapping usage, view, taxonomy mapping (CERT C ARR30-C), or observed-example CVE
cwe_search_attack_patternsSearch CAPEC by text, CWE or ATT&CK mapping, abstraction, severity, or likelihood
cwe_get_viewRead a CWE view's metadata and direct members in published order
cwe_get_hierarchyTraverse live CWE parents, children, ancestors, or descendants within a view

Capability reference

cwe_list_reference tool

  • topic: views, abstraction_levels, mitigation_phases, platforms, relationship_natures, filter_values, workflow, or versions; optional all-token filter on labels, using the word-start and bounded-prefix rule below (script finds JavaScript)
  • views lists every CWE view with its direct member count, and a filter-defined view's filterDefinition
  • filter_values lists weakness statuses, mapping usage, and taxonomy names, consequence impacts, and CAPEC statuses, severity, and likelihood
  • Lists page with limit (default 20, max 100) and pagination.nextCursor; versions adds each loaded catalog's version, date, counts, and refresh errors

cwe_get_weakness tool

  • 1–200 CWE IDs (CWE-79, CWE79, cwe 079, CWE_79, or 79); up to 20 distinct items are processed per call and the rest return in deferredIds. A malformed item comes back in notFound without failing the batch; only an item holding a control character other than whitespace, or a non-ID item over 150 characters, rejects the call
  • sections: summary, consequences, mitigations, relations, examples, detection, observed, platforms, mappings, notes (default: the first four); [] returns an outline
  • summary includes technical nuance, typed dimensions, recorded alternate terms and roles, ordinalities (Primary, Resultant, Indirect), and background details, platforms adds functional areas and affected resources, and relations names each related weakness. notes returns every note MITRE records for weaknesses, categories, and groupings, such as Relationship, Maintenance, Terminology, and Research Gap notes
  • entries[].kind is full, partial (default sections that did not fit the response budget are listed in outline with their sizes, and notice groups re-calls by their complete response size, keeping example parameters only on the examples group), or outline; notFound[].reason is not_found, wrong_type (a view, which belongs to cwe_get_view, or a prefixed ID of the other catalog), or invalid_id (an item that is no ID, echoed trimmed; NVD-CWE-noinfo and NVD-CWE-Other get their own guidance). Categories and groupings resolve here with distinct record types
  • Examples filter by exampleLanguage and page with exampleOffset (default 0), exampleLimit (default 3, no fixed cap), and examplePage.nextOffset. With sections omitted, setting any of the three to a non-default value adds examples after the defaults (outlined with its page size and a re-call when it does not fit); explicit sections without examples ignore them, and guidance gives the re-call that adds examples. Each example keeps its ordered prose and code, with code laid out as MITRE's pages show it (4 spaces per indentation level), and lists the references it cites in references

cwe_get_attack_pattern tool

  • 1–200 CAPEC IDs (CAPEC-66, CAPEC66, capec_066, or 66), Deprecated and Obsolete included; up to 20 distinct items per call, the rest in deferredIds
  • sections: summary, prerequisites, execution, skills, consequences, mitigations, examples, relations, mappings, notes (default: summary, prerequisites, execution, mitigations, and mappings for patterns; summary and relations for categories and views); [] returns an outline
  • entries[].type is attack_pattern, category, or view, and only patterns carry abstraction. A category or view's relations list its direct members in source order, or for a filter-defined view its source XPath as filterDefinition; its mappings and notes carry the recorded taxonomy mappings, references, and MITRE notes
  • Start at view CAPEC-1000 (Mechanisms of Attack) or CAPEC-3000 (Domains of Attack) to browse patterns by category
  • Same entries[].kind and notFound contract as cwe_get_weakness; CAPEC patterns, categories, and views all resolve here, so wrong_type marks only a prefixed CWE ID. Mappings keep the recorded CWE and ATT&CK IDs

cwe_search_weaknesses tool

  • Optional all-token filter over the name, MITRE's recorded alternate terms (XSS, ReDoS, UAF), the description, and the extended description, plus exact language, technology, abstraction, consequenceImpact, status, mappingUsage, taxonomyName, taxonomyEntryId, observedCveId, and viewId; no filters browses the catalog
  • A filter token matches at a word start, after _, or at a camelCase hump (dos finds ReDoS). Tokens of at least four Unicode letters also match after exactly one un or mis prefix at a word start (trusted finds untrusted; config finds misconfiguration). Prefixes are never stripped recursively; spelling coincidences remain possible. Other compounds are searched as written: serialization does not find CWE-502, deserialization does. A token ending in a digit never matches before another digit (79 skips RFC 793)
  • Each result carries MITRE's mappingUsage, such as Allowed, Allowed-with-Review, or Prohibited, which says whether the entry may be used to map a vulnerability
  • taxonomyName (such as CERT C Secure Coding or ISA/IEC 62443) and taxonomyEntryId (such as ARR30-C or A1, any case) find the weaknesses that record a taxonomy mapping, both holding on one mapping when given together; observedCveId (such as CVE-2021-44228) finds the weaknesses MITRE cites that CVE on as an observed example, not NVD's CVE-to-CWE assignments. Each result then lists every mapping (matchedTaxonomyMappings) or observed example (matchedObservedExamples) that matched
  • viewId includes same-view membership closure, or for a filter-defined view the weaknesses its source XPath filter selects (CWE-658 C, CWE-702 Implementation, …). Categories and groupings are excluded; every status is included by default
  • Ranked by all tokens in the name or in one alternate term, then in the description, then any other match, then numeric ID; previews hold the first sentence, and cwe_get_weakness returns the terms in summary. limit default 20, max 100; continue with pagination.nextCursor

cwe_search_attack_patterns tool

  • Optional all-token filter over the name, recorded alternate terms (MITM), and the description, using the same word-start and bounded-prefix rule as cwe_search_weaknesses, plus cweId, attackTechniqueId, abstraction, severity, and likelihood; CWE mappings match exactly, and a parent ATT&CK technique includes its recorded subtechniques
  • includeInactive (default false) adds Deprecated and Obsolete patterns. Ranked by all tokens in the name or in one alternate term, then in the description, then any other match, then numeric ID; cwe_get_attack_pattern returns the terms in summary. limit default 20, max 100; continue with pagination.nextCursor

cwe_get_view tool

  • One view id (from cwe_list_reference topic views); limit default 20, max 100, continued by pagination.nextCursor
  • Objective, audience, status, filter definition, recorded notes, and direct members in published order. Navigation views list only top-level members; cwe_get_hierarchy reaches descendants
  • A filter-defined view lists no members: filterDefinition is its source XPath, and cwe_search_weaknesses with its viewId returns the weaknesses that filter selects. A filter with a part the server does not evaluate is named as such in guidance, and that search returns none with a notice
  • found: false carries not_found or wrong_type

cwe_get_hierarchy tool

  • One CWE id and a direction: parents, children, ancestors, or descendants; viewId defaults to 1000, or all for every view. primaryOnly applies to ancestors only. Parents and children include category, grouping, and view relations and match the first level of the same view's tree
  • View-scoped nodes, parent-to-child edges, found, retrievedAt, and hierarchyFingerprint. Empty relations succeed; upstream failures are errors, and a temporary MITRE refusal (HTTP 403) is retryable after a few minutes. Node names come from the loaded catalog and can lag the live API
  • The total deadline includes queue wait; expiry is retryable hierarchy_timeout, while caller cancellation is nonretryable. Source-recorded relations remain available through cwe_get_weakness, but do not replace live children or descendants
  • limit default 20, max 100 edges; each page lists only the nodes its edges reference, plus any root without edges on the first page. Each pagination.nextCursor call re-fetches the traversal; invalid_cursor means the topology or catalog changed, so restart without a cursor

Features

Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.

MITRE-specific:

  • CWE schema 7 and 8 catalogs are supported. CWE groupings retain their own record type alongside older categories; both organize weaknesses rather than identify root causes. Sparse schema-8 metadata stays in existing sections, including custom phase domains, platform notes, note versions, observed-example rationales, and alternative reference links
  • No API key. Both XML catalogs load into memory before the server accepts requests. Each successful download is saved to a cache directory (CWE_CACHE_DIR), and a later start loads the saved copy without waiting on MITRE, so a restart works while MITRE is unreachable. The first start, or any start without a usable saved copy, needs MITRE's CWE and CAPEC download sources
  • CWE checks for a new version every 24 hours and CAPEC refreshes weekly; a catalog loaded from the cache is checked right after start and, while those checks fail, again after 5, 10, 20, 40, then every 60 minutes. A failed refresh keeps the loaded data and shows in cwe_list_reference topic versions, which also reports whether each catalog came from the cache or a download
  • MITRE can refuse a burst of requests from one address with HTTP 403 for a few minutes. Catalog downloads, version checks, and hierarchy calls report it as a temporary, retryable failure and do not retry it immediately
  • Hierarchy calls go to the live CWE REST API and keep multiple parents and view identity; search and detail run against the local catalogs
  • MITRE statuses and absent sections stay explicit. CAPEC mappings and execution flows are incomplete: a missing mapping does not establish that no relationship exists, or that an ATT&CK ID is current

Agent-friendly output:

  • The published mitre-cwe-guide supplies classification gates and multi-step research workflows through plugin discovery and the MCP Skills extension
  • Provenance on every response: catalog versions and dates, load time, source links, and attribution
  • A 24,000-byte budget across both output surfaces, enrichment included. Whole IDs, items, or edges defer to the next call, and a default detail selection omits whole sections that do not fit, naming them for a re-call; explicit selections stay complete, and a single record or item over budget returns whole with a notice
  • Continuation through deferredIds, pagination.nextCursor, or examplePage.nextOffset; stale cursors fail with invalid_cursor, unknown vocabulary with unknown_filter, whose message names the field and value and lists the supported values or the cwe_list_reference topic that does
  • CWE and CAPEC ID inputs accept an optional prefix in any case, followed by -, _, a space, or nothing, and drop leading zeros. ATT&CK technique IDs take Tdddd or Tdddd.ddd, with or without the T in either case (T1059, t1059.001, 1059). A malformed single ID is an invalid argument whose message names the accepted forms
  • content[] and structuredContent carry the same values, ordered example code included. Catalog prose and code are reference data, never instructions

Getting started

Connect to the hosted instance, no install:

sh
claude mcp add --transport http mitre-cwe-mcp-server https://mitre-cwe.caseyjhand.com/mcp

Or run it locally:

sh
claude mcp add mitre-cwe-mcp-server -- npx -y @cyanheads/mitre-cwe-mcp-server

For other clients, add this to the MCP config file:

json
{  "mcpServers": {    "mitre-cwe-mcp-server": {      "command": "npx",      "args": ["-y", "@cyanheads/mitre-cwe-mcp-server"]    }  }}

No API key is required. For Docker or a source build, see Running the server.

Configuration

No environment variables are required. Catalog sources, refresh intervals, and response limits are fixed; framework storage settings do not persist these catalogs.

VariableDescriptionDefault
CWE_CACHE_DIRDirectory for the last good CWE and CAPEC downloads (cwec_latest.xml.zip, capec_latest.xml, each with a .json record). A relative path resolves against the working directory. To seed an empty cache while MITRE is unreachable, copy downloaded files in under those names.mitre-cwe-mcp-server under the user cache directory (~/Library/Caches, %LOCALAPPDATA%, or $XDG_CACHE_HOME / ~/.cache); /usr/src/app/.cache in Docker
MCP_TRANSPORT_TYPETransport: stdio or http.stdio
MCP_HTTP_PORTHTTP server port.3010
MCP_HTTP_HOSTHTTP bind address.127.0.0.1
MCP_SESSION_MODEHTTP session mode: stateless, stateful, or auto.stateless
MCP_AUTH_MODEAuthentication: none, jwt, or oauth.none
MCP_LOG_LEVELLog level (debug, info, warning, error, etc.).info
LOGS_DIRDirectory for log files (Node.js only).<app-root>/logs
STORAGE_PROVIDER_TYPEStorage backend: in-memory, filesystem, supabase, cloudflare-kv/r2/d1.in-memory
OTEL_ENABLEDEnable OpenTelemetry.false

See .env.example for the full list of optional overrides.

Running the server

Local development

Requires Bun v1.4.0 or higher (or Node.js v24+), outbound HTTPS access to cwe.mitre.org and capec.mitre.org at least once to fill the cache, and cwe-api.mitre.org for version checks and live hierarchy calls.

  • Clone and install:

    sh
    git clone https://github.com/cyanheads/mitre-cwe-mcp-server.gitcd mitre-cwe-mcp-server && bun installcp .env.example .env # optional transport, authentication, and logging settings
  • Build and run the production version:

    sh
    # One-time buildbun run rebuild
    # Run the built serverbun run start:http# orbun run start:stdio
  • Run checks and tests:

    sh
    bun run devcheck  # Lints, formats, type-checks, and morebun run test      # Runs the test suite

Docker

sh
docker run --rm -p 3010:3010 -v mitre-cwe-cache:/usr/src/app/.cache ghcr.io/cyanheads/mitre-cwe-mcp-server:latest

The image defaults to HTTP transport, stateless sessions, and logs to /var/log/mitre-cwe-mcp-server. The named volume keeps catalog downloads across containers. For stdio, use "command": "docker" with "args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "-v", "mitre-cwe-cache:/usr/src/app/.cache", "ghcr.io/cyanheads/mitre-cwe-mcp-server:latest"]. To build locally, run docker build -t mitre-cwe-mcp-server .; add --build-arg OTEL_ENABLED=false to omit OpenTelemetry peers.

Project structure

DirectoryPurpose
src/mcp-server/tools/definitionsSeven read-only tools.
src/mcp-server/toolsShared output schemas, section projection, budgets, and pagination.
src/configServer environment configuration (CWE_CACHE_DIR).
src/services/catalogCatalog acquisition, the last-known-good cache, XML normalization, indexes, refresh lifecycle, and live hierarchy.
skills/Published guidance for agents calling the tools.
tests/Unit and integration tests, mirroring the src/ structure.
docs/Design and generated directory reference.

Development guide

See CLAUDE.md for development guidelines and architectural rules. The short version:

  • Handlers throw, framework catches — no try/catch in tool logic
  • Use ctx.log for logging, ctx.state for storage
  • Register new tools and resources in the createApp() arrays in src/index.ts
  • Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields

Contributing

Issues are welcome. Run checks and tests before submitting:

sh
bun run devcheckbun run test

License

This project is licensed under the Apache 2.0 License. See the LICENSE file for details.

CWE data: Copyright © 2006–2026, The MITRE Corporation. CAPEC data: Copyright © 2007–2026, The MITRE Corporation. CWE and CAPEC are MITRE trademarks; their data licenses and disclaimers are reproduced in THIRD_PARTY_NOTICES.md.

来源:README.md,提交 410ab94

工具

7

cwe_list_reference

List CWE and CAPEC reference values

List loaded CWE/CAPEC vocabulary, every CWE view, workflow guidance, or catalog versions and refresh health. Filter requires every whitespace-separated token in an item label, each at a word start or camelCase hump (script finds JavaScript). Tokens of at least four Unicode letters also match after exactly one un or mis prefix at a word start; spelling coincidences can match. Omit filter to browse. Platforms distinguishes example code languages from platform names and classes. Follow nextCursor for complete lists; limits above 100 are capped with disclosure.

输入参数limittopic必填cursorfilter

cwe_get_weakness

Retrieve CWE weaknesses

Retrieve CWE weaknesses, categories, or groupings by ID, such as CWE-79, CWE79, or 79. Processes up to 20 distinct IDs within a 24,000-byte response budget and discloses deferred IDs; a view, a CAPEC ID, or an item that is no ID returns in notFound with recovery guidance; only an item holding a control character other than whitespace, or a non-ID item over 150 characters, rejects the whole call. Defaults to summary, consequences, mitigations, and relations; a default section that does not fit the budget is omitted whole and named with its size and a re-call (kind partial). Summary carries recorded alternate terms such as XSS, ordinalities (Primary, Resultant, Indirect), and background details; the notes section, outside the defaults, returns every note MITRE records, such as Relationship, Maintenance, Terminology, and Research Gap notes. Explicit sections remain complete, including one oversized record with disclosure; an empty sections array requests an outline. exampleLanguage, exampleOffset, and exampleLimit select a complete source-ordered page of section examples: with sections omitted, setting any of them to a non-default value adds examples after the defaults, filled last and outlined with its page size and a re-call when it does not fit; explicit sections without examples ignore them, and guidance gives the re-call that adds examples. Categories and groupings are organizational entries, not vulnerability root causes.

输入参数ids必填sectionsexampleLimitexampleOffsetexampleLanguage

cwe_get_attack_pattern

Retrieve CAPEC attack patterns

Retrieve CAPEC attack patterns, categories, and views by ID, such as CAPEC-66, CAPEC66, or 66, including Deprecated and Obsolete records; each entry’s type says which. Processes up to 20 distinct IDs within a 24,000-byte response budget and discloses deferred IDs; a CWE ID or an item that is no ID returns in notFound with recovery guidance; only an item holding a control character other than whitespace, or a non-ID item over 150 characters, rejects the whole call. Patterns default to summary, prerequisites, execution, mitigations, and mappings; categories and views default to summary (the category summary or view objective) and relations (members in source order, or a filter-defined view’s source XPath filterDefinition). Views CAPEC-1000 (Mechanisms of Attack) and CAPEC-3000 (Domains of Attack) are entry points for browsing patterns by category. A default section that does not fit the budget is omitted whole and named with its size and a re-call (kind partial). The notes section, outside the defaults, returns recorded MITRE notes. Explicit sections remain complete, including one oversized record with disclosure; an empty array requests an outline. Recorded CWE and ATT&CK mappings are incomplete and do not establish current ATT&CK validation.

输入参数ids必填sections

cwe_search_weaknesses

Search CWE weaknesses

Search CWE weaknesses by all text tokens, exact platform or consequence vocabulary, abstraction, status, mapping usage, view membership, a recorded taxonomy mapping (taxonomy name or entry ID such as CERT C ARR30-C), or a CVE that MITRE cites as an observed example. Text tokens match at word starts or camelCase humps; tokens of at least four Unicode letters also match after exactly one un or mis prefix at a word start (trusted finds untrusted), with possible spelling coincidences. Search other compounds such as deserialization as written; text never matches an entry ID or CVE. Omit filters to browse; categories and groupings are excluded. Each result carries MITRE’s mapping usage, which says whether the entry may be used to map a vulnerability, and, under a taxonomy or CVE filter, every mapping or observed example that matched. Results order by all tokens in the name or in one recorded alternate term such as XSS, then all in the description, then any other match, then numeric ID. Description previews contain the first sentence; use cwe_get_weakness for complete sections. Follow nextCursor for remaining matches.

输入参数limitcursorfilterstatusviewIdlanguagetechnologyabstractionmappingUsagetaxonomyNameobservedCveIdtaxonomyEntryId另有 1 个

cwe_search_attack_patterns

Search CAPEC attack patterns

Search CAPEC attack patterns by every whitespace-separated text token, recorded CWE or ATT&CK mapping, abstraction, severity, or likelihood. Text tokens match at word starts or camelCase humps; tokens of at least four Unicode letters also match after exactly one un or mis prefix at a word start (config finds misconfiguration), with possible spelling coincidences. Search other compounds such as deserialization as written. Parent ATT&CK techniques include recorded subtechniques; CWE mappings are exact without hierarchy expansion. Omit filters to browse. Deprecated and Obsolete patterns are excluded by default. Mappings are incomplete and do not validate current ATT&CK coverage. Results order by all tokens in the name or in one recorded alternate term such as MITM, then all in the description, then any other match, then numeric ID; use cwe_get_attack_pattern for complete sections and follow nextCursor for remaining matches.

输入参数cweIdlimitcursorfilterseveritylikelihoodabstractionincludeInactiveattackTechniqueId

cwe_get_view

Get CWE view

Read a CWE view objective, audience, status, source filter, recorded notes, and direct members in published order. Navigation views list top-level members rather than every descendant; use cwe_get_hierarchy for navigation or cwe_search_weaknesses with viewId for weakness membership closure. A filter-defined (Implicit) view lists no members: its filterDefinition is the source XPath that defines membership, and cwe_search_weaknesses with its viewId returns the weaknesses that filter selects; when the filter has a part this server does not evaluate, the guidance says so and that search returns none with a disclosure. Unknown and non-view IDs return a structured miss. Follow nextCursor for remaining direct members.

输入参数id必填limitcursor

cwe_get_hierarchy

Get CWE hierarchy

Navigate live CWE parents, children, ancestors, or descendants for a weakness, category, grouping, or view. Discover IDs with cwe_search_weaknesses or cwe_list_reference topic views. The default view is 1000; set viewId all for every view. primaryOnly applies only to ancestors. Edges point from parent to child and retain view identity; follow nextCursor for more edges. Continuations re-fetch the traversal and reject changed topology. Empty relations are successful; upstream failures remain errors. Node names come from the loaded catalog and may lag live IDs.

输入参数id必填limitcursorviewIddirection必填primaryOnly

版本历史

5
  1. v0.2.0最新Oct 30, 2026
  2. v0.1.4Oct 24, 2026
  3. v0.1.3Oct 23, 2026
  4. v0.1.2Oct 21, 2026
  5. v0.1.1Oct 21, 2026

评分

已满足适用检查项的 100%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分