@oneshot-agent/mcp-server 0.35.0 → 0.37.0
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 +19 -19
- package/dist/index.js +1 -1
- package/dist/tools/annotations.js +26 -14
- package/dist/tools/browser.js +1 -1
- package/dist/tools/company.d.ts +4 -4
- package/dist/tools/company.js +8 -8
- package/dist/tools/compute.d.ts +3 -2
- package/dist/tools/compute.js +4 -4
- package/dist/tools/domains.js +1 -1
- package/dist/tools/email.js +2 -2
- package/dist/tools/enrichment.d.ts +6 -6
- package/dist/tools/enrichment.js +12 -12
- package/dist/tools/gov.d.ts +2 -2
- package/dist/tools/gov.js +4 -4
- package/dist/tools/index.js +39 -34
- package/dist/tools/linkedin.js +8 -6
- package/dist/tools/local.d.ts +4 -4
- package/dist/tools/local.js +9 -9
- package/dist/tools/lookup-manifest.generated.d.ts +34 -0
- package/dist/tools/lookup-manifest.generated.js +1458 -0
- package/dist/tools/lookup.d.ts +29 -0
- package/dist/tools/lookup.js +44 -0
- package/dist/tools/nyne.d.ts +11 -11
- package/dist/tools/nyne.js +23 -23
- package/dist/tools/people.d.ts +2 -2
- package/dist/tools/people.js +5 -5
- package/package.json +2 -2
package/dist/tools/local.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const
|
|
2
|
-
name: "
|
|
3
|
-
description: "Discover local main-street businesses (restaurants, contractors, dental practices, auto shops) by category or keywords in a location. Use this instead of
|
|
1
|
+
export const businessFindTool = {
|
|
2
|
+
name: "oneshot_business_find",
|
|
3
|
+
description: "Discover local main-street businesses (restaurants, contractors, dental practices, auto shops) by category or keywords in a location. Use this instead of person_find for independent local businesses. Flat price per search. Paid tool.",
|
|
4
4
|
inputSchema: {
|
|
5
5
|
type: "object",
|
|
6
6
|
properties: {
|
|
@@ -18,8 +18,8 @@ export const localSearchTool = {
|
|
|
18
18
|
anyOf: [{ required: ["category"] }, { required: ["keywords"] }],
|
|
19
19
|
},
|
|
20
20
|
};
|
|
21
|
-
export const
|
|
22
|
-
name: "
|
|
21
|
+
export const businessResolveTool = {
|
|
22
|
+
name: "oneshot_business_resolve",
|
|
23
23
|
description: "Resolve a local business name plus one locating field (address, city, postal code, or phone) to its website domain, phone, category, and operating status with a match confidence. A miss returns found=false, not an error. Paid tool.",
|
|
24
24
|
inputSchema: {
|
|
25
25
|
type: "object",
|
|
@@ -35,8 +35,8 @@ export const localResolveTool = {
|
|
|
35
35
|
anyOf: [{ required: ["address"] }, { required: ["city"] }, { required: ["postal_code"] }, { required: ["phone"] }],
|
|
36
36
|
},
|
|
37
37
|
};
|
|
38
|
-
export async function
|
|
39
|
-
return agent.
|
|
38
|
+
export async function handleBusinessFind(agent, args) {
|
|
39
|
+
return agent.businessFind({
|
|
40
40
|
category: args.category,
|
|
41
41
|
keywords: args.keywords,
|
|
42
42
|
location: args.location,
|
|
@@ -48,8 +48,8 @@ export async function handleLocalSearch(agent, args) {
|
|
|
48
48
|
limit: args.limit,
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
export async function
|
|
52
|
-
return agent.
|
|
51
|
+
export async function handleBusinessResolve(agent, args) {
|
|
52
|
+
return agent.businessResolve({
|
|
53
53
|
name: args.name,
|
|
54
54
|
address: args.address,
|
|
55
55
|
city: args.city,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface LookupManifestEntry {
|
|
2
|
+
/** The lookup tool's name; the MCP tool is `oneshot_<name>`. */
|
|
3
|
+
name: string;
|
|
4
|
+
/** What is passed to `agent.tool()`. */
|
|
5
|
+
path: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
inputSchema: {
|
|
9
|
+
type: "object";
|
|
10
|
+
properties: Record<string, object>;
|
|
11
|
+
required: string[];
|
|
12
|
+
};
|
|
13
|
+
example: Record<string, unknown>;
|
|
14
|
+
}
|
|
15
|
+
export declare const LOOKUP_MANIFEST: readonly LookupManifestEntry[];
|
|
16
|
+
/** A declared route with no hand-written MCP tool (#1580): `oneshot_<name>`, called by `agent.route(method, path, input)`. */
|
|
17
|
+
export interface RouteManifestEntry {
|
|
18
|
+
name: string;
|
|
19
|
+
method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
20
|
+
/** The route path; `{param}` is an input that is put into the path. */
|
|
21
|
+
path: string;
|
|
22
|
+
/** A paid route: quote-to-pay, then the call. Otherwise a signed free call. */
|
|
23
|
+
paid: boolean;
|
|
24
|
+
readOnly: boolean;
|
|
25
|
+
title: string;
|
|
26
|
+
description: string;
|
|
27
|
+
inputSchema: {
|
|
28
|
+
type: "object";
|
|
29
|
+
properties: Record<string, object>;
|
|
30
|
+
required: string[];
|
|
31
|
+
};
|
|
32
|
+
example: Record<string, unknown>;
|
|
33
|
+
}
|
|
34
|
+
export declare const ROUTE_MANIFEST: readonly RouteManifestEntry[];
|