query_by_commit
Pack: osv · Endpoint: https://gateway.pipeworx.io/osv/mcp
Find vulnerabilities affecting a specific source-repository git commit via OSV.dev. Useful when you have a pinned commit hash rather than a released version. Returns the same compact vuln summary array. Keyless.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
commit | string | yes | A git commit hash, e.g. “6879efc2c1596d11a6a6ad296f80063b558d5e0f”. |
Example call
Arguments
{
"commit": "6879efc2c1596d11a6a6ad296f80063b558d5e0f"
}
curl
curl -X POST https://gateway.pipeworx.io/osv/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"query_by_commit","arguments":{"commit":"6879efc2c1596d11a6a6ad296f80063b558d5e0f"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('query_by_commit', {
"commit": "6879efc2c1596d11a6a6ad296f80063b558d5e0f"
});
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"osv": {
"url": "https://gateway.pipeworx.io/osv/mcp"
}
}
}
See Getting Started for client-specific install steps.