@amplify-studio/open-mcp 0.8.0 → 0.8.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
@@ -80,56 +80,67 @@ Open MCP is a comprehensive server solution that enables AI assistants (like Cla
80
80
 
81
81
  ## Installation
82
82
 
83
- ### Option 1: From npm (Recommended for Users)
84
-
85
- Install from npm registry:
83
+ ### Option 1: From npm (Recommended)
86
84
 
87
85
  **Using Claude CLI:**
88
86
  ```bash
89
- claude mcp add @amplify-studio/open-mcp
87
+ claude mcp add-json -s user open-mcp '{
88
+ "command": "npx",
89
+ "args": ["-y", "@amplify-studio/open-mcp@latest"]
90
+ }'
91
+ ```
92
+
93
+ **With custom gateway:**
94
+ ```bash
95
+ claude mcp add-json -s user open-mcp '{
96
+ "command": "npx",
97
+ "args": ["-y", "@amplify-studio/open-mcp@latest"],
98
+ "env": {
99
+ "GATEWAY_URL": "http://115.190.91.253:80"
100
+ }
101
+ }'
90
102
  ```
91
103
 
92
- **Or with npx:**
104
+ ### Option 2: Claude Desktop Config
105
+
106
+ Edit `claude_desktop_config.json`:
107
+
93
108
  ```json
94
109
  {
95
110
  "mcpServers": {
96
111
  "open-mcp": {
97
112
  "command": "npx",
98
- "args": ["-y", "@amplify-studio/open-mcp"]
113
+ "args": ["-y", "@amplify-studio/open-mcp@latest"]
99
114
  }
100
115
  }
101
116
  }
102
117
  ```
103
118
 
104
- ### Option 2: From GitHub
105
-
106
- No installation needed - runs directly from GitHub:
107
-
108
- **Claude Desktop Config**:
119
+ **With custom gateway:**
109
120
  ```json
110
121
  {
111
122
  "mcpServers": {
112
123
  "open-mcp": {
113
124
  "command": "npx",
114
- "args": ["-y", "github:amplify-studio/open-mcp"]
125
+ "args": ["-y", "@amplify-studio/open-mcp@latest"],
126
+ "env": {
127
+ "GATEWAY_URL": "http://115.190.91.253:80"
128
+ }
115
129
  }
116
130
  }
117
131
  }
118
132
  ```
119
133
 
120
- ### Option 3: Custom Gateway
134
+ ### Option 3: From GitHub
121
135
 
122
- If you have your own gateway instance:
136
+ Alternative: install directly from GitHub (no npm):
123
137
 
124
138
  ```json
125
139
  {
126
140
  "mcpServers": {
127
141
  "open-mcp": {
128
142
  "command": "npx",
129
- "args": ["-y", "github:amplify-studio/open-mcp"],
130
- "env": {
131
- "GATEWAY_URL": "http://your-gateway.com:80"
132
- }
143
+ "args": ["-y", "github:amplify-studio/open-mcp"]
133
144
  }
134
145
  }
135
146
  }
package/dist/search.js CHANGED
@@ -124,7 +124,12 @@ export async function performWebSearch(server, query, pageno = 1, time_range, la
124
124
  }
125
125
  const duration = Date.now() - startTime;
126
126
  logMessage(server, "info", `Search completed: "${query}" (${searchParams}) - ${results.length} results in ${duration}ms`);
127
- return results
128
- .map((r) => `Title: ${r.title}\nDescription: ${r.content}\nURL: ${r.url}\nRelevance Score: ${r.score.toFixed(3)}`)
129
- .join("\n\n");
127
+ // Return as JSON string
128
+ return JSON.stringify({
129
+ query,
130
+ results,
131
+ totalCount: results.length,
132
+ duration: `${duration}ms`,
133
+ page: pageno
134
+ }, null, 2);
130
135
  }
@@ -185,10 +185,17 @@ export async function fetchAndConvertToMarkdown(server, url, timeoutMs = 10000,
185
185
  // Cache the markdown content from gateway
186
186
  urlCache.set(url, "", markdownContent);
187
187
  // Apply pagination options
188
- const result = applyPaginationOptions(markdownContent, paginationOptions);
188
+ const content = applyPaginationOptions(markdownContent, paginationOptions);
189
189
  const duration = Date.now() - startTime;
190
- logMessage(server, "info", `Successfully fetched and converted URL: ${url} (${result.length} chars in ${duration}ms)`);
191
- return result;
190
+ logMessage(server, "info", `Successfully fetched and converted URL: ${url} (${content.length} chars in ${duration}ms)`);
191
+ // Return as JSON string
192
+ return JSON.stringify({
193
+ url,
194
+ content,
195
+ charCount: content.length,
196
+ duration: `${duration}ms`,
197
+ cached: !!cachedEntry
198
+ }, null, 2);
192
199
  }
193
200
  catch (error) {
194
201
  if (error.name === "AbortError") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amplify-studio/open-mcp",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "Open MCP server for web search and URL reading via Gateway API",
5
5
  "license": "MIT",
6
6
  "author": "Amplify Studio (https://github.com/amplify-studio)",