Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using HotChocolate.Adapters.Mcp.Configuration;
using HotChocolate.Adapters.Mcp.Diagnostics;
using HotChocolate.Adapters.Mcp.Handlers;
using HotChocolate.Adapters.Mcp.Storage;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Hosting;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using HotChocolate.Adapters.Mcp.Directives;
using HotChocolate.Types;
using HotChocolate.Types.Descriptors.Configurations;

namespace HotChocolate.Adapters.Mcp.Extensions;
// ReSharper disable once CheckNamespace
namespace HotChocolate.Types;

/// <summary>
/// Provides extension methods to <see cref="IObjectFieldDescriptor"/>.
/// </summary>
public static class ObjectFieldDescriptorExtensions
public static class McpObjectFieldDescriptorExtensions
{
/// <summary>
Comment thread
glen-84 marked this conversation as resolved.
/// Additional properties describing a Tool to clients.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using HotChocolate.Adapters.Mcp.Directives;

namespace HotChocolate.Adapters.Mcp.Extensions;
// ReSharper disable once CheckNamespace
namespace HotChocolate;

public static class SchemaBuilderExtensions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
using System.Diagnostics.CodeAnalysis;
using HotChocolate.Adapters.Mcp;
using HotChocolate.Adapters.Mcp.Configuration;
using HotChocolate.Adapters.Mcp.Extensions;
using HotChocolate.Adapters.Mcp.Storage;
using HotChocolate.Fusion.Configuration;
using Microsoft.Extensions.DependencyInjection;
using ModelContextProtocol.Server;

namespace HotChocolate.Adapters.Mcp.Extensions;
// ReSharper disable once CheckNamespace
namespace Microsoft.Extensions.DependencyInjection;

#if !NET9_0_OR_GREATER
[RequiresDynamicCode(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
using HotChocolate.Adapters.Mcp.Extensions;
using HotChocolate.Adapters.Mcp.Storage;
using HotChocolate.Language;
using HotChocolate.Types;
Expand Down
2 changes: 0 additions & 2 deletions website/src/docs/hotchocolate/v16/guides/mcp-adapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@ You can also apply annotations using the fluent descriptor API:

```csharp
// Types/MutationType.cs
using HotChocolate.Adapters.Mcp.Extensions;

public class MutationType : ObjectType<Mutation>
{
protected override void Configure(
Expand Down
Loading