latest_version
Pack: nuget · Endpoint: https://gateway.pipeworx.io/nuget/mcp
Most recent released version of a package.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes | Package id |
prerelease | boolean | no | Allow prerelease (default false) |
Example call
Arguments
{
"id": "Newtonsoft.Json"
}
curl
curl -X POST https://gateway.pipeworx.io/nuget/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"latest_version","arguments":{"id":"Newtonsoft.Json"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('latest_version', {
"id": "Newtonsoft.Json"
});
More examples
{
"id": "xunit",
"prerelease": true
}
Response shape
Always returns: id, latest_version, total_versions
| Field | Type | Description |
|---|---|---|
id | string | Package identifier |
latest_version | string | null | Latest version string, or null if not found |
total_versions | integer | Total number of published versions |
Full JSON Schema
{
"type": "object",
"description": "Latest version information for a package",
"properties": {
"id": {
"type": "string",
"description": "Package identifier"
},
"latest_version": {
"type": [
"string",
"null"
],
"description": "Latest version string, or null if not found"
},
"total_versions": {
"type": "integer",
"description": "Total number of published versions"
}
},
"required": [
"id",
"latest_version",
"total_versions"
]
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"nuget": {
"url": "https://gateway.pipeworx.io/nuget/mcp"
}
}
}
See Getting Started for client-specific install steps.