Skip to content

Commit d96e96e

Browse files
authored
[mcp] Split MCP project into 3 (#8592)
1 parent 6552b2b commit d96e96e

File tree

86 files changed

+548
-674
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+548
-674
lines changed

src/All.slnx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,9 @@
244244
</Folder>
245245
<Folder Name="/HotChocolate/ModelContextProtocol/" />
246246
<Folder Name="/HotChocolate/ModelContextProtocol/src/">
247+
<Project Path="HotChocolate/ModelContextProtocol/src/HotChocolate.Fusion.ModelContextProtocol/HotChocolate.Fusion.ModelContextProtocol.csproj" />
247248
<Project Path="HotChocolate/ModelContextProtocol/src/HotChocolate.ModelContextProtocol/HotChocolate.ModelContextProtocol.csproj" />
249+
<Project Path="HotChocolate/ModelContextProtocol/src/HotChocolate.ModelContextProtocol.Core/HotChocolate.ModelContextProtocol.Core.csproj" />
248250
</Folder>
249251
<Folder Name="/HotChocolate/ModelContextProtocol/test/">
250252
<Project Path="HotChocolate/ModelContextProtocol/test/HotChocolate.ModelContextProtocol.Tests/HotChocolate.ModelContextProtocol.Tests.csproj" />
@@ -379,4 +381,4 @@
379381
<Folder Name="/StrawberryShake/Tooling/test/">
380382
<Project Path="StrawberryShake/Tooling/test/Configuration.Tests/StrawberryShake.Tools.Configuration.Tests.csproj" />
381383
</Folder>
382-
</Solution>
384+
</Solution>

src/HotChocolate/Core/src/Types.Abstractions/Types/Extensions/HotChocolateTypesAbstractionsScalarDefinitionExtensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ public static ScalarSerializationType GetScalarSerializationType(
1616
this IScalarTypeDefinition scalarTypeDefinition)
1717
{
1818
if (scalarTypeDefinition.SpecifiedBy is not null
19-
&& s_serializationTypeLookup.TryGetValue(scalarTypeDefinition.SpecifiedBy.AbsoluteUri, out var scalarSerializationType))
19+
&& s_serializationTypeLookup.TryGetValue(
20+
scalarTypeDefinition.SpecifiedBy.OriginalString,
21+
out var scalarSerializationType))
2022
{
2123
return scalarSerializationType;
2224
}

src/HotChocolate/Core/src/Types.NodaTime/DateTimeZoneType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public class DateTimeZoneType : StringToClassBaseType<DateTimeZone>
1818
public DateTimeZoneType() : base("DateTimeZone")
1919
{
2020
Description = NodaTimeResources.DateTimeZoneType_Description;
21+
SerializationType = ScalarSerializationType.String;
2122
}
2223

2324
/// <inheritdoc />

src/HotChocolate/Core/src/Types.NodaTime/DurationType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public DurationType(params IPattern<Duration>[] allowedPatterns) : base("Duratio
3030
allowedPatterns,
3131
NodaTimeResources.DurationType_Description,
3232
NodaTimeResources.DurationType_Description_Extended);
33+
SerializationType = ScalarSerializationType.String;
3334
}
3435

3536
/// <summary>

src/HotChocolate/Core/src/Types.NodaTime/InstantType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public InstantType(params IPattern<Instant>[] allowedPatterns) : base("Instant")
3030
allowedPatterns,
3131
NodaTimeResources.InstantType_Description,
3232
NodaTimeResources.InstantType_Description_Extended);
33+
SerializationType = ScalarSerializationType.String;
3334
}
3435

3536
/// <summary>

src/HotChocolate/Core/src/Types.NodaTime/IsoDayOfWeekType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public class IsoDayOfWeekType : IntToStructBaseType<IsoDayOfWeek>
1717
public IsoDayOfWeekType() : base("IsoDayOfWeek")
1818
{
1919
Description = NodaTimeResources.IsoDayOfWeekType_Description;
20+
SerializationType = ScalarSerializationType.Int;
2021
}
2122

2223
/// <inheritdoc />

src/HotChocolate/Core/src/Types.NodaTime/LocalDateTimeType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public LocalDateTimeType(params IPattern<LocalDateTime>[] allowedPatterns) : bas
3030
_allowedPatterns,
3131
NodaTimeResources.LocalDateTimeType_Description,
3232
NodaTimeResources.LocalDateTimeType_Description_Extended);
33+
SerializationType = ScalarSerializationType.String;
3334
}
3435

3536
/// <summary>

src/HotChocolate/Core/src/Types.NodaTime/LocalDateType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public LocalDateType(params IPattern<LocalDate>[] allowedPatterns) : base("Local
3131
allowedPatterns,
3232
NodaTimeResources.LocalDateType_Description,
3333
NodaTimeResources.LocalDateType_Description_Extended);
34+
SerializationType = ScalarSerializationType.String;
3435
}
3536

3637
/// <summary>

src/HotChocolate/Core/src/Types.NodaTime/LocalTimeType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public LocalTimeType(params IPattern<LocalTime>[] allowedPatterns) : base("Local
3131
allowedPatterns,
3232
NodaTimeResources.LocalTimeType_Description,
3333
NodaTimeResources.LocalTimeType_Description_Extended);
34+
SerializationType = ScalarSerializationType.String;
3435
}
3536

3637
/// <summary>

src/HotChocolate/Core/src/Types.NodaTime/OffsetDateTimeType.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public OffsetDateTimeType(params IPattern<OffsetDateTime>[] allowedPatterns)
3131
allowedPatterns,
3232
NodaTimeResources.OffsetDateTimeType_Description,
3333
NodaTimeResources.OffsetDateTimeType_Description_Extended);
34+
SerializationType = ScalarSerializationType.String;
3435
}
3536

3637
/// <summary>

0 commit comments

Comments
 (0)