latest_version

Pack: nuget · Endpoint: https://gateway.pipeworx.io/nuget/mcp

Most recent released version of a package.

Parameters

NameTypeRequiredDescription
idstringyesPackage id
prereleasebooleannoAllow 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

FieldTypeDescription
idstringPackage identifier
latest_versionstring | nullLatest version string, or null if not found
total_versionsintegerTotal 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.

Regenerated from source · build July 6, 2026