Orchardcore ai mcp

From CrestApps/CrestApps.AgentSkills · View interactive version

Orchardcore ai mcp is an AI agent skill from the GitHub repository CrestApps/CrestApps.AgentSkills. Overview skill for Model Context Protocol (MCP) support in Orchard Core through the CrestApps.OrchardCore.AI.Mcp module. Covers choosing between the MCP client features (CrestApps.OrchardCore.AI.Mcp for remote SSE servers, CrestApps.OrchardCore.AI.Mcp.Stdio for local process servers) and the MCP Ser

How to use this skill

Skill file

Orchard Core Model Context Protocol (MCP)

The Model Context Protocol is an open standard for connecting LLM applications to tools and data. The CrestApps.OrchardCore.AI.Mcp package lets Orchard Core act as an MCP client (use tools hosted elsewhere) and as an MCP server (offer Orchard Core tools, prompts, and resources to other AI apps).

Pick the right feature

| Goal | Feature ID | Skill |

|---|---|---|

| Call tools on a remote MCP server over HTTP | CrestApps.OrchardCore.AI.Mcp | orchardcore-ai-mcp-client |

| Run a local MCP server process (for example Docker) | CrestApps.OrchardCore.AI.Mcp.Stdio | orchardcore-ai-mcp-client |

| Let IDEs and AI apps call Orchard Core tools, prompts, resources | CrestApps.OrchardCore.AI.Mcp.Server | orchardcore-ai-mcp-server |

| Expose FTP/FTPS files as MCP resources | CrestApps.OrchardCore.AI.Mcp.Resources.Ftp | orchardcore-ai-mcp-resources |

| Expose SFTP files as MCP resources | CrestApps.OrchardCore.AI.Mcp.Resources.Sftp | orchardcore-ai-mcp-resources |

| Give tools to AI agents in the user's browser (document.modelContext), and let the AI chat use the open page's tools | CrestApps.OrchardCore.AI.WebMcp | orchardcore-ai-webmcp |

All MCP features depend on CrestApps.OrchardCore.AI. The client feature also depends on CrestApps.OrchardCore.Resources, and the stdio and resource features depend on the client and server features respectively. Install the packages in the web/startup project.

Guidelines

Admin screens

Under Artificial Intelligence → Model Context Protocol:

| Screen | Feature | Permission |

|---|---|---|

| MCP Hosts | MCP Client | ManageMcpConnections |

| Prompts | MCP Server | ManageMcpPrompts |

| Resources | MCP Server | ManageMcpResources |

The MCP Server card under Settings → Artificial Intelligence needs ManageMcpServerSettings. Calling the server in OpenId mode needs AccessMcpServer when RequireAccessPermission is true. All three lists render through Orchard Core's AdminList shape (McpConnections, McpPrompts, McpResources); see orchardcore-admin-lists.

Recipe and deployment steps

| Step | Root array | Notes |

|---|---|---|

| McpConnection | Connections | Source (sse or stdio) is required for a new connection |

| McpPrompt | Prompts | Prompt.Name is the key; messages use role user or assistant |

| McpResource | Resources | Source is the resource type; Resource.Uri may be the path portion |

With OrchardCore.Deployment enabled, the MCP Connections, MCP Prompts and MCP Resources deployment steps appear under Artificial Intelligence in the deployment-plan editor and export in the same shape the recipe steps import (secrets blanked). With CrestApps Recipes (CrestApps.OrchardCore.Recipes) enabled, all three recipe steps have JSON schemas, so the JSON import editor and the recipe-step-schema MCP resource validate them.

Combined setup

Connect to a remote MCP server and expose Orchard Core's own content search to MCP clients:

{
  "steps": [
    {
      "name": "Feature",
      "enable": [
        "CrestApps.OrchardCore.AI",
        "CrestApps.OrchardCore.AI.Agent",
        "CrestApps.OrchardCore.AI.Mcp",
        "CrestApps.OrchardCore.AI.Mcp.Server"
      ],
      "disable": []
    },
    {
      "name": "McpConnection",
      "Connections": [
        {
          "Source": "sse",
          "DisplayText": "Remote tools server",
          "Properties": {
            "SseMcpConnectionMetadata": {
              "Endpoint": "https://mcp-tools.example.com/",
              "AuthenticationType": "Anonymous"
            }
          }
        }
      ]
    }
  ]
}

Then allow the tools for MCP clients in appsettings.json (or on the MCP Server card):

{
  "OrchardCore": {
    "CrestApps": {
      "AI": {
        "McpServer": {
          "AuthenticationType": "OpenId",
          "RequireAccessPermission": true,
          "Tools": [ "searchForContentItems", "getContentItemById" ]
        }
      }
    }
  }
}

An AI provider connection and a chat deployment are also needed before profiles can use the remote tools; see orchardcore-ai-connections and orchardcore-ai-providers. More end-to-end samples are in references/ai-mcp-examples.md.

Upgrading from 2.x

Discover MCP servers

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.