@apiverve/mcp-server 1.0.0 → 1.0.1

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
@@ -11,7 +11,7 @@
11
11
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
12
12
  [![MCP Compatible](https://img.shields.io/badge/MCP-Compatible-blue)](https://modelcontextprotocol.io)
13
13
 
14
- [Website](https://apiverve.com) • [Documentation](https://docs.apiverve.com) • [API Explorer](https://apiverve.com/marketplace) • [Report Bug](https://github.com/apiverve/mcp/issues)
14
+ [Website](https://apiverve.com) • [Documentation](https://docs.apiverve.com) • [API Explorer](https://apiverve.com/marketplace) • [Report Bug](https://github.com/apiverve/mcp-server/issues)
15
15
 
16
16
  </div>
17
17
 
@@ -46,7 +46,7 @@ Add to your MCP settings file:
46
46
  }
47
47
  ```
48
48
 
49
- **VS Code / Visual Studio:**
49
+ **VS Code / Cline:**
50
50
  ```json
51
51
  {
52
52
  "inputs": [],
@@ -60,6 +60,23 @@ Add to your MCP settings file:
60
60
  }
61
61
  ```
62
62
 
63
+ **Cursor:**
64
+ ```json
65
+ {
66
+ "mcpServers": {
67
+ "apiverve": {
68
+ "command": "npx",
69
+ "args": ["-y", "@modelcontextprotocol/server-everything"],
70
+ "env": {
71
+ "MCP_BRIDGE_URL": "https://api.apiverve.com/v1/mcp"
72
+ }
73
+ }
74
+ }
75
+ }
76
+ ```
77
+
78
+ Or configure directly in Cursor settings (Settings > Features > Model Context Protocol)
79
+
63
80
  ### NPM Package
64
81
 
65
82
  ```bash
@@ -209,7 +226,7 @@ Token costs vary by API complexity - simple APIs start at 1 token per call.
209
226
  - **Protocol**: MCP 2024-11-05
210
227
  - **Authentication**: OAuth 2.0 with PKCE
211
228
  - **Base URL**: `https://api.apiverve.com/v1/mcp`
212
- - **API Version**: 1.0.0
229
+ - **API Version**: 1.0.1
213
230
 
214
231
  ### OAuth Endpoints
215
232
 
@@ -250,7 +267,7 @@ If you hit token limits:
250
267
 
251
268
  ## 🤝 Support
252
269
 
253
- - **GitHub Issues**: [apiverve/mcp/issues](https://github.com/apiverve/mcp/issues)
270
+ - **GitHub Issues**: [apiverve/mcp-server/issues](https://github.com/apiverve/mcp-server/issues)
254
271
  - **Email**: hello@apiverve.com
255
272
  - **Discord**: [Join our community](https://apiverve.com/discord)
256
273
 
package/bin/install.js ADDED
@@ -0,0 +1,208 @@
1
+ #!/usr/bin/env node
2
+
3
+ const fs = require('fs');
4
+ const path = require('path');
5
+ const os = require('os');
6
+
7
+ const SERVER_CONFIG = {
8
+ type: 'sse',
9
+ url: 'https://api.apiverve.com/v1/mcp'
10
+ };
11
+
12
+ function getClaudeConfigPath() {
13
+ const platform = os.platform();
14
+
15
+ if (platform === 'darwin') {
16
+ // macOS
17
+ return path.join(os.homedir(), 'Library', 'Application Support', 'Claude', 'claude_desktop_config.json');
18
+ } else if (platform === 'win32') {
19
+ // Windows
20
+ return path.join(process.env.APPDATA, 'Claude', 'claude_desktop_config.json');
21
+ } else {
22
+ // Linux
23
+ return path.join(os.homedir(), '.config', 'Claude', 'claude_desktop_config.json');
24
+ }
25
+ }
26
+
27
+ function getVSCodeConfigPath() {
28
+ const platform = os.platform();
29
+
30
+ if (platform === 'darwin') {
31
+ return path.join(os.homedir(), 'Library', 'Application Support', 'Code', 'User', 'settings.json');
32
+ } else if (platform === 'win32') {
33
+ return path.join(process.env.APPDATA, 'Code', 'User', 'settings.json');
34
+ } else {
35
+ return path.join(os.homedir(), '.config', 'Code', 'User', 'settings.json');
36
+ }
37
+ }
38
+
39
+ function getCursorConfigPath() {
40
+ const platform = os.platform();
41
+
42
+ if (platform === 'darwin') {
43
+ return path.join(os.homedir(), 'Library', 'Application Support', 'Cursor', 'User', 'settings.json');
44
+ } else if (platform === 'win32') {
45
+ return path.join(process.env.APPDATA, 'Cursor', 'User', 'settings.json');
46
+ } else {
47
+ return path.join(os.homedir(), '.config', 'Cursor', 'User', 'settings.json');
48
+ }
49
+ }
50
+
51
+ function ensureDirectoryExists(filePath) {
52
+ const dir = path.dirname(filePath);
53
+ if (!fs.existsSync(dir)) {
54
+ fs.mkdirSync(dir, { recursive: true });
55
+ }
56
+ }
57
+
58
+ function installToClaudeDesktop() {
59
+ const configPath = getClaudeConfigPath();
60
+
61
+ console.log('📍 Claude Desktop config path:', configPath);
62
+
63
+ ensureDirectoryExists(configPath);
64
+
65
+ let config = {};
66
+
67
+ // Read existing config
68
+ if (fs.existsSync(configPath)) {
69
+ try {
70
+ const content = fs.readFileSync(configPath, 'utf8');
71
+ config = JSON.parse(content);
72
+ } catch (err) {
73
+ console.warn('⚠️ Could not parse existing config, creating new one');
74
+ }
75
+ }
76
+
77
+ // Ensure mcpServers section exists
78
+ if (!config.mcpServers) {
79
+ config.mcpServers = {};
80
+ }
81
+
82
+ // Add APIVerve server
83
+ config.mcpServers.apiverve = SERVER_CONFIG;
84
+
85
+ // Write config
86
+ fs.writeFileSync(configPath, JSON.stringify(config, null, 2), 'utf8');
87
+
88
+ console.log('✅ APIVerve MCP server added to Claude Desktop config');
89
+ return true;
90
+ }
91
+
92
+ function installToVSCode() {
93
+ const configPath = getVSCodeConfigPath();
94
+
95
+ console.log('📍 VS Code config path:', configPath);
96
+
97
+ ensureDirectoryExists(configPath);
98
+
99
+ let config = {};
100
+
101
+ // Read existing config
102
+ if (fs.existsSync(configPath)) {
103
+ try {
104
+ const content = fs.readFileSync(configPath, 'utf8');
105
+ config = JSON.parse(content);
106
+ } catch (err) {
107
+ console.warn('⚠️ Could not parse existing config, creating new one');
108
+ }
109
+ }
110
+
111
+ // Ensure mcp section exists (VS Code / Cline extension)
112
+ if (!config.mcp) {
113
+ config.mcp = { servers: {} };
114
+ }
115
+ if (!config.mcp.servers) {
116
+ config.mcp.servers = {};
117
+ }
118
+
119
+ // Add APIVerve server
120
+ config.mcp.servers.APIVerve = {
121
+ type: 'sse',
122
+ url: SERVER_CONFIG.url,
123
+ headers: {}
124
+ };
125
+
126
+ // Write config
127
+ fs.writeFileSync(configPath, JSON.stringify(config, null, 2), 'utf8');
128
+
129
+ console.log('✅ APIVerve MCP server added to VS Code config');
130
+ return true;
131
+ }
132
+
133
+ function installToCursor() {
134
+ const configPath = getCursorConfigPath();
135
+
136
+ console.log('📍 Cursor config path:', configPath);
137
+
138
+ ensureDirectoryExists(configPath);
139
+
140
+ let config = {};
141
+
142
+ // Read existing config
143
+ if (fs.existsSync(configPath)) {
144
+ try {
145
+ const content = fs.readFileSync(configPath, 'utf8');
146
+ config = JSON.parse(content);
147
+ } catch (err) {
148
+ console.warn('⚠️ Could not parse existing config, creating new one');
149
+ }
150
+ }
151
+
152
+ // Ensure mcpServers section exists
153
+ if (!config.mcpServers) {
154
+ config.mcpServers = {};
155
+ }
156
+
157
+ // Add APIVerve server
158
+ config.mcpServers.apiverve = SERVER_CONFIG;
159
+
160
+ // Write config
161
+ fs.writeFileSync(configPath, JSON.stringify(config, null, 2), 'utf8');
162
+
163
+ console.log('✅ APIVerve MCP server added to Cursor config');
164
+ return true;
165
+ }
166
+
167
+ function main() {
168
+ console.log('\n🔌 APIVerve MCP Server Installer\n');
169
+
170
+ const args = process.argv.slice(2);
171
+ const target = args[0] || 'all';
172
+
173
+ try {
174
+ if (target === 'claude' || target === 'all') {
175
+ installToClaudeDesktop();
176
+ }
177
+
178
+ if (target === 'vscode' || target === 'all') {
179
+ installToVSCode();
180
+ }
181
+
182
+ if (target === 'cursor' || target === 'all') {
183
+ installToCursor();
184
+ }
185
+
186
+ console.log('\n✨ Installation complete!');
187
+ console.log('\n📖 Next steps:');
188
+ console.log(' 1. Restart your MCP client (Claude Desktop, VS Code, or Cursor)');
189
+ console.log(' 2. Sign up at https://apiverve.com');
190
+ console.log(' 3. Authorize when prompted');
191
+ console.log(' 4. Start using 249+ APIs!\n');
192
+ } catch (error) {
193
+ console.error('\n❌ Installation failed:', error.message);
194
+ console.error('\n💡 Manual installation:');
195
+ console.error(' Add this to your MCP client config:\n');
196
+ console.error(' {');
197
+ console.error(' "mcpServers": {');
198
+ console.error(' "apiverve": {');
199
+ console.error(' "type": "sse",');
200
+ console.error(' "url": "https://api.apiverve.com/v1/mcp"');
201
+ console.error(' }');
202
+ console.error(' }');
203
+ console.error(' }\n');
204
+ process.exit(1);
205
+ }
206
+ }
207
+
208
+ main();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apiverve/mcp-server",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "APIVerve MCP Server - Access 249+ APIs through the Model Context Protocol",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -22,10 +22,10 @@
22
22
  "homepage": "https://apiverve.com",
23
23
  "repository": {
24
24
  "type": "git",
25
- "url": "https://github.com/apiverve/mcp.git"
25
+ "url": "https://github.com/apiverve/mcp-server.git"
26
26
  },
27
27
  "bugs": {
28
- "url": "https://github.com/apiverve/mcp/issues"
28
+ "url": "https://github.com/apiverve/mcp-server/issues"
29
29
  },
30
30
  "mcpServers": {
31
31
  "apiverve": {
package/pyproject.toml DELETED
@@ -1,29 +0,0 @@
1
- [build-system]
2
- requires = ["setuptools>=45", "wheel"]
3
- build-backend = "setuptools.build_meta"
4
-
5
- [project]
6
- name = "apiverve-mcp"
7
- version = "1.0.0"
8
- description = "APIVerve MCP Server - Access 249+ APIs through the Model Context Protocol"
9
- readme = "README.md"
10
- authors = [{name = "APIVerve", email = "hello@apiverve.com"}]
11
- license = {text = "MIT"}
12
- classifiers = [
13
- "Development Status :: 5 - Production/Stable",
14
- "Intended Audience :: Developers",
15
- "License :: OSI Approved :: MIT License",
16
- "Programming Language :: Python :: 3",
17
- "Programming Language :: Python :: 3.8",
18
- "Programming Language :: Python :: 3.9",
19
- "Programming Language :: Python :: 3.10",
20
- "Programming Language :: Python :: 3.11",
21
- ]
22
- keywords = ["mcp", "mcp-server", "model-context-protocol", "apiverve", "api", "claude", "chatgpt", "ai", "llm"]
23
- requires-python = ">=3.8"
24
-
25
- [project.urls]
26
- Homepage = "https://apiverve.com"
27
- Documentation = "https://docs.apiverve.com"
28
- Repository = "https://github.com/apiverve/mcp"
29
- Issues = "https://github.com/apiverve/mcp/issues"
package/setup.py DELETED
@@ -1,31 +0,0 @@
1
- from setuptools import setup, find_packages
2
-
3
- setup(
4
- name='apiverve-mcp',
5
- version='1.0.0',
6
- description='APIVerve MCP Server - Access 249+ APIs through the Model Context Protocol',
7
- long_description=open('README.md').read(),
8
- long_description_content_type='text/markdown',
9
- author='APIVerve',
10
- author_email='hello@apiverve.com',
11
- url='https://apiverve.com',
12
- project_urls={
13
- 'Documentation': 'https://docs.apiverve.com',
14
- 'Source': 'https://github.com/apiverve/mcp',
15
- 'Tracker': 'https://github.com/apiverve/mcp/issues',
16
- },
17
- packages=find_packages(),
18
- classifiers=[
19
- 'Development Status :: 5 - Production/Stable',
20
- 'Intended Audience :: Developers',
21
- 'License :: OSI Approved :: MIT License',
22
- 'Programming Language :: Python :: 3',
23
- 'Programming Language :: Python :: 3.8',
24
- 'Programming Language :: Python :: 3.9',
25
- 'Programming Language :: Python :: 3.10',
26
- 'Programming Language :: Python :: 3.11',
27
- 'Topic :: Software Development :: Libraries :: Python Modules',
28
- ],
29
- python_requires='>=3.8',
30
- keywords='mcp mcp-server model-context-protocol apiverve api claude chatgpt ai llm',
31
- )