Skip to content

Commit 5b5e3c7

Browse files
authored
Merge pull request #433 from ignatandrei/RSCG_MCP2OpenAPI
2 parents 5e11812 + a2a3c1c commit 5b5e3c7

34 files changed

+642
-40
lines changed

README.md

Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# RSCG - 242 Examples of Roslyn Source Code Generators / 16 created by Microsoft /
1+
# RSCG - 243 Examples of Roslyn Source Code Generators / 16 created by Microsoft /
22

3-
The RSCG_Examples repository is a comprehensive documentation system that automatically processes and showcases 242 Roslyn Source Code Generator (RSCG) examples. The system transforms individual RSCG projects into structured documentation with code examples and cross-referenced content with a searchable website and code example exports.
3+
The RSCG_Examples repository is a comprehensive documentation system that automatically processes and showcases 243 Roslyn Source Code Generator (RSCG) examples. The system transforms individual RSCG projects into structured documentation with code examples and cross-referenced content with a searchable website and code example exports.
44

55
This system serves as both a learning resource for .NET developers interested in source generators and an automated pipeline for maintaining up-to-date documentation about the RSCG ecosystem
66

7-
## Latest Update : 2025-11-11 => 11 November 2025
7+
## Latest Update : 2025-11-15 => 15 November 2025
88

99
If you want to see examples with code, please click ***[List V2](https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG)***
1010

@@ -24,11 +24,11 @@ If you want to be notified each time I add a new RSCG example , please click htt
2424

2525
## Content
2626

27-
Those are the 242 Roslyn Source Code Generators that I have tested you can see and download source code example.
27+
Those are the 243 Roslyn Source Code Generators that I have tested you can see and download source code example.
2828
( including 16 from Microsoft )
29-
### 242. [RSCG_MCP2File](https://ignatandrei.github.io/RSCG_Examples/v2/docs/RSCG_MCP2File) , in the [MCP](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mcp) category
29+
### 243. [RSCG_MCP2File](https://ignatandrei.github.io/RSCG_Examples/v2/docs/RSCG_MCP2File) , in the [MCP](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mcp) category
3030

31-
Generated on : 2025-11-11 => 11 November 2025
31+
Generated on : 2025-11-15 => 15 November 2025
3232

3333
<details>
3434
<summary>Expand</summary>
@@ -48,9 +48,9 @@ Source: [https://github.com/ignatandrei/RSCG_OpenApi2MCP](https://github.com/ign
4848

4949
</details>
5050

51-
### 241. [DecoratorGenerator](https://ignatandrei.github.io/RSCG_Examples/v2/docs/DecoratorGenerator) , in the [Decorator](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#decorator) category
51+
### 242. [DecoratorGenerator](https://ignatandrei.github.io/RSCG_Examples/v2/docs/DecoratorGenerator) , in the [Decorator](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#decorator) category
5252

53-
Generated on : 2025-11-10 => 10 November 2025
53+
Generated on : 2025-11-13 => 13 November 2025
5454

5555
<details>
5656
<summary>Expand</summary>
@@ -72,6 +72,28 @@ Source: [https://github.com/CodingFlow/decorator-generator](https://github.com/C
7272

7373
</details>
7474

75+
### 241. [RSCG_MCP2OpenAPI](https://ignatandrei.github.io/RSCG_Examples/v2/docs/RSCG_MCP2OpenAPI) , in the [MCP](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#mcp) category
76+
77+
Generated on : 2025-11-11 => 11 November 2025
78+
79+
<details>
80+
<summary>Expand</summary>
81+
82+
83+
84+
Author: Ignat Andrei
85+
86+
Generating Swagger/OpenAPI function from MCP tool.
87+
88+
Nuget: [https://www.nuget.org/packages/RSCG_MCP2OpenAPI/](https://www.nuget.org/packages/RSCG_MCP2OpenAPI/)
89+
90+
91+
Link: [https://ignatandrei.github.io/RSCG_Examples/v2/docs/RSCG_MCP2OpenAPI](https://ignatandrei.github.io/RSCG_Examples/v2/docs/RSCG_MCP2OpenAPI)
92+
93+
Source: [https://github.com/ignatandrei/RSCG_OpenApi2MCP](https://github.com/ignatandrei/RSCG_OpenApi2MCP)
94+
95+
</details>
96+
7597
### 240. [XmlCommentGenerator](https://ignatandrei.github.io/RSCG_Examples/v2/docs/XmlCommentGenerator) , in the [API](https://ignatandrei.github.io/RSCG_Examples/v2/docs/rscg-examples#api) category
7698

7799
Generated on : 2025-11-09 => 09 November 2025

later.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Just later
22

3-
## Latest Update : 2025-11-11 => 11 November 2025
3+
## Latest Update : 2025-11-15 => 15 November 2025
44

55

66

v2/.tours/RSCG_MCP2OpenAPI.tour

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
2+
{
3+
"$schema": "https://aka.ms/codetour-schema",
4+
"title": "RSCG_MCP2OpenAPI",
5+
"steps":
6+
[
7+
{
8+
"file": "rscg_examples/RSCG_MCP2OpenAPI/src/MCPDemo/MCPDemo.csproj",
9+
"description": "First, we add Nuget [RSCG_MCP2OpenAPI](https://www.nuget.org/packages/RSCG_MCP2OpenAPI/) in csproj ",
10+
"pattern": "RSCG_MCP2OpenAPI"
11+
}
12+
13+
,{
14+
"file": "rscg_examples/RSCG_MCP2OpenAPI/src/MCPDemo/MyTools.cs",
15+
"description": "File MyTools.cs ",
16+
"pattern": "this is the code"
17+
}
18+
19+
,{
20+
"file": "rscg_examples/RSCG_MCP2OpenAPI/src/MCPDemo/Program.cs",
21+
"description": "File Program.cs \r\n>> dotnet run --project rscg_examples/RSCG_MCP2OpenAPI/src/MCPDemo/MCPDemo.csproj ",
22+
"pattern": "this is the code"
23+
}
24+
25+
26+
,{
27+
"file": "rscg_examples/RSCG_MCP2OpenAPI/src/MCPDemo/obj/GX/RSCG_MCP2OpenAPI/RSCG_MCP2OpenAPI.MCP2OpenAPI/MyTools_ExportToFile.g.cs",
28+
"description": "Generated File 3 from 3 : MyTools_ExportToFile.g.cs ",
29+
"line": 1
30+
}
31+
32+
,{
33+
"file": "rscg_examples/RSCG_MCP2OpenAPI/src/MCPDemo/obj/GX/RSCG_MCP2OpenAPI/RSCG_MCP2OpenAPI.MCP2OpenAPI/Microsoft.CodeAnalysis.EmbeddedAttribute.cs",
34+
"description": "Generated File 2 from 3 : Microsoft.CodeAnalysis.EmbeddedAttribute.cs ",
35+
"line": 1
36+
}
37+
38+
,{
39+
"file": "rscg_examples/RSCG_MCP2OpenAPI/src/MCPDemo/obj/GX/RSCG_MCP2OpenAPI/RSCG_MCP2OpenAPI.MCP2OpenAPI/MCP2OpenAPI.g.cs",
40+
"description": "Generated File 1 from 3 : MCP2OpenAPI.g.cs ",
41+
"line": 1
42+
}
43+
44+
],
45+
46+
"ref": "main"
47+
48+
}

v2/Generator/all.csv

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,5 +239,6 @@ Nr,Key,Source,Category
239239
238,TeCLI, https://github.com/tyevco/TeCLI,CommandLine
240240
239,TUnit, https://github.com/thomhurst/TUnit,Tests
241241
240,XmlCommentGenerator, https://github.com/dotnet/dotnet/,API
242-
241,DecoratorGenerator, https://github.com/CodingFlow/decorator-generator,Decorator
243-
242,RSCG_MCP2File, https://github.com/ignatandrei/RSCG_OpenApi2MCP,MCP
242+
241,RSCG_MCP2OpenAPI, https://github.com/ignatandrei/RSCG_OpenApi2MCP,MCP
243+
242,DecoratorGenerator, https://github.com/CodingFlow/decorator-generator,Decorator
244+
243,RSCG_MCP2File, https://github.com/ignatandrei/RSCG_OpenApi2MCP,MCP

v2/RSCGExamplesData/GeneratorDataRec.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,16 +1454,23 @@
14541454
"dtStart": "2025-11-09T00:00:00",
14551455
"show": true
14561456
},
1457+
{
1458+
"ID":"RSCG_MCP2OpenAPI",
1459+
"Category": 42,
1460+
"dtStart": "2025-11-11T00:00:00",
1461+
"show": true
1462+
},
1463+
14571464
{
14581465
"ID":"DecoratorGenerator",
14591466
"Category":41,
1460-
"dtStart": "2025-11-10T00:00:00",
1467+
"dtStart": "2025-11-13T00:00:00",
14611468
"show": true
14621469
},
14631470
{
14641471
"ID":"RSCG_MCP2File",
14651472
"Category": 42,
1466-
"dtStart": "2025-11-11T00:00:00",
1473+
"dtStart": "2025-11-15T00:00:00",
14671474
"show": true
14681475
}
14691476
]

v2/book/examples/DecoratorGenerator.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
<h1>RSCG nr 241 : DecoratorGenerator</h1>
2+
<h1>RSCG nr 242 : DecoratorGenerator</h1>
33

44
<h2>Info</h2>
55
Nuget : <a href="https://www.nuget.org/packages/DecoratorGenerator/" target="_blank">https://www.nuget.org/packages/DecoratorGenerator/</a>

v2/book/examples/RSCG_MCP2File.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
<h1>RSCG nr 242 : RSCG_MCP2File</h1>
2+
<h1>RSCG nr 243 : RSCG_MCP2File</h1>
33

44
<h2>Info</h2>
55
Nuget : <a href="https://www.nuget.org/packages/RSCG_MCP2File/" target="_blank">https://www.nuget.org/packages/RSCG_MCP2File/</a>
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
2+
<h1>RSCG nr 241 : RSCG_MCP2OpenAPI</h1>
3+
4+
<h2>Info</h2>
5+
Nuget : <a href="https://www.nuget.org/packages/RSCG_MCP2OpenAPI/" target="_blank">https://www.nuget.org/packages/RSCG_MCP2OpenAPI/</a>
6+
7+
<p>You can find more details at : <a href="https://github.com/ignatandrei/RSCG_OpenApi2MCP" target="_blank"> https://github.com/ignatandrei/RSCG_OpenApi2MCP</a></p>
8+
9+
<p>Author :Ignat Andrei</p>
10+
11+
<p>Source: <a href="https://github.com/ignatandrei/RSCG_OpenApi2MCP" target="_blank">https://github.com/ignatandrei/RSCG_OpenApi2MCP</a> </p>
12+
13+
<h2>About</h2>
14+
15+
Generating OpenAPI based on MCP source code.
16+
17+
<h2>
18+
How to use
19+
</h2>
20+
<h3>
21+
Add reference to the <a href="https://www.nuget.org/packages/RSCG_MCP2OpenAPI/" target="_blank">RSCG_MCP2OpenAPI</a> in the csproj
22+
</h3>
23+
<img src="images/RSCG_MCP2OpenAPI/MCPDemo.csproj.png" width="580" height="580" />
24+
25+
<h3>This was for me the <b>starting</b> code</h3>
26+
27+
<br />
28+
I have <b>coded</b> the file Program.cs
29+
<br />
30+
<img src="images/RSCG_MCP2OpenAPI/csFiles/Program.cs.png" width="580" height="580" />
31+
<hr />
32+
33+
<br />
34+
I have <b>coded</b> the file MyTools.cs
35+
<br />
36+
<img src="images/RSCG_MCP2OpenAPI/csFiles/MyTools.cs.png" width="580" height="580" />
37+
<hr />
38+
<h3>And here are the <i>generated</i> files</h3>
39+
40+
<br />
41+
The file <i>generated</i> is MCP2OpenAPI.g.cs
42+
<br />
43+
<img src="images/RSCG_MCP2OpenAPI/generated/MCP2OpenAPI.g.cs.png" width="580" height="580" />
44+
45+
<br />
46+
The file <i>generated</i> is Microsoft.CodeAnalysis.EmbeddedAttribute.cs
47+
<br />
48+
<img src="images/RSCG_MCP2OpenAPI/generated/Microsoft.CodeAnalysis.EmbeddedAttribute.cs.png" width="580" height="580" />
49+
50+
<br />
51+
The file <i>generated</i> is MyTools_ExportToFile.g.cs
52+
<br />
53+
<img src="images/RSCG_MCP2OpenAPI/generated/MyTools_ExportToFile.g.cs.png" width="580" height="580" />
54+
55+
<p>
56+
You can download the code and this page as pdf from
57+
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/RSCG_MCP2OpenAPI'>
58+
https://ignatandrei.github.io/RSCG_Examples/v2/docs/RSCG_MCP2OpenAPI
59+
</a>
60+
</p>
61+
62+
63+
<p>
64+
You can see the whole list at
65+
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG'>
66+
https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG
67+
</a>
68+
</p>
69+

v2/book/list.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</head>
1818
<body>
1919
<h1>
20-
This is the list of 242 RSCG with examples =>
20+
This is the list of 243 RSCG with examples =>
2121
</h1>
2222

2323
<table >
@@ -988,10 +988,14 @@ <h1>
988988
</tr>
989989
<tr>
990990
<td>241</td>
991-
<td><a href="examples/DecoratorGenerator.html">DecoratorGenerator</a></td>
991+
<td><a href="examples/RSCG_MCP2OpenAPI.html">RSCG_MCP2OpenAPI</a></td>
992992
</tr>
993993
<tr>
994994
<td>242</td>
995+
<td><a href="examples/DecoratorGenerator.html">DecoratorGenerator</a></td>
996+
</tr>
997+
<tr>
998+
<td>243</td>
995999
<td><a href="examples/RSCG_MCP2File.html">RSCG_MCP2File</a></td>
9961000
</tr>
9971001
</table>

v2/book/pandocHTML.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ input-files:
254254
- examples/TeCLI.html
255255
- examples/TUnit.html
256256
- examples/XmlCommentGenerator.html
257+
- examples/RSCG_MCP2OpenAPI.html
257258
- examples/DecoratorGenerator.html
258259
- examples/RSCG_MCP2File.html
259260

0 commit comments

Comments
 (0)