@farming-labs/next 0.1.33 → 0.1.34

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/config.mjs +5 -4
  2. package/package.json +3 -3
package/dist/config.mjs CHANGED
@@ -152,6 +152,7 @@ const DEFAULT_AGENT_SPEC_WELL_KNOWN_JSON_ROUTE = "/.well-known/agent.json";
152
152
  const DEFAULT_AGENT_FEEDBACK_ROUTE = "/api/docs/agent/feedback";
153
153
  const DEFAULT_MCP_ROUTE = "/api/docs/mcp";
154
154
  const DEFAULT_MCP_PUBLIC_ROUTE = "/mcp";
155
+ const DEFAULT_MCP_WELL_KNOWN_ROUTE = "/.well-known/mcp";
155
156
  const DEFAULT_LLMS_TXT_ROUTE = "/llms.txt";
156
157
  const DEFAULT_LLMS_FULL_TXT_ROUTE = "/llms-full.txt";
157
158
  const DEFAULT_LLMS_TXT_WELL_KNOWN_ROUTE = "/.well-known/llms.txt";
@@ -774,11 +775,11 @@ function buildLlmsTxtRewrites() {
774
775
  ];
775
776
  }
776
777
  function buildMcpRewrites(config) {
777
- if (!config.enabled || config.route === DEFAULT_MCP_PUBLIC_ROUTE) return [];
778
- return [{
779
- source: DEFAULT_MCP_PUBLIC_ROUTE,
778
+ if (!config.enabled) return [];
779
+ return [DEFAULT_MCP_PUBLIC_ROUTE, DEFAULT_MCP_WELL_KNOWN_ROUTE].filter((source) => source !== config.route).map((source) => ({
780
+ source,
780
781
  destination: config.route
781
- }];
782
+ }));
782
783
  }
783
784
  function buildAgentFeedbackRewrites(config) {
784
785
  if (!config.enabled) return [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@farming-labs/next",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "Next.js adapter for @farming-labs/docs — MDX config wrapper",
5
5
  "keywords": [
6
6
  "docs",
@@ -95,8 +95,8 @@
95
95
  "tsdown": "^0.20.3",
96
96
  "typescript": "^5.9.3",
97
97
  "vitest": "^3.2.4",
98
- "@farming-labs/docs": "0.1.33",
99
- "@farming-labs/theme": "0.1.33"
98
+ "@farming-labs/docs": "0.1.34",
99
+ "@farming-labs/theme": "0.1.34"
100
100
  },
101
101
  "peerDependencies": {
102
102
  "@farming-labs/docs": ">=0.0.1",