easy-mcp-nest 0.1.1 → 0.1.2
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/README.md
CHANGED
|
@@ -14,11 +14,11 @@ EasyMCP simplifies the creation of MCP (Model Context Protocol) servers by provi
|
|
|
14
14
|
## Installation
|
|
15
15
|
|
|
16
16
|
```bash
|
|
17
|
-
npm install easy-mcp-
|
|
17
|
+
npm install easy-mcp-nest
|
|
18
18
|
# or
|
|
19
|
-
pnpm add easy-mcp-
|
|
19
|
+
pnpm add easy-mcp-nest
|
|
20
20
|
# or
|
|
21
|
-
yarn add easy-mcp-
|
|
21
|
+
yarn add easy-mcp-nest
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
### Peer Dependencies
|
|
@@ -38,7 +38,7 @@ npm install @nestjs/common@^11.0.1 @nestjs/core@^11.0.1 @nestjs/platform-express
|
|
|
38
38
|
## Quick Start
|
|
39
39
|
|
|
40
40
|
```typescript
|
|
41
|
-
import { EasyMCP, McpConfig } from 'easy-mcp-
|
|
41
|
+
import { EasyMCP, McpConfig } from 'easy-mcp-nest';
|
|
42
42
|
|
|
43
43
|
// Define your tools
|
|
44
44
|
async function getUser(args: { userId: string }): Promise<string> {
|
|
@@ -301,7 +301,7 @@ import {
|
|
|
301
301
|
ConfigurationError,
|
|
302
302
|
ToolExecutionError,
|
|
303
303
|
ToolNotFoundError
|
|
304
|
-
} from 'easy-mcp-
|
|
304
|
+
} from 'easy-mcp-nest';
|
|
305
305
|
|
|
306
306
|
// Configuration errors - caught during initialization
|
|
307
307
|
try {
|
|
@@ -364,7 +364,7 @@ If tools are registered but not being called:
|
|
|
364
364
|
If you encounter TypeScript or import errors:
|
|
365
365
|
|
|
366
366
|
1. **Peer Dependencies**: Ensure all peer dependencies are installed (see Installation section)
|
|
367
|
-
2. **Type Exports**: Verify you're importing from the main package: `import { EasyMCP } from 'easy-mcp-
|
|
367
|
+
2. **Type Exports**: Verify you're importing from the main package: `import { EasyMCP } from 'easy-mcp-nest'`
|
|
368
368
|
3. **Build Output**: Check that `dist/index.js` and `dist/index.d.ts` exist after building
|
|
369
369
|
4. **Module Resolution**: Ensure your `tsconfig.json` has proper module resolution settings
|
|
370
370
|
|
package/dist/config/version.js
CHANGED
|
@@ -9,7 +9,7 @@ function readPackageJson() {
|
|
|
9
9
|
const packageJson = require("../../package.json");
|
|
10
10
|
const name = typeof packageJson.name === "string"
|
|
11
11
|
? packageJson.name
|
|
12
|
-
: "easy-mcp-
|
|
12
|
+
: "easy-mcp-nest";
|
|
13
13
|
const version = typeof packageJson.version === "string"
|
|
14
14
|
? packageJson.version
|
|
15
15
|
: "0.0.0";
|
|
@@ -24,7 +24,7 @@ function readPackageJson() {
|
|
|
24
24
|
error: errorMessage,
|
|
25
25
|
});
|
|
26
26
|
return {
|
|
27
|
-
name: "easy-mcp-
|
|
27
|
+
name: "easy-mcp-nest",
|
|
28
28
|
version: "0.0.0",
|
|
29
29
|
};
|
|
30
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/config/version.ts"],"names":[],"mappings":";;;AA6DA,gCAEC;AAMD,wCAEC;AAvED,2DAAmD;AAYnD,SAAS,eAAe;IACtB,IAAI,CAAC;QAIH,MAAM,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAgB,CAAC;QAGjE,MAAM,IAAI,GAAG,OAAO,WAAW,CAAC,IAAI,KAAK,QAAQ;YAC/C,CAAC,CAAC,WAAW,CAAC,IAAI;YAClB,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/config/version.ts"],"names":[],"mappings":";;;AA6DA,gCAEC;AAMD,wCAEC;AAvED,2DAAmD;AAYnD,SAAS,eAAe;IACtB,IAAI,CAAC;QAIH,MAAM,WAAW,GAAG,OAAO,CAAC,oBAAoB,CAAgB,CAAC;QAGjE,MAAM,IAAI,GAAG,OAAO,WAAW,CAAC,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