Skip to content

Commit 56a6372

Browse files
docs
1 parent 37f03d5 commit 56a6372

4 files changed

Lines changed: 457 additions & 1 deletion

File tree

EssentialCSharp.Web/Areas/Identity/Pages/Account/Manage/McpAccess.cshtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<p>
1515
The <strong>Model Context Protocol (MCP)</strong> lets AI tools like GitHub Copilot and Claude access
1616
Essential C# book content directly. Create a named API token below and add it to your MCP client configuration.
17+
<a href="/mcp-setup" class="ms-1">Setup guide &amp; FAQ →</a>
1718
</p>
1819

1920
@if (Model.GeneratedToken is not null && Model.GeneratedTokenEntity is not null)
@@ -43,7 +44,7 @@
4344
}
4445
}
4546
}</code></pre>
46-
<p class="mt-2">To test locally with mcp-inspector, set the URL to <code>@(HttpContext.Request.Scheme)://@(HttpContext.Request.Host)/mcp</code> and add an <code>Authorization</code> header with value <code>Bearer &lt;token&gt;</code>.</p>
47+
<p class="mt-2 small text-muted">See the <a href="/mcp-setup#setup">AI Tools setup guide</a> for per-client configuration snippets.</p>
4748
</div>
4849
</div>
4950
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using EssentialCSharp.Web.Services;
2+
using Microsoft.AspNetCore.Authorization;
3+
using Microsoft.AspNetCore.Mvc;
4+
5+
namespace EssentialCSharp.Web.Controllers;
6+
7+
[AllowAnonymous]
8+
public class McpSetupController : BaseController
9+
{
10+
public McpSetupController(IRouteConfigurationService routeConfigurationService, IHttpContextAccessor httpContextAccessor)
11+
: base(routeConfigurationService, httpContextAccessor)
12+
{
13+
}
14+
15+
[Route("/mcp-setup")]
16+
public IActionResult Index()
17+
{
18+
ViewBag.PageTitle = "MCP Setup";
19+
return View();
20+
}
21+
}

0 commit comments

Comments
 (0)