JarvisDiscovery.McpServer 1.1.0

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package JarvisDiscovery.McpServer --version 1.1.0
                    
NuGet\Install-Package JarvisDiscovery.McpServer -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="JarvisDiscovery.McpServer" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JarvisDiscovery.McpServer" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="JarvisDiscovery.McpServer" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add JarvisDiscovery.McpServer --version 1.1.0
                    
#r "nuget: JarvisDiscovery.McpServer, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package JarvisDiscovery.McpServer@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=JarvisDiscovery.McpServer&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=JarvisDiscovery.McpServer&version=1.1.0
                    
Install as a Cake Tool

HP Jarvis Discovery MCP Server

A Model Context Protocol (MCP) server that exposes Jarvis Discovery APIs for AI agents to discover and manage HP printers.

Features

Based on: Jarvis\xamarin-discovery\harness\HP.Jarvis.Discovery.Harness\ViewModel\MainViewModel.cs

Available Tools

  1. discovery.start_search - Start printer discovery with all providers
  2. discovery.stop_search - Stop active search
  3. discovery.search_by_address - Find printer by IP/hostname
  4. discovery.search_by_uuid - Find printer by UUID
  5. discovery.refresh_device - Refresh device information
  6. discovery.verify_connection - Verify network connectivity
  7. discovery.get_devices - Get all discovered devices
  8. discovery.check_internet - Check internet connectivity
  9. discovery.set_providers - Enable/disable discovery providers (USB, mDNS, WSD, BLE, WiFi AP)

Build & Run

cd c:\Users\NaAm727\Downloads\AgentRegistryUI\AiNativeApp\HP.Jarvis.Discovery.McpServer
dotnet build
dotnet run

Server runs on: http://localhost:5100

Test Examples

List all tools

Invoke-RestMethod -Uri http://localhost:5100/tools/list -Method Post | ConvertTo-Json -Depth 10

Start Discovery

$body = @{
    name = "discovery.start_search"
    arguments = @{
        hp_only = $true
        scanners_only = $false
        timeout_seconds = 30
    }
} | ConvertTo-Json

Invoke-RestMethod -Uri http://localhost:5100/tools/call -Method Post -ContentType "application/json" -Body $body

Search by IP Address

$body = @{
    name = "discovery.search_by_address"
    arguments = @{
        address = "192.168.1.100"
    }
} | ConvertTo-Json

Invoke-RestMethod -Uri http://localhost:5100/tools/call -Method Post -ContentType "application/json" -Body $body

Get All Discovered Devices

$body = @{
    name = "discovery.get_devices"
    arguments = @{}
} | ConvertTo-Json

Invoke-RestMethod -Uri http://localhost:5100/tools/call -Method Post -ContentType "application/json" -Body $body

Enable/Disable Providers

$body = @{
    name = "discovery.set_providers"
    arguments = @{
        usb = $true
        mdns = $true
        wsd = $true
        ble = $false
        wifi_ap = $false
    }
} | ConvertTo-Json

Invoke-RestMethod -Uri http://localhost:5100/tools/call -Method Post -ContentType "application/json" -Body $body

Architecture

  • DryIoc - Dependency injection matching PrinterControl4 pattern
  • Real Jarvis Services - IDeviceDiscoveryService, IConnectionHelper, IHPSystemUtilities
  • Event-based Discovery - Subscribes to DiscoveryEvent for real-time device detection
  • 9 MCP Tools - Complete printer discovery API surface

Integration

This server can be called by any AI agent or LLM that supports the MCP protocol. Each tool returns structured JSON results that agents can parse and act upon.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated