Skip to main content

RSCG_MCP2File by Ignat Andrei

NuGet / site data

Nuget GitHub last commit GitHub Repo stars

Details

Info

info

Name: RSCG_MCP2File

Generating MCP tool function that exports to file the result of another MCP tool.

Author: Ignat Andrei

NuGet: https://www.nuget.org/packages/RSCG_MCP2File/

You can find more details at https://github.com/ignatandrei/RSCG_OpenApi2MCP

Source: https://github.com/ignatandrei/RSCG_OpenApi2MCP

Author

note

Ignat Andrei Alt text

Original Readme

note

This is a place holder

About

note

Generating code for saving MCP result to file.

How to use

Example (source csproj, source files)

This is the CSharp Project that references RSCG_MCP2File

<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.0" />

<PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.0" />
<PackageReference Include="ModelContextProtocol" Version="0.5.0-preview.1" />
<PackageReference Include="ModelContextProtocol.AspNetCore" Version="0.5.0-preview.1" />
<PackageReference Include="RSCG_MCP2File" Version="9.2025.1202.1952" />
<PackageReference Include="OpenAPISwaggerUI" Version="9.2024.1215.2209" />
<PackageReference Include="Serilog.AspNetCore" Version="10.0.0" />

</ItemGroup>
<PropertyGroup>
<EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
<CompilerGeneratedFilesOutputPath>$(BaseIntermediateOutputPath)\GX</CompilerGeneratedFilesOutputPath>
</PropertyGroup>
</Project>

Generated Files

Those are taken from $(BaseIntermediateOutputPath)\GX


namespace MCP2File
{
[global::Microsoft.CodeAnalysis.EmbeddedAttribute]
[global::System.AttributeUsage(global::System.AttributeTargets.Class, Inherited = false, AllowMultiple = false)]
internal class AddMCPExportToFile: global::System.Attribute {}
}

Useful

Download Example (.NET C#)

Share RSCG_MCP2File

https://ignatandrei.github.io/RSCG_Examples/v2/docs/RSCG_MCP2File

Category "MCP" has the following generators:

1 RSCG_MCP2File Nuget GitHub Repo stars 2025-11-15

2 RSCG_MCP2OpenAPI Nuget GitHub Repo stars 2025-11-11

See category

MCP