get_license
Pack: spdx-license · Endpoint: https://gateway.pipeworx.io/spdx-license/mcp
Get metadata + descriptors for one SPDX license id (e.g. “MIT”, “Apache-2.0”, “GPL-3.0-or-later”).
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes |
Example call
Arguments
{
"id": "MIT"
}
curl
curl -X POST https://gateway.pipeworx.io/spdx-license/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_license","arguments":{"id":"MIT"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('get_license', {
"id": "MIT"
});
More examples
{
"id": "Apache-2.0"
}
Response shape
| Field | Type | Description |
|---|---|---|
licenseId | string | SPDX license identifier |
name | string | Full license name |
licenseText | string | Full license text |
standardLicenseHeader | string | null | Standard license header if available |
seeAlso | array | Cross-reference URLs |
isOsiApproved | boolean | Whether OSI approved |
isFsfLibre | boolean | Whether FSF Free/Libre |
isDeprecatedLicenseId | boolean | Whether license is deprecated |
reference | string | Reference URL |
referenceNumber | integer | Reference number |
detailsUrl | string | Details URL |
Full JSON Schema
{
"type": "object",
"properties": {
"licenseId": {
"type": "string",
"description": "SPDX license identifier"
},
"name": {
"type": "string",
"description": "Full license name"
},
"licenseText": {
"type": "string",
"description": "Full license text"
},
"standardLicenseHeader": {
"type": [
"string",
"null"
],
"description": "Standard license header if available"
},
"seeAlso": {
"type": "array",
"items": {
"type": "string"
},
"description": "Cross-reference URLs"
},
"isOsiApproved": {
"type": "boolean",
"description": "Whether OSI approved"
},
"isFsfLibre": {
"type": "boolean",
"description": "Whether FSF Free/Libre"
},
"isDeprecatedLicenseId": {
"type": "boolean",
"description": "Whether license is deprecated"
},
"reference": {
"type": "string",
"description": "Reference URL"
},
"referenceNumber": {
"type": "integer",
"description": "Reference number"
},
"detailsUrl": {
"type": "string",
"description": "Details URL"
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"spdx-license": {
"url": "https://gateway.pipeworx.io/spdx-license/mcp"
}
}
}
See Getting Started for client-specific install steps.