@fruition/fcp-mcp-server 1.9.0 → 1.10.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 +34 -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.',
@@ -2627,6 +2645,22 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
2627
2645
  ],
2628
2646
  };
2629
2647
  }
2648
+ case 'fcp_get_local_setup_guide': {
2649
+ const { website_id } = args;
2650
+ const result = await client.getLocalSetupGuide(website_id);
2651
+ // Return the guide as readable text, with structured data as JSON
2652
+ const guide = result.guide || '';
2653
+ const siteInfo = result.site || {};
2654
+ const ddevInfo = result.ddev || {};
2655
+ return {
2656
+ content: [
2657
+ {
2658
+ type: 'text',
2659
+ text: guide + '\n\n---\n\n**Structured Data:**\n```json\n' + JSON.stringify({ site: siteInfo, ddev: ddevInfo }, null, 2) + '\n```',
2660
+ },
2661
+ ],
2662
+ };
2663
+ }
2630
2664
  case 'fcp_create_site': {
2631
2665
  const { account_id, domain, cms, url_full, git_provider, git_link, hosting_provider, fru_hosted, k8s_cluster, k8s_namespace, staging, } = args;
2632
2666
  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.10.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",