- Obtain an MCP Server from https://mcp.so/ e.g. https://mcp.so/server/supabase-mcp/supabase-community?tab=content
- In VS Code, open the command palette and select
MCP: Add Server...
- Select
NPM Package
. - Paste the NPM package
- Select
Allow
- Enter the connection string
- Select User Settings (e.g. available to all projects) or Workspace Settings (e.g. available to the current project)
- Run the MCP Server from
settings.json
. - Test the setup by asking Copilot
#query what is the schema of my database?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.ComponentModel; | |
using System.Linq; | |
using System.Reflection; | |
namespace Project.Core.Extensions | |
{ | |
public static class EnumExtensions | |
{ | |
public static string GetEnumDescription(this Enum value) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Umbraco.Core.Models.PublishedContent; | |
using Umbraco.Web; | |
public static class EnumerableExtensions { | |
public static bool HasAny<T> (this IEnumerable<T> items) => items != null && items.Any(); | |
public static bool IsNullOrEmpty<T>(this IEnumerable<T> items) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Text.RegularExpressions; | |
using Umbraco.Extensions; | |
namespace Concept.Core.Helpers | |
{ | |
public static class UrlHelper | |
{ | |
private const string URL_SCHEME_PATTERN = @"^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$"; | |
private const string URL_RELATIVE_PATTERN = @"^\/([\w-]+.)+[\w-]+(\/[\w- ])?\S$"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Umbraco.Cms.Core.Events; | |
using Umbraco.Cms.Core.Models.Blocks; | |
using Umbraco.Cms.Core.Notifications; | |
namespace Concept.Core.NotificationHandlers | |
{ | |
public class ContentPublishing : INotificationHandler<ContentPublishingNotification> | |
{ | |
public void Handle(ContentPublishingNotification notification) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Text; | |
using Microsoft.AspNetCore.Html; | |
using Microsoft.AspNetCore.Mvc.Rendering; | |
using Microsoft.AspNetCore.Mvc.ViewFeatures; | |
using Umbraco.Cms.Core.Models; | |
using Umbraco.Extensions; | |
namespace Concept.Core.Extensions | |
{ | |
public static class HtmlHelperExtensions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using HtmlAgilityPack; | |
namespace Concept.Core.Helpers | |
{ | |
public static class TableMarkupHelper | |
{ | |
public static ApplyHtmlStyleGuidelines(string text) | |
{ | |
HtmlDocument htmlDocument = new HtmlDocument(); | |
htmlDocument.LoadHtml(text); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://github.com/photonstorm/phaser3-examples/blob/master/public/src/game%20objects/graphics/health%20bars%20demo.js | |
import Phaser from "phaser"; | |
export default class HealthBar extends Phaser.GameObjects.Container { | |
constructor(scene, x, y) { | |
super(scene, x, y); | |
this.bar = new Phaser.GameObjects.Graphics(scene); |
NewerOlder