Skip to content

Commit fe0086b

Browse files
committed
Make cve ids hyperlink
Signed-off-by: Prabhu Subramanian <[email protected]>
1 parent 25dc8f1 commit fe0086b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: contrib/mcp-server-vdb/src/mcp_server_vdb/display.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def add_table_row(table: Table, res: dict, added_row_keys: dict):
3030
description = description.replace("\\n", "\n").replace("\\t", " ")
3131
descriptions.append(description)
3232
table.add_row(
33-
res.get("cve_id"),
33+
Markdown(f'[{res.get("cve_id")}](cve://{res.get("cve_id")})', justify="left", hyperlinks=True),
3434
res.get("matched_by"),
3535
Markdown("\n".join(descriptions), justify="left", hyperlinks=True),
3636
)

Diff for: contrib/mcp-server-vdb/src/mcp_server_vdb/server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ async def handle_list_tools() -> list[mtypes.Tool]:
309309
inputSchema={
310310
"type": "object",
311311
"properties": {
312-
"count": {"type": "int", "description": "Count of malwares to return"},
312+
"count": {"type": "number", "description": "Count of malwares to return"},
313313
}
314314
}
315315
),

0 commit comments

Comments
 (0)