get_ecosystems
Retrieve supported package ecosystems and their programming languages to identify correct names for vulnerability queries in the OSV server.
Instructions
Get all supported ecosystems. An ecosystem is a package manager or repository for a specific language.
Returns:
Dictionary of ecosystems with the key being the ecosystem name and the value being the programming language / OS.
To use the ecosystem name in the query_package_cve function, you must use the exact ecosystem name as it is in the dictionary.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/server.py:105-116 (handler)The main handler function for the 'get_ecosystems' tool, decorated with @mcp.tool() for registration in the MCP server. It returns a dictionary of supported ecosystems.@mcp.tool() def get_ecosystems(): """ Get all supported ecosystems. An ecosystem is a package manager or repository for a specific language. Returns: Dictionary of ecosystems with the key being the ecosystem name and the value being the programming language / OS. To use the ecosystem name in the query_package_cve function, you must use the exact ecosystem name as it is in the dictionary. """ return {"PyPI": "python", "npm": "javascript", "RubyGems": "ruby", "Maven": "java", "NuGet": "c#"}
- src/server.py:105-105 (registration)The @mcp.tool() decorator registers the get_ecosystems function as an MCP tool.@mcp.tool()