@mcampa/ai-context-mcp 0.0.1-beta.c518c19

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/utils.js ADDED
@@ -0,0 +1,27 @@
1
+ import * as path from "path";
2
+ /**
3
+ * Truncate content to specified length
4
+ */
5
+ export function truncateContent(content, maxLength) {
6
+ if (content.length <= maxLength) {
7
+ return content;
8
+ }
9
+ return content.substring(0, maxLength) + "...";
10
+ }
11
+ /**
12
+ * Ensure path is absolute. If relative path is provided, resolve it properly.
13
+ */
14
+ export function ensureAbsolutePath(inputPath) {
15
+ // If already absolute, return as is
16
+ if (path.isAbsolute(inputPath)) {
17
+ return inputPath;
18
+ }
19
+ // For relative paths, resolve to absolute path
20
+ const resolved = path.resolve(inputPath);
21
+ return resolved;
22
+ }
23
+ export function trackCodebasePath(codebasePath) {
24
+ const absolutePath = ensureAbsolutePath(codebasePath);
25
+ console.log(`[TRACKING] Tracked codebase path: ${absolutePath} (not marked as indexed)`);
26
+ }
27
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,OAAe,EAAE,SAAiB;IAChE,IAAI,OAAO,CAAC,MAAM,IAAI,SAAS,EAAE,CAAC;QAChC,OAAO,OAAO,CAAC;IACjB,CAAC;IACD,OAAO,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC;AACjD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,SAAiB;IAClD,oCAAoC;IACpC,IAAI,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;QAC/B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,+CAA+C;IAC/C,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACzC,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,YAAoB;IACpD,MAAM,YAAY,GAAG,kBAAkB,CAAC,YAAY,CAAC,CAAC;IACtD,OAAO,CAAC,GAAG,CACT,qCAAqC,YAAY,0BAA0B,CAC5E,CAAC;AACJ,CAAC"}
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@mcampa/ai-context-mcp",
3
+ "version": "0.0.1-beta.c518c19",
4
+ "description": "Model Context Protocol integration for Claude Context",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "bin": "dist/index.js",
9
+ "dependencies": {
10
+ "@mcampa/ai-context-core": "0.0.1-beta.c518c19",
11
+ "@modelcontextprotocol/sdk": "^1.12.1",
12
+ "zod": "^3.25.55"
13
+ },
14
+ "devDependencies": {
15
+ "@types/node": "^20.0.0",
16
+ "tsx": "^4.19.4",
17
+ "typescript": "^5.0.0"
18
+ },
19
+ "files": [
20
+ "dist",
21
+ "README.md"
22
+ ],
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "https://github.com/mcampa/claude-context.git",
26
+ "directory": "packages/mcp"
27
+ },
28
+ "license": "MIT",
29
+ "publishConfig": {
30
+ "access": "public"
31
+ },
32
+ "scripts": {
33
+ "build": "pnpm clean && tsc --build --force",
34
+ "dev": "tsx --watch src/index.ts",
35
+ "clean": "rimraf dist",
36
+ "lint": "eslint src",
37
+ "lint:fix": "eslint src --fix",
38
+ "typecheck": "tsc --noEmit",
39
+ "start": "tsx src/index.ts",
40
+ "start:with-env": "OPENAI_API_KEY=${OPENAI_API_KEY:your-api-key-here} MILVUS_ADDRESS=${MILVUS_ADDRESS:localhost:19530} tsx src/index.ts"
41
+ }
42
+ }