@askingahuman/mcp-server 2.0.0 → 2.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/dist/server.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
2
2
  import type { McpConfig } from './config.js';
3
3
  import type { LiveBridge } from './live/bridge.js';
4
- export declare const SERVER_VERSION = "2.0.0";
4
+ export declare const SERVER_VERSION = "2.0.1";
5
5
  export declare function createMcpServer(opts: {
6
6
  apiKey: string | undefined;
7
7
  config: McpConfig;
package/dist/server.js CHANGED
@@ -8,7 +8,7 @@ import { submitFeedbackTool, handleSubmitFeedback } from './tools/submit-feedbac
8
8
  import { getQuoteTool, handleGetQuote, handleListHumans, listHumansTool } from './tools/discover.js';
9
9
  import { handleWhoIsLive, whoIsLiveTool } from './tools/who-is-live.js';
10
10
  import { checkConnectionTool, connectHumanTool, endSessionTool, extendSessionTool, handleCheckConnection, handleConnectHuman, handleEndSession, handleExtendSession, handleReadMessages, handleSendMessage, readMessagesTool, sendMessageTool, } from './tools/live.js';
11
- export const SERVER_VERSION = '2.0.0';
11
+ export const SERVER_VERSION = '2.0.1';
12
12
  const legacy = (fn) => async (args, ctx) => (await fn(args, ctx.apiKey, ctx.config.apiBase));
13
13
  // Always available: free questions and discovery.
14
14
  const CORE_TOOLS = [
@@ -116,6 +116,17 @@ export async function handleCheckAnswer(args, apiKey, apiBase) {
116
116
  ],
117
117
  };
118
118
  }
119
+ if (data.status === 'DECLINED') {
120
+ return {
121
+ content: [
122
+ {
123
+ type: 'text',
124
+ text: 'The person declined this question; it will not be answered. Stop checking it, ' +
125
+ 'and do not send them this question again.',
126
+ },
127
+ ],
128
+ };
129
+ }
119
130
  return {
120
131
  content: [
121
132
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@askingahuman/mcp-server",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "MCP server for askingahuman.com: let AI agents reach real people, with free questions and capped, paid live chats",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",