@egain/egain-mcp-server 1.0.4 → 1.0.5
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 +67 -25
- package/bin/mcp-server.js +5 -5
- package/bin/mcp-server.js.map +4 -4
- package/esm/src/lib/config.d.ts +2 -2
- package/esm/src/lib/config.js +2 -2
- package/esm/src/mcp-server/mcp-server.js +1 -1
- package/esm/src/mcp-server/server.js +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
# eGain MCP
|
|
1
|
+
# eGain MCP Server
|
|
2
|
+
Model Context Protocol (MCP) Server for the *egain-mcp-server*.
|
|
3
|
+
|
|
2
4
|
<div align="left">
|
|
3
5
|
<a href="https://www.speakeasy.com/?utm_source=egain-mcp&utm_campaign=mcp-typescript"><img src="https://www.speakeasy.com/assets/badges/built-by-speakeasy.svg" /></a>
|
|
4
6
|
<a href="https://opensource.org/licenses/MIT">
|
|
@@ -7,11 +9,13 @@
|
|
|
7
9
|
</div>
|
|
8
10
|
<br />
|
|
9
11
|
|
|
10
|
-
> ⚠️ This MCP hosts eGain v4 APIs. Please do not attempt tool usage with previous API versions' standards. For more details about the v4 APIs, visit our [developer portal](https://apidev.egain.com/).
|
|
11
12
|
|
|
12
13
|
## Overview
|
|
13
14
|
|
|
14
15
|
This server implements MCP for eGain Knowledge, unifying Portal Manager, Search, Retrieve, and Answers into a single endpoint your AI client can call. Use it from Claude Desktop, Cursor, and others to browse portals, read articles, search/retrieve content, submit suggestions, and get AI‑powered answers with your existing portal permissions.
|
|
16
|
+
|
|
17
|
+
> ⚠️ This MCP hosts eGain v4 APIs. Please do not attempt tool usage with previous API versions' standards. For more details about the v4 APIs, visit our [developer portal](https://apidev.egain.com/).
|
|
18
|
+
|
|
15
19
|
<!-- No Summary [summary] -->
|
|
16
20
|
|
|
17
21
|
Learn more about the tools and usage of the MCP in the [eGain MCP guide](https://apidev.egain.com/developer-portal/guides/mcp/mcp/).
|
|
@@ -26,35 +30,29 @@ Learn more about the tools and usage of the MCP in the [eGain MCP guide](https:/
|
|
|
26
30
|
- A supported browser (Chrome, Firefox, Edge, or Brave) - **Safari is not supported**.
|
|
27
31
|
- A PKCE-friendly client application (SPA platform type recommended) configured in your eGain tenant.
|
|
28
32
|
|
|
29
|
-
##
|
|
30
|
-
### Step 1: Clone repository and install dependencies
|
|
31
|
-
> ⚠️ Do not modify the repository after cloning. The MCP works as intended
|
|
33
|
+
## Installation
|
|
32
34
|
|
|
33
|
-
|
|
35
|
+
### Quick Start: Install with npx (Recommended)
|
|
34
36
|
|
|
35
|
-
|
|
36
|
-
npm install
|
|
37
|
-
npm run build
|
|
38
|
-
```
|
|
37
|
+
The easiest way to get started is to install directly with `npx`. No cloning or building required!
|
|
39
38
|
|
|
40
|
-
|
|
41
|
-
Firstly, to find your API domain, use the eGain Administrator Console to retrieve the correct values:
|
|
39
|
+
**Step 1:** Find your API domain using the eGain Administrator Console:
|
|
42
40
|
1. Sign in as a Partition Admin → go to `Partition` → `Integration` → `Client Application`.
|
|
43
41
|
2. Click `Metadata`. The value `API Domain` is detailed in the window.
|
|
44
42
|
|
|
45
43
|
Please contact your eGain PA if you do not have access to these admin-only details.
|
|
46
44
|
|
|
47
|
-
|
|
45
|
+
**Step 2:** Configure your MCP client (Cursor, Claude Desktop, Windsurf, VS Code, etc.) with the following:
|
|
48
46
|
|
|
49
|
-
**Note:** Replace
|
|
47
|
+
**Note:** Replace `"..."` with your API domain from the Admin Console.
|
|
50
48
|
|
|
51
49
|
```json
|
|
52
50
|
{
|
|
53
51
|
"mcpServers": {
|
|
54
52
|
"EgainMcp": {
|
|
55
|
-
"command": "
|
|
53
|
+
"command": "npx",
|
|
56
54
|
"args": [
|
|
57
|
-
"
|
|
55
|
+
"@egain/egain-mcp-server",
|
|
58
56
|
"start",
|
|
59
57
|
"--api-domain",
|
|
60
58
|
"..."
|
|
@@ -64,6 +62,31 @@ To use this local version with **Cursor**, **Claude**, **Windsurf**, **VS Code**
|
|
|
64
62
|
}
|
|
65
63
|
```
|
|
66
64
|
|
|
65
|
+
That's it! The MCP server will be automatically downloaded and run when needed.
|
|
66
|
+
|
|
67
|
+
### Advanced: Clone Repository (Not Recommended)
|
|
68
|
+
|
|
69
|
+
> ⚠️ **Important:** Cloning is **only for contributors** or very specific use cases. **Do not modify the code** - the MCP works as intended. Any modifications are **unsupported** and may cause failures. If you encounter issues after modifying the code, we cannot provide support.
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
git clone https://github.com/eGain/egain-mcp-server
|
|
73
|
+
cd egain-mcp-server
|
|
74
|
+
npm install
|
|
75
|
+
npm run build
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
Configure with absolute path to `bin/mcp-server.js`:
|
|
79
|
+
```json
|
|
80
|
+
{
|
|
81
|
+
"mcpServers": {
|
|
82
|
+
"EgainMcp": {
|
|
83
|
+
"command": "node",
|
|
84
|
+
"args": ["./bin/mcp-server.js", "start", "--api-domain", "..."]
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
```
|
|
89
|
+
|
|
67
90
|
If you're having trouble configuring your MCP client, see these detailed guides:
|
|
68
91
|
- Claude quick-start and example queries: [Claude Guide](./help/claude-example.md)
|
|
69
92
|
- Cursor quick-start and example queries: [Cursor Guide](./help/cursor-example.md)
|
|
@@ -83,30 +106,49 @@ You'll need to enter your authentication configuration values in the browser for
|
|
|
83
106
|
|
|
84
107
|
<!-- No Installation [installation] -->
|
|
85
108
|
|
|
86
|
-
##
|
|
109
|
+
## 🆘 Having Issues?
|
|
87
110
|
|
|
88
|
-
|
|
111
|
+
**Check our troubleshooting guide!** Most problems have quick solutions:
|
|
89
112
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
113
|
+
### Quick Help
|
|
114
|
+
- **[FAQ & Troubleshooting Guide](./help/faq.md)** - Start here! Most issues are covered here
|
|
115
|
+
- **Authentication problems?** → [FAQ: Authentication Issues](./help/faq.md#authentication-issues)
|
|
116
|
+
- **Configuration problems?** → [FAQ: Configuration Issues](./help/faq.md#configuration-issues)
|
|
117
|
+
- **Tool/Query problems?** → [FAQ: MCP Tool Issues](./help/faq.md#mcp-tool-issues)
|
|
93
118
|
|
|
94
|
-
|
|
119
|
+
### Common Setup Hurdles
|
|
120
|
+
- **Can't find API Domain?** → [FAQ: Finding API Domain](./help/faq.md#q-i-cant-find-my-api-domain-or-scope-prefix-where-is-it)
|
|
121
|
+
- **Browser didn't open?** → [FAQ: No auth popup](./help/faq.md#no-auth-popup-appears)
|
|
122
|
+
- **401/403 errors?** → [FAQ: 401/403 errors](./help/faq.md#401403-errors)
|
|
123
|
+
- **Don't have Client Application?** → [Authentication Guide](https://apidev.egain.com/developer-portal/get-started/authentication_guide/)
|
|
124
|
+
|
|
125
|
+
## Debugging
|
|
126
|
+
|
|
127
|
+
For interactive testing and debugging, use the MCP Inspector. It provides a web interface where you can test MCP tools directly:
|
|
95
128
|
|
|
96
129
|
```bash
|
|
130
|
+
# With cloned repository
|
|
97
131
|
npx @modelcontextprotocol/inspector node ./bin/mcp-server.js start --api-domain "..."
|
|
132
|
+
|
|
133
|
+
# Or with npx (published package)
|
|
134
|
+
npx @modelcontextprotocol/inspector npx @egain/egain-mcp-server start --api-domain "..."
|
|
98
135
|
```
|
|
99
136
|
|
|
100
|
-
|
|
137
|
+
The inspector opens in your browser where you can:
|
|
138
|
+
- See all available tools
|
|
139
|
+
- Call tools with custom parameters
|
|
140
|
+
- View request/response details
|
|
141
|
+
- Test queries like "get my portals" or "show popular articles"
|
|
142
|
+
|
|
101
143
|
|
|
102
144
|
## Resources & Support
|
|
103
145
|
### Help Guides
|
|
146
|
+
- **[FAQ & Troubleshooting](./help/faq.md)**
|
|
104
147
|
- [What is MCP?](./help/what-is-mcp.md)
|
|
105
148
|
- [Authentication Deep Dive](./help/authentication.md)
|
|
106
149
|
- [Claude Example](./help/claude-example.md)
|
|
107
150
|
- [Cursor Example](./help/cursor-example.md)
|
|
108
|
-
- [BYO MCP Client LLM](./help/byo_llm_demo.ipynb)
|
|
109
|
-
- [FAQ & Troubleshooting](./help/faq.md)
|
|
151
|
+
- [BYO MCP Client LLM](./help/byo_llm_demo.ipynb)
|
|
110
152
|
|
|
111
153
|
MCP Server Created by [Speakeasy](https://www.speakeasy.com/?utm_source=egain-mcp&utm_campaign=mcp-typescript)
|
|
112
154
|
|
package/bin/mcp-server.js
CHANGED
|
@@ -4046,9 +4046,9 @@ var init_config = __esm(() => {
|
|
|
4046
4046
|
SDK_METADATA = {
|
|
4047
4047
|
language: "typescript",
|
|
4048
4048
|
openapiDocVersion: "1.0.0",
|
|
4049
|
-
sdkVersion: "1.0.
|
|
4049
|
+
sdkVersion: "1.0.5",
|
|
4050
4050
|
genVersion: "2.723.8",
|
|
4051
|
-
userAgent: "speakeasy-sdk/mcp-typescript 1.0.
|
|
4051
|
+
userAgent: "speakeasy-sdk/mcp-typescript 1.0.5 2.723.8 1.0.0 @egain/egain-mcp-server"
|
|
4052
4052
|
};
|
|
4053
4053
|
});
|
|
4054
4054
|
|
|
@@ -47817,7 +47817,7 @@ The Search API is a hybrid search service that combines semantic understanding w
|
|
|
47817
47817
|
function createMCPServer(deps) {
|
|
47818
47818
|
const server = new McpServer({
|
|
47819
47819
|
name: "EgainMcp",
|
|
47820
|
-
version: "1.0.
|
|
47820
|
+
version: "1.0.5"
|
|
47821
47821
|
});
|
|
47822
47822
|
const getClient = deps.getSDK || (() => new EgainMcpCore({
|
|
47823
47823
|
security: deps.security,
|
|
@@ -49064,7 +49064,7 @@ var routes = ln({
|
|
|
49064
49064
|
var app = _e(routes, {
|
|
49065
49065
|
name: "mcp",
|
|
49066
49066
|
versionInfo: {
|
|
49067
|
-
currentVersion: "1.0.
|
|
49067
|
+
currentVersion: "1.0.5"
|
|
49068
49068
|
}
|
|
49069
49069
|
});
|
|
49070
49070
|
Yt(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -49072,5 +49072,5 @@ export {
|
|
|
49072
49072
|
app
|
|
49073
49073
|
};
|
|
49074
49074
|
|
|
49075
|
-
//# debugId=
|
|
49075
|
+
//# debugId=F4433CEDEF86896B64756E2164756E21
|
|
49076
49076
|
//# sourceMappingURL=mcp-server.js.map
|