@remnic/replit 1.0.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.
- package/LICENSE +21 -0
- package/dist/index.d.ts +17 -0
- package/dist/index.js +36 -0
- package/package.json +43 -0
- package/setup-snippet.json +8 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Joshua Warren
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Replit connector installer.
|
|
3
|
+
*
|
|
4
|
+
* Since Replit has no plugin system, this generates a token and
|
|
5
|
+
* prints setup instructions for the Integrations pane.
|
|
6
|
+
*/
|
|
7
|
+
interface ReplitInstallResult {
|
|
8
|
+
token: string;
|
|
9
|
+
instructions: string;
|
|
10
|
+
mcpConfig: {
|
|
11
|
+
url: string;
|
|
12
|
+
headers: Record<string, string>;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
declare function generateReplitInstructions(token: string, host?: string, port?: number): ReplitInstallResult;
|
|
16
|
+
|
|
17
|
+
export { type ReplitInstallResult, generateReplitInstructions };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// src/installer.ts
|
|
2
|
+
function generateReplitInstructions(token, host = "localhost", port = 4318) {
|
|
3
|
+
const url = `http://${host}:${port}/mcp`;
|
|
4
|
+
const instructions = `
|
|
5
|
+
Replit Agent MCP Setup
|
|
6
|
+
======================
|
|
7
|
+
|
|
8
|
+
1. In your Replit workspace, open Integrations > Add MCP server
|
|
9
|
+
2. Enter URL: ${url}
|
|
10
|
+
3. Add headers:
|
|
11
|
+
- Authorization: Bearer ${token}
|
|
12
|
+
- X-Engram-Client-Id: replit
|
|
13
|
+
4. Click Test & Save
|
|
14
|
+
|
|
15
|
+
Note: For cloud Replit, EMO must be publicly reachable (via tunnel, public IP, or reverse proxy).
|
|
16
|
+
|
|
17
|
+
Limitations:
|
|
18
|
+
- Replit has no hook system, so memory recall/observe is manual
|
|
19
|
+
- The agent must explicitly call engram tools (recall, observe, store, search)
|
|
20
|
+
- All 44 MCP tools are available
|
|
21
|
+
`.trim();
|
|
22
|
+
return {
|
|
23
|
+
token,
|
|
24
|
+
instructions,
|
|
25
|
+
mcpConfig: {
|
|
26
|
+
url,
|
|
27
|
+
headers: {
|
|
28
|
+
Authorization: `Bearer ${token}`,
|
|
29
|
+
"X-Engram-Client-Id": "replit"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
generateReplitInstructions
|
|
36
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@remnic/replit",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Remnic MCP connector for Replit Agent — setup instructions and token generator",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "https://github.com/joshuaswarren/remnic.git",
|
|
18
|
+
"directory": "packages/connector-replit"
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"remnic",
|
|
22
|
+
"memory",
|
|
23
|
+
"replit",
|
|
24
|
+
"mcp",
|
|
25
|
+
"ai-agent"
|
|
26
|
+
],
|
|
27
|
+
"publishConfig": {
|
|
28
|
+
"access": "public",
|
|
29
|
+
"provenance": true
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"setup-snippet.json"
|
|
34
|
+
],
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"tsup": "^8.5.1",
|
|
37
|
+
"typescript": "^5.9.3"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "tsup --config tsup.config.ts",
|
|
41
|
+
"check-types": "tsc --noEmit"
|
|
42
|
+
}
|
|
43
|
+
}
|