Add an MCP server exposing the OSV API as tools for AI agents
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
調査の方向性
Start with the existing Python tooling pattern in tools/datafix and the MCP SDK. Create an isolated server under tools/osv-mcp/ with its own pyproject.toml, using OSV_API_BASE_URL to target the stable /v1 endpoints. Done means exposing the four listed query and vulnerability lookup tools without adding dependencies to the root library; the issue says a PR is being opened, so check for that work before starting.
索引モデルが issue の本文から書いたものです。
説明
Is your feature request related to a problem? Please describe.
AI coding agents (Claude, Gemini, Joule, etc.) increasingly author and modify dependency manifests, but they have no first-class, machine-native way to ask OSV "is this package/version vulnerable?" during a task. Today an agent has to know and hand-roll the OSV REST contract. There is no Model Context Protocol (MCP) server in this repo, so OSV cannot be plugged into the MCP tool ecosystem that these agents natively consume.
Describe the solution you'd like
A small, self-contained MCP server under tools/ that wraps the stable public OSV REST API (https://api.osv.dev) as MCP tools, so any MCP-capable agent can query OSV directly:
query_package_vulnerabilities(package_name, ecosystem, version=None)→POST /v1/queryquery_by_commit(commit)→POST /v1/queryquery_batch(queries)→POST /v1/querybatchget_vulnerability(vuln_id)→GET /v1/vulns/{id}
Design intent:
- Python, using the official
mcpSDK, matching the existing Python tooling (poetry, yapf, pylint). - Fully isolated in its own
tools/osv-mcp/directory with its ownpyproject.toml(same pattern astools/datafix), so nothing leaks into the rootosvlibrary. - Thin REST wrapper only — no GCP dependencies, no new surface on the Go migration path. Only the stable
/v1endpoints (the two/v1experimental/endpoints are intentionally excluded). OSV_API_BASE_URLenv var to target staging / a local API dev server.
Describe alternatives you've considered
- A Go implementation (matching the repo's Python→Go migration direction) — but the MCP SDK is most mature in Python, this is auxiliary tooling rather than a core service, and
tools/datafixestablishes the Python-in-tools/precedent. - Leaving it to third-party/out-of-tree MCP wrappers — but a first-party server keeps the tool surface and endpoint contracts in sync with OSV itself.
Additional context
Happy to open a PR for this. Flagging up front per CONTRIBUTING: this would be an AI-assisted contribution and the PR will disclose that. I'll sign the CLA. Opening a PR alongside this issue for concreteness, but happy to iterate on scope/placement first.
- 主要言語
- Go
- スター
- 3k
- フォーク
- 390
- 平均マージ
- 1日 42分
- マージ済み PR(30日)
- 133
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
google/osv.dev のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
google/osv.dev#5824 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
worker to log more information for gitter internal server errors再び着手できるかも @ZedingZhang が 60 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
google/osv.dev#5809 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Create repo purls for GIT ecosystem ranges再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbacklog data quality
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
google/osv.dev#3807 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
data quality
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
google/osv.dev#6289 · コメント 2 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
masahitojp/mariamem#108 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] Pod detail shows CPU usage ten times too high, and throws on decimal memory suffixes対応中かも @RaphaelFakhri が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 11 日以内に返信
-
tsuru_app_cname and tsuru_app_router don't handle removal outside terraform対応中かも @lbarrosby が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
contributor-friendly good-first-issue lang:go
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
irbis-sh/zen-desktop#870 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信