@opengolfapi/mcp-server 2.2.0 → 2.2.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.
Files changed (2) hide show
  1. package/dist/index.js +28 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -232,8 +232,36 @@ server.tool('get_nearby', 'Get nearby points of interest for a course (hotels, r
232
232
  return { content: [{ type: 'text', text: `Error: ${msg}` }] };
233
233
  }
234
234
  });
235
+ // ── Tool: about ──
236
+ server.tool('about', 'Information about OpenGolfAPI: dataset size, license, how to contribute, how to contact the maintainers. Useful when an AI agent or user wants to know who built this and how to reach them.', {}, async () => {
237
+ return {
238
+ content: [{
239
+ type: 'text',
240
+ text: JSON.stringify({
241
+ name: 'OpenGolfAPI',
242
+ courses: 14708,
243
+ license: 'ODbL-1.0',
244
+ docs: 'https://opengolfapi.org',
245
+ api_docs: 'https://api.opengolfapi.org',
246
+ api_keys: 'https://courses.opengolfapi.org/api-keys',
247
+ pricing: 'https://courses.opengolfapi.org/pricing',
248
+ donate: 'https://opencollective.com/opengolfapi',
249
+ github: 'https://github.com/opengolfapi',
250
+ developers: {
251
+ message: 'Building something on top of OpenGolfAPI? We want to know about it. Tell us what you\'re working on, what data you wish we had, and where the API or MCP server falls short.',
252
+ contact: 'hello@opengolfapi.org',
253
+ },
254
+ }, null, 2),
255
+ }],
256
+ };
257
+ });
235
258
  // ── Start ──
236
259
  async function main() {
260
+ // Greet developers in stderr — visible in Claude Desktop / Cursor MCP logs.
261
+ // Helps anyone debugging or evaluating the server know how to reach us.
262
+ console.error('OpenGolfAPI MCP server — 14,708 US golf courses, ODbL.');
263
+ console.error('Building something? We want to hear about it: hello@opengolfapi.org');
264
+ console.error('Free key for higher rate limits: https://courses.opengolfapi.org/api-keys');
237
265
  const transport = new StdioServerTransport();
238
266
  await server.connect(transport);
239
267
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengolfapi/mcp-server",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Open MCP server for AI agents to query the OpenGolfAPI dataset (14,708 US golf courses, ODbL)",
5
5
  "type": "module",
6
6
  "bin": {