From 4687a057bc0c7e26f7d7ae402be3e62848a9990e Mon Sep 17 00:00:00 2001
From: Christian Findlay <16697547+MelbourneDeveloper@users.noreply.github.com>
Date: Sun, 19 Oct 2025 16:32:31 +1100
Subject: [PATCH 1/9] fix claude script
---
.../run-for-claude.sh | 22 ++++++++++++-------
1 file changed, 14 insertions(+), 8 deletions(-)
diff --git a/Samples/NucliaDbClient.McpServer/run-for-claude.sh b/Samples/NucliaDbClient.McpServer/run-for-claude.sh
index a0a85194..7f65988e 100755
--- a/Samples/NucliaDbClient.McpServer/run-for-claude.sh
+++ b/Samples/NucliaDbClient.McpServer/run-for-claude.sh
@@ -1,13 +1,19 @@
#!/bin/bash
-# Run script for Claude MCP integration
-# This script is called by Claude to start the MCP server
+# Add the NucliaDB MCP server to Claude Code
+# This allows Claude Code to interact with NucliaDB via the Model Context Protocol
-SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+# Get the absolute path to the project directory
+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+PROJECT_PATH="$SCRIPT_DIR/NucliaDbClient.McpServer.csproj"
-# Set environment variable for NucliaDB URL
-export NUCLIA_BASE_URL="http://localhost:8080/api/v1"
+# Add the MCP server to Claude Code configuration
+claude mcp add nuclia-db dotnet run --project "$PROJECT_PATH" --env NUCLIA_BASE_URL=http://localhost:8080/api/v1
-# Run the MCP server
-cd "$SCRIPT_DIR"
-exec dotnet run --no-build
+echo "NucliaDB MCP server added to Claude Code!"
+echo ""
+echo "Make sure NucliaDB is running before using the MCP tools:"
+echo " cd $SCRIPT_DIR && ./start-mcp-server.sh"
+echo ""
+echo "You can verify the server is configured by running:"
+echo " claude-code mcp list"
From 976c3ac0744442adec54f143dbdb8f6ed642a1f0 Mon Sep 17 00:00:00 2001
From: Christian Findlay <16697547+MelbourneDeveloper@users.noreply.github.com>
Date: Sun, 19 Oct 2025 16:41:09 +1100
Subject: [PATCH 2/9] get the mcp up and running
---
.../NucliaDbClient.McpServer.csproj | 3 +-
Samples/NucliaDbClient.McpServer/Program.cs | 34 ++++--
.../run-for-claude.sh | 36 +++++-
.../Generated/NucliaDbMcpTools.g.cs | 112 ++++++++++++++++++
4 files changed, 165 insertions(+), 20 deletions(-)
diff --git a/Samples/NucliaDbClient.McpServer/NucliaDbClient.McpServer.csproj b/Samples/NucliaDbClient.McpServer/NucliaDbClient.McpServer.csproj
index 30efeb44..a7b94ce1 100644
--- a/Samples/NucliaDbClient.McpServer/NucliaDbClient.McpServer.csproj
+++ b/Samples/NucliaDbClient.McpServer/NucliaDbClient.McpServer.csproj
@@ -2,9 +2,10 @@
Exe
net9.0
- CA1303;CA2000
+ CA1303;CA2000;CA2007;IDE0005
+
diff --git a/Samples/NucliaDbClient.McpServer/Program.cs b/Samples/NucliaDbClient.McpServer/Program.cs
index 1c9fbb59..ce6bd54a 100644
--- a/Samples/NucliaDbClient.McpServer/Program.cs
+++ b/Samples/NucliaDbClient.McpServer/Program.cs
@@ -1,16 +1,24 @@
using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Hosting;
+using Microsoft.Extensions.Logging;
+using ModelContextProtocol.Server;
using NucliaDB.Mcp;
+var builder = Host.CreateApplicationBuilder(args);
+
+// Configure logging to stderr to not interfere with stdio MCP protocol
+builder.Logging.AddConsole(consoleLogOptions =>
+{
+ consoleLogOptions.LogToStandardErrorThreshold = LogLevel.Trace;
+});
+
// Get the NucliaDB base URL from environment or use default
var nucleaBaseUrl =
Environment.GetEnvironmentVariable("NUCLIA_BASE_URL") ?? "http://localhost:8080/api/v1";
-// Create a simple HTTP client factory
-var services = new ServiceCollection();
-
// Configure HttpClient with base URL
-services.AddHttpClient(
- "default",
+builder.Services.AddHttpClient(
+ string.Empty,
client =>
{
client.BaseAddress = new Uri(nucleaBaseUrl);
@@ -19,13 +27,13 @@
);
// Add the NucliaDB tools to DI
-services.AddSingleton();
-
-var serviceProvider = services.BuildServiceProvider();
+builder.Services.AddSingleton();
-// TODO: Wire up MCP server when ModelContextProtocol API stabilizes
-Console.WriteLine("NucliaDB MCP Server - MCP tools generated successfully!");
-Console.WriteLine($"Configured for NucliaDB at: {nucleaBaseUrl}");
-Console.WriteLine("Ready to integrate with ModelContextProtocol when API is stable.");
+// Add MCP server with stdio transport and tools from assembly
+builder.Services
+ .AddMcpServer()
+ .WithStdioServerTransport()
+ .WithToolsFromAssembly();
-await Task.CompletedTask.ConfigureAwait(false);
+var host = builder.Build();
+await host.RunAsync();
diff --git a/Samples/NucliaDbClient.McpServer/run-for-claude.sh b/Samples/NucliaDbClient.McpServer/run-for-claude.sh
index 7f65988e..eece1073 100755
--- a/Samples/NucliaDbClient.McpServer/run-for-claude.sh
+++ b/Samples/NucliaDbClient.McpServer/run-for-claude.sh
@@ -3,17 +3,41 @@
# Add the NucliaDB MCP server to Claude Code
# This allows Claude Code to interact with NucliaDB via the Model Context Protocol
+set -e
+
# Get the absolute path to the project directory
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_PATH="$SCRIPT_DIR/NucliaDbClient.McpServer.csproj"
+# Find the dotnet executable
+DOTNET_PATH=$(which dotnet)
+
+echo "Configuring NucliaDB MCP server for Claude Code..."
+echo " Script directory: $SCRIPT_DIR"
+echo " Project path: $PROJECT_PATH"
+echo " Dotnet path: $DOTNET_PATH"
+echo ""
+
# Add the MCP server to Claude Code configuration
-claude mcp add nuclia-db dotnet run --project "$PROJECT_PATH" --env NUCLIA_BASE_URL=http://localhost:8080/api/v1
+# The command structure is: claude mcp add [options] [--env KEY=value] -- [args...]
+claude mcp add --transport stdio nucliadb-mcp --env NUCLIA_BASE_URL=http://localhost:8080/api/v1 -- "$DOTNET_PATH" run --project "$PROJECT_PATH" --no-build
-echo "NucliaDB MCP server added to Claude Code!"
echo ""
-echo "Make sure NucliaDB is running before using the MCP tools:"
-echo " cd $SCRIPT_DIR && ./start-mcp-server.sh"
+echo "✓ NucliaDB MCP server added to Claude Code!"
+echo ""
+echo "Next steps:"
+echo " 1. Make sure NucliaDB is running:"
+echo " cd $SCRIPT_DIR && docker-compose up -d"
+echo ""
+echo " 2. Verify the MCP server is configured:"
+echo " claude mcp list"
+echo ""
+echo " 3. Test the connection:"
+echo " The server should appear as 'nucliadb-mcp' with a ✓ or ✗ status"
echo ""
-echo "You can verify the server is configured by running:"
-echo " claude-code mcp list"
+echo "Available MCP tools:"
+echo " - Knowledge box management (get, create, delete)"
+echo " - Search (full-text, semantic, catalog)"
+echo " - Ask (question-answering)"
+echo " - Resources (CRUD operations)"
+echo " - And 100+ more NucliaDB API operations!"
diff --git a/Samples/NucliaDbClient/Generated/NucliaDbMcpTools.g.cs b/Samples/NucliaDbClient/Generated/NucliaDbMcpTools.g.cs
index d7750ad3..e6db4020 100644
--- a/Samples/NucliaDbClient/Generated/NucliaDbMcpTools.g.cs
+++ b/Samples/NucliaDbClient/Generated/NucliaDbMcpTools.g.cs
@@ -1,12 +1,14 @@
#nullable enable
using System.ComponentModel;
using System.Text.Json;
+using ModelContextProtocol.Server;
using Outcome;
using NucliaDB.Generated;
namespace NucliaDB.Mcp;
/// MCP server tools for NucliaDb API.
+[McpServerToolType]
public class NucliaDbTools(IHttpClientFactory httpClientFactory)
{
private static readonly JsonSerializerOptions JsonOptions = new()
@@ -18,6 +20,7 @@ public class NucliaDbTools(IHttpClientFactory httpClientFactory)
/// --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `MANAGER` - `READER`
/// slug
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `MANAGER` - `READER`")]
+ [McpServerTool]
public async Task KbBySlugKbSSlugGet(string slug)
{
var httpClient = httpClientFactory.CreateClient();
@@ -43,6 +46,7 @@ public async Task KbBySlugKbSSlugGet(string slug)
/// kbid
/// xNUCLIADBROLES
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `MANAGER` - `READER`")]
+ [McpServerTool]
public async Task KbKbKbidGet(string kbid, string xNUCLIADBROLES = "READER")
{
var httpClient = httpClientFactory.CreateClient();
@@ -73,6 +77,7 @@ public async Task KbKbKbidGet(string kbid, string xNUCLIADBROLES = "READ
/// When set to true, outputs response as JSON in a non-streaming way. This is slower and requires waiting for entire answer to be ready.
/// Request body
[Description("Ask questions on a Knowledge Box --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task AskKnowledgeboxEndpointKbKbidAsk(string kbid, AskRequest body, string xNdbClient = "api", bool xShowConsumption = false, string? xNucliadbUser = null, string? xForwardedFor = null, bool xSynchronous = false)
{
var httpClient = httpClientFactory.CreateClient();
@@ -113,6 +118,7 @@ public async Task AskKnowledgeboxEndpointKbKbidAsk(string kbid, AskReque
/// Set to filter only hidden or only non-hidden resources. Default is to return everything
/// Controls which types of metadata are serialized on resources of search results
[Description("List resources of a Knowledge Box --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task CatalogGetKbKbidCatalog(string kbid, string? query = null, object? filterExpression = null, List? filters = null, List? faceted = null, string? sortField = null, object? sortLimit = null, string sortOrder = "desc", int pageNumber = 0, int pageSize = 20, object? withStatus = null, object? rangeCreationStart = null, object? rangeCreationEnd = null, object? rangeModificationStart = null, object? rangeModificationEnd = null, object? hidden = null, List? show = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -138,6 +144,7 @@ public async Task CatalogGetKbKbidCatalog(string kbid, string? query = n
/// kbid
/// Request body
[Description("List resources of a Knowledge Box --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task CatalogPostKbKbidCatalog(string kbid, CatalogRequest body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -162,6 +169,7 @@ public async Task CatalogPostKbKbidCatalog(string kbid, CatalogRequest b
/// Current configuration of models assigned to a Knowledge Box --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER` - `MANAGER`
/// kbid
[Description("Current configuration of models assigned to a Knowledge Box --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER` - `MANAGER`")]
+ [McpServerTool]
public async Task ConfigurationKbKbidConfigurationGet(string kbid)
{
var httpClient = httpClientFactory.CreateClient();
@@ -187,6 +195,7 @@ public async Task ConfigurationKbKbidConfigurationGet(string kbid)
/// kbid
/// Request body
[Description("Update current configuration of models assigned to a Knowledge Box --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `MANAGER` - `WRITER`")]
+ [McpServerTool]
public async Task ConfigurationKbKbidConfigurationPatch(string kbid, object body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -212,6 +221,7 @@ public async Task ConfigurationKbKbidConfigurationPatch(string kbid, obj
/// kbid
/// Request body
[Description("Create configuration of models assigned to a Knowledge Box --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `MANAGER` - `WRITER`")]
+ [McpServerTool]
public async Task SetConfigurationKbKbidConfiguration(string kbid, object body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -238,6 +248,7 @@ public async Task SetConfigurationKbKbidConfiguration(string kbid, objec
/// If set, the response will include some extra metadata for debugging purposes, like the list of queried nodes.
/// xNUCLIADBROLES
[Description("Summary of amount of different things inside a knowledgebox --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER` - `MANAGER`")]
+ [McpServerTool]
public async Task KnowledgeboxCountersKbKbidCounters(string kbid, bool debug = false, string xNUCLIADBROLES = "READER")
{
var httpClient = httpClientFactory.CreateClient();
@@ -263,6 +274,7 @@ public async Task KnowledgeboxCountersKbKbidCounters(string kbid, bool d
/// kbid
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task SetCustomSynonymsKbKbidCustomSynonyms(string kbid, KnowledgeBoxSynonyms body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -287,6 +299,7 @@ public async Task SetCustomSynonymsKbKbidCustomSynonyms(string kbid, Kno
/// --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`
/// kbid
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task CustomSynonymsKbKbidCustomSynonymsDelete(string kbid)
{
var httpClient = httpClientFactory.CreateClient();
@@ -311,6 +324,7 @@ public async Task CustomSynonymsKbKbidCustomSynonymsDelete(string kbid)
/// --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`
/// kbid
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task CustomSynonymsKbKbidCustomSynonymsGet(string kbid)
{
var httpClient = httpClientFactory.CreateClient();
@@ -337,6 +351,7 @@ public async Task CustomSynonymsKbKbidCustomSynonymsGet(string kbid)
/// group
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task UpdateEntitiesGroupKbKbidEntitiesgroupGroup(string kbid, string group, UpdateEntitiesGroupPayload body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -362,6 +377,7 @@ public async Task UpdateEntitiesGroupKbKbidEntitiesgroupGroup(string kbi
/// kbid
/// group
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task EntitiesKbKbidEntitiesgroupGroupDelete(string kbid, string group)
{
var httpClient = httpClientFactory.CreateClient();
@@ -387,6 +403,7 @@ public async Task EntitiesKbKbidEntitiesgroupGroupDelete(string kbid, st
/// kbid
/// group
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task EntityKbKbidEntitiesgroupGroupGet(string kbid, string group)
{
var httpClient = httpClientFactory.CreateClient();
@@ -412,6 +429,7 @@ public async Task EntityKbKbidEntitiesgroupGroupGet(string kbid, string
/// kbid
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task CreateEntitiesGroupKbKbidEntitiesgroups(string kbid, CreateEntitiesGroupPayload body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -437,6 +455,7 @@ public async Task CreateEntitiesGroupKbKbidEntitiesgroups(string kbid, C
/// kbid
/// showEntities
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task EntitiesKbKbidEntitiesgroupsGet(string kbid, bool showEntities = false)
{
var httpClient = httpClientFactory.CreateClient();
@@ -462,6 +481,7 @@ public async Task EntitiesKbKbidEntitiesgroupsGet(string kbid, bool show
/// kbid
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `MANAGER` - `WRITER`")]
+ [McpServerTool]
public async Task StartKbExportEndpointKbKbidExport(string kbid, object body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -487,6 +507,7 @@ public async Task StartKbExportEndpointKbKbidExport(string kbid, object
/// kbid
/// exportId
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `MANAGER` - `READER`")]
+ [McpServerTool]
public async Task DownloadExportKbEndpointKbKbidExportExportId(string kbid, string exportId)
{
var httpClient = httpClientFactory.CreateClient();
@@ -512,6 +533,7 @@ public async Task DownloadExportKbEndpointKbKbidExportExportId(string kb
/// kbid
/// exportId
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `MANAGER` - `READER`")]
+ [McpServerTool]
public async Task ExportStatusEndpointKbKbidExportExportIdStatusGet(string kbid, string exportId)
{
var httpClient = httpClientFactory.CreateClient();
@@ -537,6 +559,7 @@ public async Task ExportStatusEndpointKbKbidExportExportIdStatusGet(stri
/// kbid
/// Request body
[Description("Add a extract strategy to a KB --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `MANAGER` - `WRITER`")]
+ [McpServerTool]
public async Task AddStrategyKbKbidExtractStrategies(string kbid, ExtractConfig body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -561,6 +584,7 @@ public async Task AddStrategyKbKbidExtractStrategies(string kbid, Extrac
/// Get available extract strategies --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER` - `MANAGER`
/// kbid
[Description("Get available extract strategies --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER` - `MANAGER`")]
+ [McpServerTool]
public async Task ExtractStrategiesKbKbidExtractStrategiesGet(string kbid)
{
var httpClient = httpClientFactory.CreateClient();
@@ -586,6 +610,7 @@ public async Task ExtractStrategiesKbKbidExtractStrategiesGet(string kbi
/// kbid
/// strategyId
[Description("Removes a extract strategy from a KB --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `MANAGER` - `WRITER`")]
+ [McpServerTool]
public async Task StrategyKbKbidExtractStrategiesStrategyStrategyIdDelete(string kbid, string strategyId)
{
var httpClient = httpClientFactory.CreateClient();
@@ -611,6 +636,7 @@ public async Task StrategyKbKbidExtractStrategiesStrategyStrategyIdDelet
/// kbid
/// strategyId
[Description("Get extract strategy for a given id --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER` - `MANAGER`")]
+ [McpServerTool]
public async Task ExtractStrategyFromIdKbKbidExtractStrategiesStrategyStrategyIdGet(string kbid, string strategyId)
{
var httpClient = httpClientFactory.CreateClient();
@@ -639,6 +665,7 @@ public async Task ExtractStrategyFromIdKbKbidExtractStrategiesStrategySt
/// xForwardedFor
/// Request body
[Description("Send feedback for a search operation in a Knowledge Box --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task SendFeedbackEndpointKbKbidFeedback(string kbid, FeedbackRequest body, string xNdbClient = "api", string? xNucliadbUser = null, string? xForwardedFor = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -693,6 +720,7 @@ public async Task SendFeedbackEndpointKbKbidFeedback(string kbid, Feedba
/// xNucliadbUser
/// xForwardedFor
[Description("Find on a Knowledge Box --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task FindKnowledgeboxKbKbidFind(string kbid, string? query = null, object? filterExpression = null, List? fields = null, List? filters = null, object? topK = null, object? minScore = null, object? minScoreSemantic = null, float minScoreBm25 = 0, object? vectorset = null, object? rangeCreationStart = null, object? rangeCreationEnd = null, object? rangeModificationStart = null, object? rangeModificationEnd = null, List? features = null, bool debug = false, bool highlight = false, List? show = null, List? fieldType = null, List? extracted = null, bool withDuplicates = false, bool withSynonyms = false, bool autofilter = false, List? securityGroups = null, bool showHidden = false, string rankFusion = "rrf", object? reranker = null, object? searchConfiguration = null, string xNdbClient = "api", string? xNucliadbUser = null, string? xForwardedFor = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -721,6 +749,7 @@ public async Task FindKnowledgeboxKbKbidFind(string kbid, string? query
/// xForwardedFor
/// Request body
[Description("Find on a Knowledge Box --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task FindPostKnowledgeboxKbKbidFind(string kbid, FindRequest body, string xNdbClient = "api", string? xNucliadbUser = null, string? xForwardedFor = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -749,6 +778,7 @@ public async Task FindPostKnowledgeboxKbKbidFind(string kbid, FindReques
/// xForwardedFor
/// Request body
[Description("Search on the Knowledge Box graph and retrieve triplets of vertex-edge-vertex --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task GraphSearchKnowledgeboxKbKbidGraph(string kbid, GraphSearchRequest body, string xNdbClient = "api", string? xNucliadbUser = null, string? xForwardedFor = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -777,6 +807,7 @@ public async Task GraphSearchKnowledgeboxKbKbidGraph(string kbid, GraphS
/// xForwardedFor
/// Request body
[Description("Search on the Knowledge Box graph and retrieve nodes (vertices) --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task GraphNodesSearchKnowledgeboxKbKbidGraphNodes(string kbid, GraphNodesSearchRequest body, string xNdbClient = "api", string? xNucliadbUser = null, string? xForwardedFor = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -805,6 +836,7 @@ public async Task GraphNodesSearchKnowledgeboxKbKbidGraphNodes(string kb
/// xForwardedFor
/// Request body
[Description("Search on the Knowledge Box graph and retrieve relations (edges) --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task GraphRelationsSearchKnowledgeboxKbKbidGraphRelations(string kbid, GraphRelationsSearchRequest body, string xNdbClient = "api", string? xNucliadbUser = null, string? xForwardedFor = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -830,6 +862,7 @@ public async Task GraphRelationsSearchKnowledgeboxKbKbidGraphRelations(s
/// kbid
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `MANAGER` - `WRITER`")]
+ [McpServerTool]
public async Task StartKbImportEndpointKbKbidImport(string kbid, object body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -855,6 +888,7 @@ public async Task StartKbImportEndpointKbKbidImport(string kbid, object
/// kbid
/// importId
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `MANAGER` - `READER`")]
+ [McpServerTool]
public async Task ImportStatusEndpointKbKbidImportImportIdStatusGet(string kbid, string importId)
{
var httpClient = httpClientFactory.CreateClient();
@@ -881,6 +915,7 @@ public async Task ImportStatusEndpointKbKbidImportImportIdStatusGet(stri
/// labelset
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task SetLabelsetEndpointKbKbidLabelsetLabelset(string kbid, string labelset, LabelSet body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -906,6 +941,7 @@ public async Task SetLabelsetEndpointKbKbidLabelsetLabelset(string kbid,
/// kbid
/// labelset
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task LabelsetEndpointKbKbidLabelsetLabelsetDelete(string kbid, string labelset)
{
var httpClient = httpClientFactory.CreateClient();
@@ -931,6 +967,7 @@ public async Task LabelsetEndpointKbKbidLabelsetLabelsetDelete(string kb
/// kbid
/// labelset
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task LabelsetEndpointKbKbidLabelsetLabelsetGet(string kbid, string labelset)
{
var httpClient = httpClientFactory.CreateClient();
@@ -955,6 +992,7 @@ public async Task LabelsetEndpointKbKbidLabelsetLabelsetGet(string kbid,
/// --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`
/// kbid
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task LabelsetsEndointKbKbidLabelsetsGet(string kbid)
{
var httpClient = httpClientFactory.CreateClient();
@@ -980,6 +1018,7 @@ public async Task LabelsetsEndointKbKbidLabelsetsGet(string kbid)
/// kbid
/// modelId
[Description("Get metadata for a particular model --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER` - `MANAGER`")]
+ [McpServerTool]
public async Task ModelKbKbidModelModelIdGet(string kbid, string modelId)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1004,6 +1043,7 @@ public async Task ModelKbKbidModelModelIdGet(string kbid, string modelId
/// Get available models --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER` - `MANAGER`
/// kbid
[Description("Get available models --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER` - `MANAGER`")]
+ [McpServerTool]
public async Task ModelsKbKbidModelsGet(string kbid)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1030,6 +1070,7 @@ public async Task ModelsKbKbidModelsGet(string kbid)
/// modelId
/// filename
[Description("Download the trained model or any other generated file as a result of a training task on a Knowledge Box. --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER` - `MANAGER`")]
+ [McpServerTool]
public async Task DownloadModelKbKbidModelsModelIdFilename(string kbid, string modelId, string filename)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1054,6 +1095,7 @@ public async Task DownloadModelKbKbidModelsModelIdFilename(string kbid,
/// Provides a stream of activity notifications for the given Knowledge Box. The stream will be automatically closed after 2 minutes. --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`
/// kbid
[Description("Provides a stream of activity notifications for the given Knowledge Box. The stream will be automatically closed after 2 minutes. --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task NotificationsEndpointKbKbidNotifications(string kbid)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1083,6 +1125,7 @@ public async Task NotificationsEndpointKbKbidNotifications(string kbid)
/// xForwardedFor
/// Request body
[Description("Convenience endpoint that proxies requests to the Predict API. It adds the Knowledge Box configuration settings as headers to the predict API request. Refer to the Predict API documentation for more details about the request and response models: https://docs.nuclia.dev/docs/nua-api#tag/Predict --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task PredictProxyEndpointKbKbidPredictEndpoint(string kbid, string endpoint, object body, string? xNucliadbUser = null, string xNdbClient = "api", string? xForwardedFor = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1111,6 +1154,7 @@ public async Task PredictProxyEndpointKbKbidPredictEndpoint(string kbid,
/// xNdbClient
/// xForwardedFor
[Description("Convenience endpoint that proxies requests to the Predict API. It adds the Knowledge Box configuration settings as headers to the predict API request. Refer to the Predict API documentation for more details about the request and response models: https://docs.nuclia.dev/docs/nua-api#tag/Predict --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task PredictProxyEndpointKbKbidPredictEndpoint2(string kbid, string endpoint, string? xNucliadbUser = null, string xNdbClient = "api", string? xForwardedFor = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1138,6 +1182,7 @@ public async Task PredictProxyEndpointKbKbidPredictEndpoint2(string kbid
/// scheduled
/// limit
[Description("Provides the status of the processing of the given Knowledge Box. --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task ProcessingStatusKbKbidProcessingStatus(string kbid, object? cursor = null, object? scheduled = null, int limit = 20)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1167,6 +1212,7 @@ public async Task ProcessingStatusKbKbidProcessingStatus(string kbid, ob
/// Split strategy to use when uploading a file. If not provided, the default strategy will be used.
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task TusPostRidPrefixKbKbidResourcePathRidFileFieldTusupload(string kbid, string pathRid, string field, object body, object? xExtractStrategy = null, object? xSplitStrategy = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1194,6 +1240,7 @@ public async Task TusPostRidPrefixKbKbidResourcePathRidFileFieldTusuploa
/// field
/// uploadId
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task UploadInformationKbKbidResourcePathRidFileFieldTusuploadUploadId(string kbid, string pathRid, string field, string uploadId)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1227,6 +1274,7 @@ public async Task UploadInformationKbKbidResourcePathRidFileFieldTusuplo
/// Split strategy to use when uploading a file. If not provided, the default strategy will be used.
/// Request body
[Description("Upload a file as a field on an existing resource, if the field exists will return a conflict (419) --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task UploadRidPrefixKbKbidResourcePathRidFileFieldUpload(string kbid, string pathRid, string field, object body, object? xFilename = null, object? xPassword = null, object? xLanguage = null, object? xMd5 = null, object? xExtractStrategy = null, object? xSplitStrategy = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1256,6 +1304,7 @@ public async Task UploadRidPrefixKbKbidResourcePathRidFileFieldUpload(st
/// xNUCLIADBROLES
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task ModifyResourceRidPrefixKbKbidResourceRid(string kbid, string rid, UpdateResourcePayload body, string? xNucliadbUser = null, bool xSkipStore = false, string xNUCLIADBROLES = "WRITER")
{
var httpClient = httpClientFactory.CreateClient();
@@ -1282,6 +1331,7 @@ public async Task ModifyResourceRidPrefixKbKbidResourceRid(string kbid,
/// rid
/// xNUCLIADBROLES
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task ResourceRidPrefixKbKbidResourceRidDelete(string kbid, string rid, string xNUCLIADBROLES = "WRITER")
{
var httpClient = httpClientFactory.CreateClient();
@@ -1313,6 +1363,7 @@ public async Task ResourceRidPrefixKbKbidResourceRidDelete(string kbid,
/// xForwardedFor
/// xNUCLIADBROLES
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task ResourceByUuidKbKbidResourceRidGet(string kbid, string rid, List? show = null, List? fieldType = null, List? extracted = null, string? xNucliadbUser = null, string? xForwardedFor = null, string xNUCLIADBROLES = "READER")
{
var httpClient = httpClientFactory.CreateClient();
@@ -1344,6 +1395,7 @@ public async Task ResourceByUuidKbKbidResourceRidGet(string kbid, string
/// When set to true, outputs response as JSON in a non-streaming way. This is slower and requires waiting for entire answer to be ready.
/// Request body
[Description("Ask questions to a resource --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task ResourceAskEndpointByUuidKbKbidResourceRidAsk(string kbid, string rid, AskRequest body, bool xShowConsumption = false, string xNdbClient = "api", string? xNucliadbUser = null, string? xForwardedFor = null, bool xSynchronous = false)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1371,6 +1423,7 @@ public async Task ResourceAskEndpointByUuidKbKbidResourceRidAsk(string k
/// fieldId
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task AddResourceFieldConversationRidPrefixKbKbidResourceRidConversationFieldId(string kbid, string rid, string fieldId, InputConversationField body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1399,6 +1452,7 @@ public async Task AddResourceFieldConversationRidPrefixKbKbidResourceRid
/// messageId
/// fileNum
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task DownloadFieldConversationAttachmentRidPrefixKbKbidResourceRidConversationFieldIdDownloadFieldMessageIdFileNum(string kbid, string rid, string fieldId, string messageId, int fileNum)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1426,6 +1480,7 @@ public async Task DownloadFieldConversationAttachmentRidPrefixKbKbidReso
/// fieldId
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task AppendMessagesToConversationFieldRidPrefixKbKbidResourceRidConversationFieldIdMessages(string kbid, string rid, string fieldId, object body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1454,6 +1509,7 @@ public async Task AppendMessagesToConversationFieldRidPrefixKbKbidResour
/// If set to true, file fields will not be saved in the blob storage. They will only be sent to process.
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task AddResourceFieldFileRidPrefixKbKbidResourceRidFileFieldId(string kbid, string rid, string fieldId, FileField body, bool xSkipStore = false)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1481,6 +1537,7 @@ public async Task AddResourceFieldFileRidPrefixKbKbidResourceRidFileFiel
/// fieldId
/// inline
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task DownloadFieldFileRidPrefixKbKbidResourceRidFileFieldIdDownloadField(string kbid, string rid, string fieldId, bool inline = false)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1511,6 +1568,7 @@ public async Task DownloadFieldFileRidPrefixKbKbidResourceRidFileFieldId
/// If a file is password protected, the password must be provided here for the file to be processed
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task ReprocessFileFieldKbKbidResourceRidFileFieldIdReprocess(string kbid, string rid, string fieldId, object body, bool resetTitle = false, string? xNucliadbUser = null, object? xFilePassword = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1539,6 +1597,7 @@ public async Task ReprocessFileFieldKbKbidResourceRidFileFieldIdReproces
/// uploadId
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task TusPatchRidPrefixKbKbidResourceRidFileFieldTusuploadUploadId(string kbid, string rid, string field, string uploadId, object body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1566,6 +1625,7 @@ public async Task TusPatchRidPrefixKbKbidResourceRidFileFieldTusuploadUp
/// fieldId
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task AddResourceFieldLinkRidPrefixKbKbidResourceRidLinkFieldId(string kbid, string rid, string fieldId, LinkField body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1593,6 +1653,7 @@ public async Task AddResourceFieldLinkRidPrefixKbKbidResourceRidLinkFiel
/// reindexVectors
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task ReindexResourceRidPrefixKbKbidResourceRidReindex(string kbid, string rid, object body, bool reindexVectors = false)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1621,6 +1682,7 @@ public async Task ReindexResourceRidPrefixKbKbidResourceRidReindex(strin
/// xNucliadbUser
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task ReprocessResourceRidPrefixKbKbidResourceRidReprocess(string kbid, string rid, object body, bool resetTitle = false, string? xNucliadbUser = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1648,6 +1710,7 @@ public async Task ReprocessResourceRidPrefixKbKbidResourceRidReprocess(s
/// xNucliadbUser
/// Request body
[Description("Run Agents on Resource --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task RunAgentsByUuidKbKbidResourceRidRunAgents(string kbid, string rid, ResourceAgentsRequest body, string? xNucliadbUser = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1688,6 +1751,7 @@ public async Task RunAgentsByUuidKbKbidResourceRidRunAgents(string kbid,
/// If set, the response will include some extra metadata for debugging purposes, like the list of queried nodes.
/// xNdbClient
[Description("Search on a single resource --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task ResourceSearchKbKbidResourceRidSearch(string kbid, string rid, string query, object? filterExpression = null, List? fields = null, List? filters = null, List? faceted = null, object? sortField = null, string sortOrder = "desc", object? topK = null, object? rangeCreationStart = null, object? rangeCreationEnd = null, object? rangeModificationStart = null, object? rangeModificationEnd = null, bool highlight = false, bool debug = false, string xNdbClient = "api")
{
var httpClient = httpClientFactory.CreateClient();
@@ -1716,6 +1780,7 @@ public async Task ResourceSearchKbKbidResourceRidSearch(string kbid, str
/// xNUCLIADBROLES
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task AddResourceFieldTextRidPrefixKbKbidResourceRidTextFieldId(string kbid, string rid, string fieldId, TextField body, string xNUCLIADBROLES = "WRITER")
{
var httpClient = httpClientFactory.CreateClient();
@@ -1743,6 +1808,7 @@ public async Task AddResourceFieldTextRidPrefixKbKbidResourceRidTextFiel
/// fieldType
/// fieldId
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task ResourceFieldRidPrefixKbKbidResourceRidFieldTypeFieldIdDelete(string kbid, string rid, string fieldType, string fieldId)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1773,6 +1839,7 @@ public async Task ResourceFieldRidPrefixKbKbidResourceRidFieldTypeFieldI
/// extracted
/// page
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task ResourceFieldRidPrefixKbKbidResourceRidFieldTypeFieldIdGet(string kbid, string rid, string fieldType, string fieldId, List? show = null, List? extracted = null, object? page = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1801,6 +1868,7 @@ public async Task ResourceFieldRidPrefixKbKbidResourceRidFieldTypeFieldI
/// fieldId
/// downloadField
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task DownloadExtractFileRidPrefixKbKbidResourceRidFieldTypeFieldIdDownloadExtractedDownloadField(string kbid, string rid, string fieldType, string fieldId, string downloadField)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1829,6 +1897,7 @@ public async Task DownloadExtractFileRidPrefixKbKbidResourceRidFieldType
/// xNUCLIADBROLES
/// Request body
[Description("Create a new Resource in a Knowledge Box --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task CreateResourceKbKbidResources(string kbid, CreateResourcePayload body, bool xSkipStore = false, string? xNucliadbUser = null, string xNUCLIADBROLES = "WRITER")
{
var httpClient = httpClientFactory.CreateClient();
@@ -1856,6 +1925,7 @@ public async Task CreateResourceKbKbidResources(string kbid, CreateResou
/// Page size
/// xNUCLIADBROLES
[Description("List of resources of a knowledgebox --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task ListResourcesKbKbidResources(string kbid, int page = 0, int size = 20, string xNUCLIADBROLES = "READER")
{
var httpClient = httpClientFactory.CreateClient();
@@ -1880,6 +1950,7 @@ public async Task ListResourcesKbKbidResources(string kbid, int page = 0
/// Get jsonschema definition to update the `learning_configuration` of your Knowledge Box --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER` - `MANAGER`
/// kbid
[Description("Get jsonschema definition to update the `learning_configuration` of your Knowledge Box --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER` - `MANAGER`")]
+ [McpServerTool]
public async Task SchemaForConfigurationUpdatesKbKbidSchemaGet(string kbid)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1935,6 +2006,7 @@ public async Task SchemaForConfigurationUpdatesKbKbidSchemaGet(string kb
/// xNucliadbUser
/// xForwardedFor
[Description("Search on a Knowledge Box and retrieve separate results for documents, paragraphs, and sentences. Usually, it is better to use `find` --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task SearchKnowledgeboxKbKbidSearch(string kbid, string? query = null, object? filterExpression = null, List? fields = null, List? filters = null, List? faceted = null, string? sortField = null, object? sortLimit = null, string sortOrder = "desc", int topK = 20, object? minScore = null, object? minScoreSemantic = null, float minScoreBm25 = 0, object? vectorset = null, object? rangeCreationStart = null, object? rangeCreationEnd = null, object? rangeModificationStart = null, object? rangeModificationEnd = null, List? features = null, bool debug = false, bool highlight = false, List? show = null, List? fieldType = null, List? extracted = null, bool withDuplicates = false, bool withSynonyms = false, bool autofilter = false, List? securityGroups = null, bool showHidden = false, string xNdbClient = "api", string? xNucliadbUser = null, string? xForwardedFor = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1963,6 +2035,7 @@ public async Task SearchKnowledgeboxKbKbidSearch(string kbid, string? qu
/// xForwardedFor
/// Request body
[Description("Search on a Knowledge Box and retrieve separate results for documents, paragraphs, and sentences. Usually, it is better to use `find` --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task SearchPostKnowledgeboxKbKbidSearch(string kbid, SearchRequest body, string xNdbClient = "api", string? xNucliadbUser = null, string? xForwardedFor = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -1987,6 +2060,7 @@ public async Task SearchPostKnowledgeboxKbKbidSearch(string kbid, Search
/// --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`
/// kbid
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task ListSearchConfigurationsKbKbidSearchConfigurations(string kbid)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2013,6 +2087,7 @@ public async Task ListSearchConfigurationsKbKbidSearchConfigurations(str
/// configName
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task CreateSearchConfigurationKbKbidSearchConfigurationsConfigName(string kbid, string configName, object body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2039,6 +2114,7 @@ public async Task CreateSearchConfigurationKbKbidSearchConfigurationsCon
/// configName
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task UpdateSearchConfigurationKbKbidSearchConfigurationsConfigName(string kbid, string configName, object body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2064,6 +2140,7 @@ public async Task UpdateSearchConfigurationKbKbidSearchConfigurationsCon
/// kbid
/// configName
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task SearchConfigurationKbKbidSearchConfigurationsConfigNameDelete(string kbid, string configName)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2089,6 +2166,7 @@ public async Task SearchConfigurationKbKbidSearchConfigurationsConfigNam
/// kbid
/// configName
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task SearchConfigurationKbKbidSearchConfigurationsConfigNameGet(string kbid, string configName)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2117,6 +2195,7 @@ public async Task SearchConfigurationKbKbidSearchConfigurationsConfigNam
/// xNucliadbUser
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task ModifyResourceRslugPrefixKbKbidSlugRslug(string kbid, string rslug, UpdateResourcePayload body, bool xSkipStore = false, string? xNucliadbUser = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2142,6 +2221,7 @@ public async Task ModifyResourceRslugPrefixKbKbidSlugRslug(string kbid,
/// kbid
/// rslug
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task ResourceRslugPrefixKbKbidSlugRslugDelete(string kbid, string rslug)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2172,6 +2252,7 @@ public async Task ResourceRslugPrefixKbKbidSlugRslugDelete(string kbid,
/// xNucliadbUser
/// xForwardedFor
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task ResourceBySlugKbKbidSlugRslugGet(string kbid, string rslug, List? show = null, List? fieldType = null, List? extracted = null, string? xNucliadbUser = null, string? xForwardedFor = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2199,6 +2280,7 @@ public async Task ResourceBySlugKbKbidSlugRslugGet(string kbid, string r
/// fieldId
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task AddResourceFieldConversationRslugPrefixKbKbidSlugRslugConversationFieldId(string kbid, string rslug, string fieldId, InputConversationField body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2227,6 +2309,7 @@ public async Task AddResourceFieldConversationRslugPrefixKbKbidSlugRslug
/// messageId
/// fileNum
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task DownloadFieldConversationRslugPrefixKbKbidSlugRslugConversationFieldIdDownloadFieldMessageIdFileNum(string kbid, string rslug, string fieldId, string messageId, int fileNum)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2254,6 +2337,7 @@ public async Task DownloadFieldConversationRslugPrefixKbKbidSlugRslugCon
/// fieldId
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task AppendMessagesToConversationFieldRslugPrefixKbKbidSlugRslugConversationFieldIdMessages(string kbid, string rslug, string fieldId, object body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2282,6 +2366,7 @@ public async Task AppendMessagesToConversationFieldRslugPrefixKbKbidSlug
/// If set to true, file fields will not be saved in the blob storage. They will only be sent to process.
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task AddResourceFieldFileRslugPrefixKbKbidSlugRslugFileFieldId(string kbid, string rslug, string fieldId, FileField body, bool xSkipStore = false)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2309,6 +2394,7 @@ public async Task AddResourceFieldFileRslugPrefixKbKbidSlugRslugFileFiel
/// fieldId
/// inline
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task DownloadFieldFileRslugPrefixKbKbidSlugRslugFileFieldIdDownloadField(string kbid, string rslug, string fieldId, bool inline = false)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2338,6 +2424,7 @@ public async Task DownloadFieldFileRslugPrefixKbKbidSlugRslugFileFieldId
/// Split strategy to use when uploading a file. If not provided, the default strategy will be used.
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task TusPostRslugPrefixKbKbidSlugRslugFileFieldTusupload(string kbid, string rslug, string field, object body, object? xExtractStrategy = null, object? xSplitStrategy = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2366,6 +2453,7 @@ public async Task TusPostRslugPrefixKbKbidSlugRslugFileFieldTusupload(st
/// uploadId
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task TusPatchRslugPrefixKbKbidSlugRslugFileFieldTusuploadUploadId(string kbid, string rslug, string field, string uploadId, object body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2393,6 +2481,7 @@ public async Task TusPatchRslugPrefixKbKbidSlugRslugFileFieldTusuploadUp
/// field
/// uploadId
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task UploadInformationKbKbidSlugRslugFileFieldTusuploadUploadId(string kbid, string rslug, string field, string uploadId)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2426,6 +2515,7 @@ public async Task UploadInformationKbKbidSlugRslugFileFieldTusuploadUplo
/// Split strategy to use when uploading a file. If not provided, the default strategy will be used.
/// Request body
[Description("Upload a file as a field on an existing resource, if the field exists will return a conflict (419) --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task UploadRslugPrefixKbKbidSlugRslugFileFieldUpload(string kbid, string rslug, string field, object body, object? xFilename = null, object? xPassword = null, object? xLanguage = null, object? xMd5 = null, object? xExtractStrategy = null, object? xSplitStrategy = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2453,6 +2543,7 @@ public async Task UploadRslugPrefixKbKbidSlugRslugFileFieldUpload(string
/// fieldId
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task AddResourceFieldLinkRslugPrefixKbKbidSlugRslugLinkFieldId(string kbid, string rslug, string fieldId, LinkField body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2480,6 +2571,7 @@ public async Task AddResourceFieldLinkRslugPrefixKbKbidSlugRslugLinkFiel
/// reindexVectors
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task ReindexResourceRslugPrefixKbKbidSlugRslugReindex(string kbid, string rslug, object body, bool reindexVectors = false)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2508,6 +2600,7 @@ public async Task ReindexResourceRslugPrefixKbKbidSlugRslugReindex(strin
/// xNucliadbUser
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task ReprocessResourceRslugPrefixKbKbidSlugRslugReprocess(string kbid, string rslug, object body, bool resetTitle = false, string? xNucliadbUser = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2535,6 +2628,7 @@ public async Task ReprocessResourceRslugPrefixKbKbidSlugRslugReprocess(s
/// fieldId
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task AddResourceFieldTextRslugPrefixKbKbidSlugRslugTextFieldId(string kbid, string rslug, string fieldId, TextField body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2562,6 +2656,7 @@ public async Task AddResourceFieldTextRslugPrefixKbKbidSlugRslugTextFiel
/// fieldType
/// fieldId
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task ResourceFieldRslugPrefixKbKbidSlugRslugFieldTypeFieldIdDelete(string kbid, string rslug, string fieldType, string fieldId)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2592,6 +2687,7 @@ public async Task ResourceFieldRslugPrefixKbKbidSlugRslugFieldTypeFieldI
/// extracted
/// page
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task ResourceFieldRslugPrefixKbKbidSlugRslugFieldTypeFieldIdGet(string kbid, string rslug, string fieldType, string fieldId, List? show = null, List? extracted = null, object? page = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2620,6 +2716,7 @@ public async Task ResourceFieldRslugPrefixKbKbidSlugRslugFieldTypeFieldI
/// fieldId
/// downloadField
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task DownloadExtractFileRslugPrefixKbKbidSlugRslugFieldTypeFieldIdDownloadExtractedDownloadField(string kbid, string rslug, string fieldType, string fieldId, string downloadField)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2651,6 +2748,7 @@ public async Task DownloadExtractFileRslugPrefixKbKbidSlugRslugFieldType
/// When set to true, outputs response as JSON in a non-streaming way. This is slower and requires waiting for entire answer to be ready.
/// Request body
[Description("Ask questions to a resource --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task ResourceAskEndpointBySlugKbKbidSlugSlugAsk(string kbid, string slug, AskRequest body, bool xShowConsumption = false, string xNdbClient = "api", string? xNucliadbUser = null, string? xForwardedFor = null, bool xSynchronous = false)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2678,6 +2776,7 @@ public async Task ResourceAskEndpointBySlugKbKbidSlugSlugAsk(string kbid
/// xNucliadbUser
/// Request body
[Description("Run Agents on Resource (by slug) --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task RunAgentsBySlugKbKbidSlugSlugRunAgents(string kbid, string slug, ResourceAgentsRequest body, string? xNucliadbUser = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2703,6 +2802,7 @@ public async Task RunAgentsBySlugKbKbidSlugSlugRunAgents(string kbid, st
/// kbid
/// Request body
[Description("Add a split strategy to a KB --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `MANAGER` - `WRITER`")]
+ [McpServerTool]
public async Task AddSplitStrategyKbKbidSplitStrategies(string kbid, SplitConfiguration body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2727,6 +2827,7 @@ public async Task AddSplitStrategyKbKbidSplitStrategies(string kbid, Spl
/// Get available split strategies --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER` - `MANAGER`
/// kbid
[Description("Get available split strategies --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER` - `MANAGER`")]
+ [McpServerTool]
public async Task SplitStrategiesKbKbidSplitStrategiesGet(string kbid)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2752,6 +2853,7 @@ public async Task SplitStrategiesKbKbidSplitStrategiesGet(string kbid)
/// kbid
/// strategyId
[Description("Removes a split strategy from a KB --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `MANAGER` - `WRITER`")]
+ [McpServerTool]
public async Task SplitStrategyKbKbidSplitStrategiesStrategyStrategyIdDelete(string kbid, string strategyId)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2777,6 +2879,7 @@ public async Task SplitStrategyKbKbidSplitStrategiesStrategyStrategyIdDe
/// kbid
/// strategyId
[Description("Get split strategy for a given id --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER` - `MANAGER`")]
+ [McpServerTool]
public async Task SplitStrategyFromIdKbKbidSplitStrategiesStrategyStrategyIdGet(string kbid, string strategyId)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2818,6 +2921,7 @@ public async Task SplitStrategyFromIdKbKbidSplitStrategiesStrategyStrate
/// xNucliadbUser
/// xForwardedFor
[Description("Suggestions on a knowledge box --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task SuggestKnowledgeboxKbKbidSuggest(string kbid, string query, List? fields = null, List? filters = null, List? faceted = null, object? rangeCreationStart = null, object? rangeCreationEnd = null, object? rangeModificationStart = null, object? rangeModificationEnd = null, List? features = null, List? show = null, List? fieldType = null, bool debug = false, bool highlight = false, bool showHidden = false, string xNdbClient = "api", string? xNucliadbUser = null, string? xForwardedFor = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2844,6 +2948,7 @@ public async Task SuggestKnowledgeboxKbKbidSuggest(string kbid, string q
/// xShowConsumption
/// Request body
[Description("Summarize Your Documents --- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `READER`")]
+ [McpServerTool]
public async Task SummarizeEndpointKbKbidSummarize(string kbid, SummarizeRequest body, bool xShowConsumption = false)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2871,6 +2976,7 @@ public async Task SummarizeEndpointKbKbidSummarize(string kbid, Summariz
/// Split strategy to use when uploading a file. If not provided, the default strategy will be used.
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task TusPostKbKbidTusupload(string kbid, object body, object? xExtractStrategy = null, object? xSplitStrategy = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2899,6 +3005,7 @@ public async Task TusPostKbKbidTusupload(string kbid, object body, objec
/// uploadId
/// field
[Description("TUS Server information")]
+ [McpServerTool]
public async Task TusOptionsKbKbidTusupload(string kbid, object? rid = null, object? rslug = null, object? uploadId = null, object? field = null)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2925,6 +3032,7 @@ public async Task TusOptionsKbKbidTusupload(string kbid, object? rid = n
/// uploadId
/// Request body
[Description("--- ## Authorization roles Authenticated user needs to fulfill one of this roles, otherwise the request will be rejected with a `403` response. - `WRITER`")]
+ [McpServerTool]
public async Task KbKbidTusuploadUploadIdPatch(string kbid, string uploadId, object body)
{
var httpClient = httpClientFactory.CreateClient();
@@ -2950,6 +3058,7 @@ public async Task KbKbidTusuploadUploadIdPatch(string kbid, string uploa
///