revision
Pack: softwareheritage · Endpoint: https://gateway.pipeworx.io/softwareheritage/mcp
Fetch one archived commit by its Software Heritage revision id (the 40-hex id, which for a git repository is the git commit sha). Returns the commit message, author and committer with their dates, the directory id of the tree it points at, and its parent commits. Accepts a bare hex id or a full SWHID (“swh:1:rev:
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Revision id — a 40-character hex sha (“309cf37fe2a781279b7675d4bb7173198e532867”) or a SWHID (“swh:1:rev:309cf37f…”). |
Example call
Arguments
{
"id": "309cf37fe2a781279b7675d4bb7173198e532867"
}
curl
curl -X POST https://gateway.pipeworx.io/softwareheritage/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"revision","arguments":{"id":"309cf37fe2a781279b7675d4bb7173198e532867"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('revision', {
"id": "309cf37fe2a781279b7675d4bb7173198e532867"
});
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"softwareheritage": {
"url": "https://gateway.pipeworx.io/softwareheritage/mcp"
}
}
}
See Getting Started for client-specific install steps.