@intlayer/mcp 8.3.2 → 8.3.3
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.
- package/dist/esm/client/client.mjs +1 -1
- package/dist/esm/packages/@intlayer/chokidar/dist/esm/_virtual/_utils_asset.mjs +1 -1
- package/dist/esm/packages/@intlayer/chokidar/dist/esm/installSkills/index.mjs +1 -1
- package/dist/esm/packages/@intlayer/chokidar/dist/esm/installSkills/index.mjs.map +1 -1
- package/dist/esm/server/server.mjs +1 -1
- package/dist/esm/tools/installSkills.mjs +3 -3
- package/package.json +7 -7
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{dirname as e,resolve as t}from"node:path";import{readFileSync as n}from"node:fs";import{isESModule as r}from"@intlayer/config/utils";import{fileURLToPath as i}from"node:url";import{Client as a}from"@modelcontextprotocol/sdk/client/index.js";const o=r?e(i(import.meta.url)):__dirname,s=JSON.parse(n(t(o,`../../../package.json`),`utf8`)),c=()=>new a({name:`mcp-client-for-intlayer-mcp-server`,version:s.version});export{o as dirname,c as loadClient};
|
|
2
2
|
//# sourceMappingURL=client.mjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{basename as e,dirname as t,join as n,relative as r,resolve as i,sep as a}from"node:path";import{existsSync as o,readFileSync as s}from"node:fs";import{fileURLToPath as c}from"node:url";const l=()=>{try{return t(c(import.meta.url))}catch{return typeof __dirname<`u`?__dirname:process.cwd()}},u=t=>{let n=t;for(let t=0;t<12;t++){if(e(n)===`dist`)return n;let t=i(n,`..`);if(t===n)break;n=t}return null},d=e=>{if(!e)return null;try{if(e.startsWith(`file://`))return c(e)}catch{}return e},f=()=>{let e=Error.prepareStackTrace;try{Error.prepareStackTrace=(e,t)=>t;let e=Error();Error.captureStackTrace(e,f);let n=e.stack||[],r=e=>e.includes(`${a}_virtual${a}`)||e.includes(`/_virtual/`);for(let e of n){let n=d(typeof e.getFileName==`function`?e.getFileName():null);if(n&&!(n.includes(`node:internal`)||n.includes(`${a}internal${a}modules${a}`))&&!r(n))return t(n)}for(let e of n){let n=d(typeof e.getFileName==`function`?e.getFileName():null);if(n)return t(n)}}catch{}finally{Error.prepareStackTrace=e}return l()},p=(e,t=`utf8`)=>{let a=l(),c=u(a)??i(a,`..`,`..`,`dist`),d=n(c,`assets`),p=[],m=r(c,f()).split(`\\`).join(`/`).replace(/^(?:dist\/)?(?:esm|cjs)\//,``).replace(/^_virtual\//,``);if(e.startsWith(`./`)||e.startsWith(`../`)){let n=i(d,m,e);if(p.push(n),o(n))return s(n,t)}let h=n(d,e);if(p.push(h),o(h))return s(h,t);if(m){let r=n(d,m,e);if(p.push(r),o(r))return s(r,t)}let g=[`readAsset: file not found.`,`Searched:`,...p.map(e=>`- ${e}`)].join(`
|
|
2
2
|
`);throw Error(g)};export{p};
|
|
3
3
|
//# sourceMappingURL=_utils_asset.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{p as e}from"../_virtual/_utils_asset.mjs";import{t}from"../../../../core/dist/esm/transpiler/markdown/getMarkdownMetadata.mjs";import
|
|
1
|
+
import{p as e}from"../_virtual/_utils_asset.mjs";import{t}from"../../../../core/dist/esm/transpiler/markdown/getMarkdownMetadata.mjs";import n from"node:path";import{v as r}from"@intlayer/config/logger";import{promises as i}from"node:fs";const a=Object.keys({Config:`Intlayer configuration documentation`,Content:`Reference for all Intlayer content node types (t, enu, etc.)`,Usage:`How to use Intlayer in your project`,CLI:`Intlayer CLI commands and usage`,Compiler:`Intlayer Compiler setup and usage for automatic content extraction without .content files`,RemoteContent:`How to use Intlayer with Remote/CMS/Server-side content`,NextJS:`Next.js-specific usage (Server & Client components)`,React:`React-specific syntax and hooks usage`,Vue:`Vue-specific composables and syntax`,Svelte:`Svelte-specific stores and syntax`,Angular:`Angular-specific syntax and Injectable Function usage`,Preact:`Preact-specific syntax and hooks usage`,Solid:`Integrates Intlayer internationalization with SolidJS components. Use when the user asks to "setup SolidJS i18n", use the "useIntlayer" hook in Solid, or manage locales in a SolidJS application.`,Astro:`Astro-specific usage and getIntlayer`}),o={Cursor:{label:`Cursor`,dir:`.cursor/skills`,check:()=>process.env.CURSOR===`true`||process.env.TERM_PROGRAM===`cursor`},Windsurf:{label:`Windsurf`,dir:`.windsurf/skills`,check:()=>process.env.WINDSURF===`true`||process.env.TERM_PROGRAM===`windsurf`},Trae:{label:`Trae`,dir:`.trae/skills`,check:()=>process.env.TRAE===`true`||process.env.TERM_PROGRAM===`trae`},TraeCN:{label:`Trae CN`,dir:`.trae/skills`,check:()=>process.env.TRAE_CN===`true`},VSCode:{label:`VS Code`,dir:`.vscode/skills`,check:()=>process.env.VSCODE===`true`||process.env.TERM_PROGRAM===`vscode`},OpenCode:{label:`OpenCode`,dir:`.opencode/skills`,check:()=>process.env.OPENCODE===`true`},Claude:{label:`Claude Code`,dir:`.claude/skills`,check:()=>process.env.CLAUDE===`true`},GitHub:{label:`GitHub Copilot Workspace`,dir:`.github/skills`,check:()=>process.env.GITHUB_ACTIONS===`true`||!!process.env.GITHUB_WORKSPACE},Antigravity:{label:`Antigravity`,dir:`.agent/skills`},Augment:{label:`Augment`,dir:`.augment/skills`},OpenClaw:{label:`OpenClaw`,dir:`skills`},Cline:{label:`Cline`,dir:`.cline/skills`},CodeBuddy:{label:`CodeBuddy`,dir:`.codebuddy/skills`},CommandCode:{label:`Command Code`,dir:`.commandcode/skills`},Continue:{label:`Continue`,dir:`.continue/skills`},Crush:{label:`Crush`,dir:`.crush/skills`},Droid:{label:`Droid`,dir:`.factory/skills`},Goose:{label:`Goose`,dir:`.goose/skills`},IFlow:{label:`iFlow CLI`,dir:`.iflow/skills`},Junie:{label:`Junie`,dir:`.junie/skills`},KiloCode:{label:`Kilo Code`,dir:`.kilocode/skills`},Kiro:{label:`Kiro CLI`,dir:`.kiro/skills`},Kode:{label:`Kode`,dir:`.kode/skills`},MCPJam:{label:`MCPJam`,dir:`.mcpjam/skills`},MistralVibe:{label:`Mistral Vibe`,dir:`.vibe/skills`},Mux:{label:`Mux`,dir:`.mux/skills`},OpenHands:{label:`OpenHands`,dir:`.openhands/skills`},Pi:{label:`Pi`,dir:`.pi/skills`},Qoder:{label:`Qoder`,dir:`.qoder/skills`},Qwen:{label:`Qwen Code`,dir:`.qwen/skills`},RooCode:{label:`Roo Code`,dir:`.roo/skills`},Zencoder:{label:`Zencoder`,dir:`.zencoder/skills`},Neovate:{label:`Neovate`,dir:`.neovate/skills`},Pochi:{label:`Pochi`,dir:`.pochi/skills`},Other:{label:`Other`,dir:`skills`}},s=Object.keys(o),c={},l=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),u=t=>{let n=`./skills/${c[t]??l(t)}.md`;try{return e(n)}catch{return console.warn(`Warning: Could not read asset for skill: ${t} at ${n}`),``}},d=()=>{try{return e(`./LICENCE.md`)}catch{return console.warn(`Warning: Could not read LICENCE.md asset`),``}},f=async e=>{let t=await fetch(e);if(!t.ok)throw Error(`Failed to fetch ${e}: ${t.statusText}`);return t.text()},p=async(e,a,s)=>{let p=o[a].dir??`skills`,m=n.join(e,p);await i.mkdir(m,{recursive:!0});let h=[],g=d();for(let e of s){let r=`intlayer-${c[e]??l(e)}`,a=u(e);if(!a)continue;let o=Array.from(new Set(a.match(/https:\/\/intlayer\.org\/doc\/[^\s)]+\.md/g)||[])),s=n.join(m,r),d=n.join(s,`references`);await i.mkdir(d,{recursive:!0}),g&&await i.writeFile(n.join(s,`LICENCE.md`),g,`utf-8`);let p=a,_=o.map(async n=>{try{let e=await f(n),r=t(e),i=``;return i=Array.isArray(r.slugs)?r.slugs.filter(e=>e!==`doc`).join(`_`):new URL(n).pathname.split(`/`).filter(e=>e&&e!==`doc`).map(e=>e.replace(`.md`,``)).join(`_`),i=i?`${i}.md`:`index.md`,{url:n,localRefPath:`references/${i}`,fileName:i,content:e,success:!0}}catch(t){return console.warn(`Warning: Failed to download ref ${n} for skill ${e}`,t),{url:n,success:!1}}}),v=await Promise.all(_);for(let e of v)e.success&&e.fileName&&e.content&&e.localRefPath&&(await i.writeFile(n.join(d,e.fileName),e.content,`utf-8`),p=p.replaceAll(e.url,e.localRefPath));let y=n.join(s,`SKILL.md`);await i.writeFile(y,p,`utf-8`),h.push(`${r}/SKILL.md`)}return h.length===0?`No skill files were created. Check your asset paths.`:`${r} Created ${h.length} skills in ${m}`};export{p as h,s as l,a as o};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["e","
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["e","r","i","n"],"sources":["../../../../../../../../../chokidar/dist/esm/installSkills/index.mjs"],"sourcesContent":["import{readAsset as e}from\"../_virtual/_utils_asset.mjs\";import t from\"node:path\";import{v as n}from\"@intlayer/config/logger\";import{promises as r}from\"node:fs\";import{getMarkdownMetadata as i}from\"@intlayer/core/markdown\";const a={Config:`Intlayer configuration documentation`,Content:`Reference for all Intlayer content node types (t, enu, etc.)`,Usage:`How to use Intlayer in your project`,CLI:`Intlayer CLI commands and usage`,Compiler:`Intlayer Compiler setup and usage for automatic content extraction without .content files`,RemoteContent:`How to use Intlayer with Remote/CMS/Server-side content`,NextJS:`Next.js-specific usage (Server & Client components)`,React:`React-specific syntax and hooks usage`,Vue:`Vue-specific composables and syntax`,Svelte:`Svelte-specific stores and syntax`,Angular:`Angular-specific syntax and Injectable Function usage`,Preact:`Preact-specific syntax and hooks usage`,Solid:`Integrates Intlayer internationalization with SolidJS components. Use when the user asks to \"setup SolidJS i18n\", use the \"useIntlayer\" hook in Solid, or manage locales in a SolidJS application.`,Astro:`Astro-specific usage and getIntlayer`},o=Object.keys(a),s=e=>{let t=[`Usage`,`Content`,`Config`,`CLI`,`Compiler`];return e.next&&t.push(`NextJS`),(e.react||!e.next)&&t.push(`React`),e.preact&&t.push(`Preact`),e[`solid-js`]&&t.push(`Solid`),(e.vue||e.nuxt)&&t.push(`Vue`),(e.svelte||e[`@sveltejs/kit`])&&t.push(`Svelte`),e.astro&&t.push(`Astro`),t},c={Cursor:{label:`Cursor`,dir:`.cursor/skills`,check:()=>process.env.CURSOR===`true`||process.env.TERM_PROGRAM===`cursor`},Windsurf:{label:`Windsurf`,dir:`.windsurf/skills`,check:()=>process.env.WINDSURF===`true`||process.env.TERM_PROGRAM===`windsurf`},Trae:{label:`Trae`,dir:`.trae/skills`,check:()=>process.env.TRAE===`true`||process.env.TERM_PROGRAM===`trae`},TraeCN:{label:`Trae CN`,dir:`.trae/skills`,check:()=>process.env.TRAE_CN===`true`},VSCode:{label:`VS Code`,dir:`.vscode/skills`,check:()=>process.env.VSCODE===`true`||process.env.TERM_PROGRAM===`vscode`},OpenCode:{label:`OpenCode`,dir:`.opencode/skills`,check:()=>process.env.OPENCODE===`true`},Claude:{label:`Claude Code`,dir:`.claude/skills`,check:()=>process.env.CLAUDE===`true`},GitHub:{label:`GitHub Copilot Workspace`,dir:`.github/skills`,check:()=>process.env.GITHUB_ACTIONS===`true`||!!process.env.GITHUB_WORKSPACE},Antigravity:{label:`Antigravity`,dir:`.agent/skills`},Augment:{label:`Augment`,dir:`.augment/skills`},OpenClaw:{label:`OpenClaw`,dir:`skills`},Cline:{label:`Cline`,dir:`.cline/skills`},CodeBuddy:{label:`CodeBuddy`,dir:`.codebuddy/skills`},CommandCode:{label:`Command Code`,dir:`.commandcode/skills`},Continue:{label:`Continue`,dir:`.continue/skills`},Crush:{label:`Crush`,dir:`.crush/skills`},Droid:{label:`Droid`,dir:`.factory/skills`},Goose:{label:`Goose`,dir:`.goose/skills`},IFlow:{label:`iFlow CLI`,dir:`.iflow/skills`},Junie:{label:`Junie`,dir:`.junie/skills`},KiloCode:{label:`Kilo Code`,dir:`.kilocode/skills`},Kiro:{label:`Kiro CLI`,dir:`.kiro/skills`},Kode:{label:`Kode`,dir:`.kode/skills`},MCPJam:{label:`MCPJam`,dir:`.mcpjam/skills`},MistralVibe:{label:`Mistral Vibe`,dir:`.vibe/skills`},Mux:{label:`Mux`,dir:`.mux/skills`},OpenHands:{label:`OpenHands`,dir:`.openhands/skills`},Pi:{label:`Pi`,dir:`.pi/skills`},Qoder:{label:`Qoder`,dir:`.qoder/skills`},Qwen:{label:`Qwen Code`,dir:`.qwen/skills`},RooCode:{label:`Roo Code`,dir:`.roo/skills`},Zencoder:{label:`Zencoder`,dir:`.zencoder/skills`},Neovate:{label:`Neovate`,dir:`.neovate/skills`},Pochi:{label:`Pochi`,dir:`.pochi/skills`},Other:{label:`Other`,dir:`skills`}},l=Object.keys(c),u={},d=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),f=t=>{let n=`./skills/${u[t]??d(t)}.md`;try{return e(n)}catch{return console.warn(`Warning: Could not read asset for skill: ${t} at ${n}`),``}},p=()=>{try{return e(`./LICENCE.md`)}catch{return console.warn(`Warning: Could not read LICENCE.md asset`),``}},m=async e=>{let t=await fetch(e);if(!t.ok)throw Error(`Failed to fetch ${e}: ${t.statusText}`);return t.text()},h=async(e,a,o)=>{let s=c[a].dir??`skills`,l=t.join(e,s);await r.mkdir(l,{recursive:!0});let h=[],g=p();for(let e of o){let n=`intlayer-${u[e]??d(e)}`,a=f(e);if(!a)continue;let o=Array.from(new Set(a.match(/https:\\/\\/intlayer\\.org\\/doc\\/[^\\s)]+\\.md/g)||[])),s=t.join(l,n),c=t.join(s,`references`);await r.mkdir(c,{recursive:!0}),g&&await r.writeFile(t.join(s,`LICENCE.md`),g,`utf-8`);let p=a,_=o.map(async t=>{try{let e=await m(t),n=i(e),r=``;return r=Array.isArray(n.slugs)?n.slugs.filter(e=>e!==`doc`).join(`_`):new URL(t).pathname.split(`/`).filter(e=>e&&e!==`doc`).map(e=>e.replace(`.md`,``)).join(`_`),r=r?`${r}.md`:`index.md`,{url:t,localRefPath:`references/${r}`,fileName:r,content:e,success:!0}}catch(n){return console.warn(`Warning: Failed to download ref ${t} for skill ${e}`,n),{url:t,success:!1}}}),v=await Promise.all(_);for(let e of v)e.success&&e.fileName&&e.content&&e.localRefPath&&(await r.writeFile(t.join(c,e.fileName),e.content,`utf-8`),p=p.replaceAll(e.url,e.localRefPath));let y=t.join(s,`SKILL.md`);await r.writeFile(y,p,`utf-8`),h.push(`${n}/SKILL.md`)}return h.length===0?`No skill files were created. Check your asset paths.`:`${n} Created ${h.length} skills in ${l}`};export{l as PLATFORMS,c as PLATFORMS_METADATA,o as SKILLS,a as SKILLS_METADATA,s as getInitialSkills,h as installSkills};\n//# sourceMappingURL=index.mjs.map"],"mappings":"8OAA+N,MAAs6B,EAAE,OAAO,KAAv6B,CAAC,OAAO,uCAAuC,QAAQ,+DAA+D,MAAM,sCAAsC,IAAI,kCAAkC,SAAS,4FAA4F,cAAc,0DAA0D,OAAO,sDAAsD,MAAM,wCAAwC,IAAI,sCAAsC,OAAO,oCAAoC,QAAQ,wDAAwD,OAAO,yCAAyC,MAAM,qMAAqM,MAAM,uCAAuC,CAAiB,CAAqS,EAAE,CAAC,OAAO,CAAC,MAAM,SAAS,IAAI,iBAAiB,UAAU,QAAQ,IAAI,SAAS,QAAQ,QAAQ,IAAI,eAAe,SAAS,CAAC,SAAS,CAAC,MAAM,WAAW,IAAI,mBAAmB,UAAU,QAAQ,IAAI,WAAW,QAAQ,QAAQ,IAAI,eAAe,WAAW,CAAC,KAAK,CAAC,MAAM,OAAO,IAAI,eAAe,UAAU,QAAQ,IAAI,OAAO,QAAQ,QAAQ,IAAI,eAAe,OAAO,CAAC,OAAO,CAAC,MAAM,UAAU,IAAI,eAAe,UAAU,QAAQ,IAAI,UAAU,OAAO,CAAC,OAAO,CAAC,MAAM,UAAU,IAAI,iBAAiB,UAAU,QAAQ,IAAI,SAAS,QAAQ,QAAQ,IAAI,eAAe,SAAS,CAAC,SAAS,CAAC,MAAM,WAAW,IAAI,mBAAmB,UAAU,QAAQ,IAAI,WAAW,OAAO,CAAC,OAAO,CAAC,MAAM,cAAc,IAAI,iBAAiB,UAAU,QAAQ,IAAI,SA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as t}from"../tools/installSkills.mjs";import{loadDocsTools as n}from"../tools/docs.mjs";import{dirname as r,resolve as i}from"node:path";import{readFileSync as a}from"node:fs";import{isESModule as o}from"@intlayer/config/utils";import{fileURLToPath as s}from"node:url";import{McpServer as c}from"@modelcontextprotocol/sdk/server/mcp.js";const l=o?r(s(import.meta.url)):__dirname,u=JSON.parse(a(i(l,`../../../package.json`),`utf8`)),d=({isLocal:r})=>{let i=new c({name:`intlayer`,version:u.version});if(r)try{e(i),t(i)}catch(e){console.error(`Error loading CLI tools:`,e)}try{n(i)}catch(e){console.error(`Error loading docs tools:`,e)}return i};export{l as dirname,d as loadServer};
|
|
2
2
|
//# sourceMappingURL=server.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
2
|
-
Available skills:`),
|
|
3
|
-
Which skills do you want to install? (comma separated numbers, e.g. 1,2,3 or "all"): `),c=[];if(c=s.trim().toLowerCase()===`all`?[...
|
|
1
|
+
import{h as e,l as t,o as n}from"../packages/@intlayer/chokidar/dist/esm/installSkills/index.mjs";import r from"zod";import*as i from"node:readline";const a=i=>{i.registerTool(`intlayer-install-skills`,{title:`Install Intlayer Skills`,description:`Install Intlayer documentation and skills to the project to assist AI agents. Ask the user for the platform (Cursor, VSCode, OpenCode, Claude, etc.) and which skills they want to install before calling this tool.`,inputSchema:{platform:r.enum(t).describe(`The platform to install skills for`),skills:r.array(r.enum(n)).describe(`List of skills to install`),projectRoot:r.string().optional().describe(`Root directory of the project. Defaults to current directory.`)}},async({platform:t,skills:n,projectRoot:r})=>{try{return{content:[{type:`text`,text:await e(r||process.cwd(),t,n)}]}}catch(e){return{content:[{type:`text`,text:`Failed to install skills: ${e instanceof Error?e.message:String(e)}`}],isError:!0}}})},o=async()=>{let r=i.createInterface({input:process.stdin,output:process.stdout}),a=e=>new Promise(t=>r.question(e,t));try{console.log(`Install Intlayer Skills`),console.log(`-----------------------`);let i=await a(`Which platform are you using? (Cursor, Windsurf, Trae, OpenCode, GitHub, Claude, VSCode, Cline, RooCode, etc. or "Other"): `),o=t.find(e=>e.toLowerCase()===i.trim().toLowerCase())||`Other`;console.log(`Selected platform: ${o}`),console.log(`
|
|
2
|
+
Available skills:`),n.forEach((e,t)=>{console.log(`${t+1}. ${e}`)});let s=await a(`
|
|
3
|
+
Which skills do you want to install? (comma separated numbers, e.g. 1,2,3 or "all"): `),c=[];if(c=s.trim().toLowerCase()===`all`?[...n]:s.split(`,`).map(e=>parseInt(e.trim(),10)-1).filter(e=>!Number.isNaN(e)&&e>=0&&e<n.length).map(e=>n[e]),c.length===0){console.log(`No valid skills selected. Exiting.`),r.close();return}console.log(`Installing skills: ${c.join(`, `)}...`);let l=await e(process.cwd(),o,c);console.log(l)}catch(e){console.error(`Error:`,e)}finally{r.close()}};export{a as loadInstallSkillsTool,o as runInstallSkillsCLI};
|
|
4
4
|
//# sourceMappingURL=installSkills.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/mcp",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Intlayer MCP server. Handle MCP to help IDE to use Intlayer. It build, fill, pull, push, dictionaries",
|
|
6
6
|
"keywords": [
|
|
@@ -93,18 +93,18 @@
|
|
|
93
93
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
|
-
"@intlayer/api": "8.3.
|
|
97
|
-
"@intlayer/cli": "8.3.
|
|
98
|
-
"@intlayer/config": "8.3.
|
|
99
|
-
"@intlayer/docs": "8.3.
|
|
100
|
-
"@intlayer/types": "8.3.
|
|
96
|
+
"@intlayer/api": "8.3.3",
|
|
97
|
+
"@intlayer/cli": "8.3.3",
|
|
98
|
+
"@intlayer/config": "8.3.3",
|
|
99
|
+
"@intlayer/docs": "8.3.3",
|
|
100
|
+
"@intlayer/types": "8.3.3",
|
|
101
101
|
"@modelcontextprotocol/sdk": "1.27.1",
|
|
102
102
|
"dotenv": "17.3.1",
|
|
103
103
|
"express": "5.2.1",
|
|
104
104
|
"zod": "4.3.6"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
|
-
"@intlayer/types": "8.3.
|
|
107
|
+
"@intlayer/types": "8.3.3",
|
|
108
108
|
"@modelcontextprotocol/inspector": "0.21.1",
|
|
109
109
|
"@types/express": "5.0.6",
|
|
110
110
|
"@types/node": "25.5.0",
|