@fruition/fcp-mcp-server 1.9.0 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +39 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -329,6 +329,10 @@ class FCPClient {
329
329
  body: JSON.stringify(options || {}),
330
330
  });
331
331
  }
332
+ // Local Setup Guide
333
+ async getLocalSetupGuide(siteId) {
334
+ return this.fetch(`/api/sites/${siteId}/local-setup`);
335
+ }
332
336
  // Shield Domain Management
333
337
  async shieldListDomains(filters) {
334
338
  const params = new URLSearchParams();
@@ -1892,6 +1896,20 @@ const TOOLS = [
1892
1896
  required: ['website_id'],
1893
1897
  },
1894
1898
  },
1899
+ {
1900
+ name: 'fcp_get_local_setup_guide',
1901
+ description: 'Generate a local development setup guide for a website. Returns CMS-specific instructions for cloning, DDEV configuration, .env template, database import, and verification steps. Works for Bedrock WordPress, standard WordPress, and Drupal sites.',
1902
+ inputSchema: {
1903
+ type: 'object',
1904
+ properties: {
1905
+ website_id: {
1906
+ type: 'number',
1907
+ description: 'The website ID to generate setup guide for',
1908
+ },
1909
+ },
1910
+ required: ['website_id'],
1911
+ },
1912
+ },
1895
1913
  {
1896
1914
  name: 'fcp_create_site',
1897
1915
  description: 'Create a new website with optional staging environments. Production site is created first, then staging sites are linked to it.',
@@ -2149,6 +2167,11 @@ const TOOLS = [
2149
2167
  },
2150
2168
  rate_limit_tier: { type: 'string', description: 'Rate limit: standard, strict, relaxed' },
2151
2169
  bot_control_enabled: { type: 'boolean', description: 'Enable AWS Bot Control (+$10/mo)' },
2170
+ cache_no_cache_paths: {
2171
+ type: 'array',
2172
+ items: { type: 'string' },
2173
+ description: 'Path patterns to never cache (e.g., ["/api/*", "/wp-admin/*", "/cart/*"])',
2174
+ },
2152
2175
  enabled: { type: 'boolean', description: 'Enable/disable domain' },
2153
2176
  notes: { type: 'string', description: 'Updated notes' },
2154
2177
  },
@@ -2627,6 +2650,22 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
2627
2650
  ],
2628
2651
  };
2629
2652
  }
2653
+ case 'fcp_get_local_setup_guide': {
2654
+ const { website_id } = args;
2655
+ const result = await client.getLocalSetupGuide(website_id);
2656
+ // Return the guide as readable text, with structured data as JSON
2657
+ const guide = result.guide || '';
2658
+ const siteInfo = result.site || {};
2659
+ const ddevInfo = result.ddev || {};
2660
+ return {
2661
+ content: [
2662
+ {
2663
+ type: 'text',
2664
+ text: guide + '\n\n---\n\n**Structured Data:**\n```json\n' + JSON.stringify({ site: siteInfo, ddev: ddevInfo }, null, 2) + '\n```',
2665
+ },
2666
+ ],
2667
+ };
2668
+ }
2630
2669
  case 'fcp_create_site': {
2631
2670
  const { account_id, domain, cms, url_full, git_provider, git_link, hosting_provider, fru_hosted, k8s_cluster, k8s_namespace, staging, } = args;
2632
2671
  const result = await client.createSite({ account_id, domain, cms, url_full, git_provider, git_link, hosting_provider, fru_hosted, k8s_cluster, k8s_namespace }, staging);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fruition/fcp-mcp-server",
3
- "version": "1.9.0",
3
+ "version": "1.11.0",
4
4
  "description": "MCP Server for FCP Launch Coordination System - enables Claude Code to interact with FCP launches and track development time",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",