Configures FTP, FTPS, and SFTP files as MCP resources in Orchard Core using CrestApps modules. Covers connection metadata, URI patterns, and recipe steps for exposing remote file content to MCP clients.
Ships in crestapps-orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an Orchard Core expert. Configure remote file content as MCP resources using the CrestApps FTP/FTPS and SFTP modules. Use the built-in source registrations, connection metadata, deployment-safe credential handling, and URI patterns.
CrestApps.OrchardCore.AI.Mcp.Resources.Ftp for FTP and FTPS resources.CrestApps.OrchardCore.AI.Mcp.Resources.Sftp for SSH File Transfer Protocol resources.CrestApps.OrchardCore.AI.Mcp.Server (McpPermissions.Feature.Server), which is enabled automatically as a dependency. See orchardcore-ai-mcp-server.AddCoreAIFtpMcpResources; the SFTP module uses AddCoreAISftpMcpResources.FtpConnectionMetadata and SftpConnectionMetadata now come from CrestApps.Core (CrestApps.Core.AI.Ftp.Models and CrestApps.Core.AI.Sftp.Models), not from the modules' own Models namespaces. The resource editors derive from the shared FtpConnectionDisplayDriverBase<T> and SftpConnectionDisplayDriverBase<T> in CrestApps.OrchardCore.AI.FileTransfer.Core, the same connection editors the AI File Sources connectors use. Stored property names are unchanged.path, which is the remote file path.ManageMcpResources). The McpResource recipe step can create the resource entry, but connection metadata is entered in the editor (see below).orchardcore-ai-file-sources).| Source | Feature ID | URI | Port | Authentication |
|---|---|---|---|---|
| FTP/FTPS | CrestApps.OrchardCore.AI.Mcp.Resources.Ftp | ftp://{itemId}/{path} | Configured per resource | Username and password |
| SFTP | CrestApps.OrchardCore.AI.Mcp.Resources.Sftp | sftp://{itemId}/{path} | Configured per resource | Password or private key |
FTP/FTPS uses FluentFTP. SFTP uses SSH.NET. SFTP is SSH-based and is not FTP with a different port; choose the module matching the server protocol.
{
"steps": [
{
"name": "Feature",
"enable": [
"CrestApps.OrchardCore.AI.Mcp.Server",
"CrestApps.OrchardCore.AI.Mcp.Resources.Ftp",
"CrestApps.OrchardCore.AI.Mcp.Resources.Sftp"
],
"disable": []
}
]
}
CrestApps.OrchardCore.AI.Mcp.Server is the server dependency declared by both
resource feature manifests. Resources are listed by MCP clients through ListResources
(static paths) or ListResourceTemplates (paths containing {path}).
The FTP source is displayed as FTP/FTPS and supports ftp:// resource URIs.
FtpConnectionMetadata contains:
| Property | Purpose |
|---|---|
Host | FTP server hostname or IP address. |
Port | Optional port, normally 21 or 990 for implicit FTPS. |
Username | FTP username. |
Password | Protected password. |
EncryptionMode | None, Implicit, Explicit, or Auto. |
DataConnectionType | Passive or active data-mode selection such as AutoPassive, PASV, EPSV, or AutoActive. |
ValidateAnyCertificate | Accepts any TLS certificate when true. |
ConnectTimeout | Optional connect timeout in seconds. |
ReadTimeout | Optional read timeout in seconds. |
RetryAttempts | Optional retry count. |
Prefer explicit or implicit FTPS over plaintext FTP. Set ValidateAnyCertificate to
false in production unless there is a deliberately managed certificate-validation
exception.
The SFTP source is displayed as SFTP and supports sftp:// resource URIs.
SftpConnectionMetadata contains:
| Property | Purpose |
|---|---|
Host | SFTP server hostname or IP address. |
Port | Optional SSH port, normally 22. |
Username | SSH username. |
Password | Protected password authentication value. |
PrivateKey | Protected private-key content. |
Passphrase | Protected private-key passphrase. |
ProxyType | None, Socks4, Socks5, or Http. |
ProxyHost and ProxyPort | Optional proxy endpoint. |
ProxyUsername and ProxyPassword | Optional protected proxy credentials. |
ConnectionTimeout | Optional timeout in seconds. |
KeepAliveInterval | Optional SSH keep-alive interval in seconds. |
Prefer a restricted, passphrase-protected private key over password authentication when the remote server supports it. Grant the remote identity read access only to approved resource paths.
{
"steps": [
{
"name": "McpResource",
"Resources": [
{
"Source": "ftp",
"DisplayText": "Remote configuration files",
"Resource": {
"Uri": "{path}",
"Name": "remote-configuration",
"Description": "Reads an approved file from the configuration FTP server",
"MimeType": "application/json"
}
}
]
}
]
}
Resource.Uri takes the path portion, which the import expands to ftp://{itemId}/{path};
a full ftp:// URI is also accepted as-is. The item ID identifies the Orchard Core MCP
resource. Clients read a file with a concrete URI such as ftp://{itemId}/config/settings.json,
and the remainder after the item ID becomes the path variable.
Use the {path} template. The FTP and SFTP handlers read only the path variable, so a
static path (no placeholder) reaches the handler with an empty path, and a literal prefix
such as config/{path} is matched but not sent to the server. The handler rejects . and
.. segments and reads /{path} from the server root, so restrict what can be read
through the remote account's permissions and home directory.
Connection metadata is not imported. In the current source, the McpResource step
and McpResourceHandler read ItemId, Source, DisplayText, and Resource only;
the Properties object (and therefore FtpConnectionMetadata) is ignored on import.
Run the recipe to create the resource, then open it in the admin editor and enter the
host, credentials, and options there. The editor encrypts the password before storing it.
{
"steps": [
{
"name": "McpResource",
"Resources": [
{
"Source": "sftp",
"DisplayText": "Remote application logs",
"Resource": {
"Uri": "{path}",
"Name": "remote-application-log",
"Description": "Reads an approved log file from the SFTP server",
"MimeType": "text/plain"
}
}
]
}
]
}
As with FTP, SftpConnectionMetadata in Properties is not applied on import. Enter the
host and one authentication method in the resource editor after deployment, and never
include private key material, passphrases, or passwords in recipes.
Each module adds an editor display driver for McpResource and an
IMcpResourceHandler:
| Handler | Export behavior |
|---|---|
FtpMcpResourceHandler | Clears FtpConnectionMetadata.Password. |
SftpMcpResourceHandler | Clears password, private key, passphrase, and proxy password. |
The platform protects credentials at rest through Data Protection. Export clearing is defense in depth, not a substitute for secret-management procedures. Imported resources need credentials re-entered or injected through an approved secure channel.
ftp or sftp.path variable.Keep resource names, descriptions, and allowed remote paths narrowly focused. An MCP resource may expose content to AI clients, so it must not point at credentials, unfiltered logs, or tenant data outside the intended authorization boundary.
| Symptom | Check |
|---|---|
| FTP or SFTP is not an available source | Confirm the exact feature ID, MCP server dependency, deployed package, and tenant feature state. |
| Resource cannot connect | Check host, port, DNS, firewall, outbound network access, and protocol selection. |
| FTPS certificate error | Use a trusted certificate and correct encryption mode. Do not broadly enable ValidateAnyCertificate in production. |
| SFTP key authentication fails | Verify key format, key authorization on the server, passphrase, username, and permissions on the server-side .ssh files. |
| Recipe import has blank credentials | Expected behavior. Export handlers deliberately clear sensitive values. Set them securely after import. |
| Imported resource has no host or port | Properties is not read by the McpResource step. Enter the connection details in the resource editor. |
| Resource reads the wrong file | Verify the ftp:// or sftp:// URI item ID and normalized remote path variable. |
| Connection drops on long reads | Tune timeouts, retry attempts for FTP, or SFTP keep-alive settings after verifying the server policy. |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/crestapps-orchardcore:orchardcore-ai-mcp-resourcesfrom crestapps-orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin crestapps-orchardcore137 skills in this plugin
/orchardcore-accountsSkill for the CrestApps Orchard Core Accounts module (CrestApps.OrchardCore.Accounts) with its Account Members, Account Team, Account E-mail Domains and Account Locations features. Covers the Account type and AccountPart, the account picker and search, IAccountChildTypeRule, account page sections (AccountPageTabs, AddPageSection, Notes), members and IAccountMemberService, account invitations, the account owner and team picked from staff, e-mail domains, locations with a billing location, the account's billing profile and party members, the Accounts recipe and deployment steps, and the admin menu. Use this skill when requests mention accounts, the businesses or households records belong to, an account page tab, members, invitations, owners, domains or locations. Strong matches include AccountPart, AccountPageTabs, IAccountMemberService, IAccountInvitationService, AccountInvitation, AccountTeamPart, AccountEmailDomainsPart, IAccountEmailDomains, AccountLocationsPart and ManageAccountMembers./orchardcore-accounts-b2bSkill for the CrestApps Orchard Core Accounts B2B module (CrestApps.OrchardCore.Accounts.B2B), business selling on an Account content item. Covers B2BAccountPart and B2BAccount, buyers as account members and ship-to addresses as account locations, terms (deposit, net days, credit limit) through the account-terms tender billed to the account, the account's billing profile, purchase order numbers, quotes, price lists through IBuyerPriceProvider, order limits, approvals and budgets, OCI punchout, the account/business page and API, the PriceLists recipe and deployment steps, the B2BAccounts report source, and the move from the removed Companies module. Use this skill when requests mention B2B, wholesale or business buyers, net terms, purchase orders, price lists, order approvals or punchout. Strong matches include B2BAccountPart, B2BAccount, AccountTerms, AccountTermsTenderProvider, B2BAccountBillingProfileSource, IB2BAccountStore, PriceList, B2BPriceProvider, B2BApprovalService and ManageB2BAccounts.Other plugins' skills for the same job