@openanysi/recipe-search-mcp 0.0.0-stage → 0.1.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/CONTRIBUTING.md +50 -0
- package/LICENSE +201 -0
- package/README.md +221 -2
- package/bin/server.js +18 -0
- package/docs/README.zh-CN.md +224 -0
- package/package.json +61 -4
- package/skills/recipe-search/SKILL.md +31 -0
- package/skills/recipe-search/references/common.en.md +5 -0
- package/skills/recipe-search/references/common.zh.md +5 -0
- package/skills/recipe-search/references/evidence-brief.en.md +19 -0
- package/skills/recipe-search/references/evidence-brief.zh.md +19 -0
- package/skills/recipe-search/references/research.en.md +30 -0
- package/skills/recipe-search/references/research.zh.md +30 -0
- package/src/config.js +37 -0
- package/src/server.js +18 -0
- package/vertical.config.json +169 -0
- package/workflows/common.en.md +5 -0
- package/workflows/common.zh.md +5 -0
- package/workflows/evidence-brief.en.md +19 -0
- package/workflows/evidence-brief.zh.md +19 -0
- package/workflows/research.en.md +30 -0
- package/workflows/research.zh.md +30 -0
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Use Node.js 22 or later. In the monorepo, install dependencies from the repository root and select the relevant workspace:
|
|
4
|
+
|
|
5
|
+
```sh
|
|
6
|
+
npm ci --ignore-scripts
|
|
7
|
+
npm test --workspace @openanysi/<slug>
|
|
8
|
+
npm run check --workspace @openanysi/<slug>
|
|
9
|
+
npm run smoke:package --workspace @openanysi/<slug>
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
Replace `<slug>` with the package's actual name. The monorepo uses `packages/*` and a shared root lockfile; do not generate a child lockfile or initialize Git inside each package. For a standalone checkout, run the package's scripts without `--workspace`. Package smoke verifies the governing lockfile and manifest files remain unchanged.
|
|
13
|
+
|
|
14
|
+
## Runtime and tool changes
|
|
15
|
+
|
|
16
|
+
The package maps atomic tools to current OpenAny API contracts through the shared SDK. Keep credentials, contract versions, transport, error handling and referrals in that SDK. Read the installed SDK's exports and types before changing integration code; inspect its installed version with `npm ls @openanysi/openany-core`.
|
|
17
|
+
|
|
18
|
+
Update the tool configuration, contract fixtures, relevant guides and public tool table together. Preserve required inputs and input mappings. The client controls combinations, sampling, each page, analysis and export. A replacement API with a different output scope needs an explicit tool/guide change.
|
|
19
|
+
|
|
20
|
+
## Guides and optional companion Skills
|
|
21
|
+
|
|
22
|
+
Maintain both English and Chinese task guides. When a companion Skill is included, keep its references and generated MCP guides synchronized using the package's declared commands; otherwise edit the bundled guides directly. Do not document a command that the package does not provide. A bundled Skill is optional and does not automatically connect an MCP.
|
|
23
|
+
|
|
24
|
+
Check the current runtime's actual workflow-language default. English examples should explicitly select `language: "en"`. Updating prose does not change a runtime default.
|
|
25
|
+
|
|
26
|
+
## Public documentation
|
|
27
|
+
|
|
28
|
+
Keep the README focused on tasks, setup, tool parameters and one short Limitations & Billing section. Use supplier-neutral copy. Put implementation instructions here and private test results outside public-facing documentation. Keep genuine source and billing evidence available for maintainers without presenting it as marketing copy.
|
|
29
|
+
|
|
30
|
+
Use unversioned scoped npx examples and credential placeholders. Link to OpenAny key setup and current pricing. Separate utility-only no-key trials from paid data prompts. README relative links must exist in the npm tarball; use absolute public URLs for repository-only material.
|
|
31
|
+
|
|
32
|
+
## Verification and packaging
|
|
33
|
+
|
|
34
|
+
Local tests use captured contracts and clearly synthetic business responses. They verify protocol behavior and mapping; they do not establish supplier availability. Real calls require the task's existing authorization and private credentials. Preserve unknown outcomes and check original request IDs before another paid request. Do not replay calls for timing samples.
|
|
35
|
+
|
|
36
|
+
Package smoke installs a temporary tarball outside the checkout. It checks assets, documentation links, startup and guides without making paid business calls. If offline dependency metadata is missing, prepare an isolated npm cache rather than changing the user's default cache or bypassing checks.
|
|
37
|
+
|
|
38
|
+
Run anonymous live or public-release checks only when the package provides the relevant command or the authoring toolkit is available. Record exact versions and results privately. A local tarball test, registry check, npm-page render and real provider read are separate evidence.
|
|
39
|
+
|
|
40
|
+
## Release
|
|
41
|
+
|
|
42
|
+
Review package name, version, bin, dependency source, license, tarball contents and README. Preserve fixed dependency versions in package metadata without repeating them in public copy. npm README content changes with a new published version; a Git push alone does not refresh it.
|
|
43
|
+
|
|
44
|
+
Complete local checks and obtain approval for the specific package and version before publishing. Keep publishing credentials in private process configuration, outside the repository and tarball. After publishing, verify the exact public registry version, packaged documentation and a clean public installation, then update the release tracker with actual results. A staged version or an incomplete registry verification remains pending. If tracker writeback fails, retry that step without publishing the package again.
|
|
45
|
+
|
|
46
|
+
From the monorepo root, publish only the approved package with `npm publish --workspace @openanysi/<slug> --access public`. The private root package is not a release artifact. Keep `repository.directory` set to `packages/<slug>` and avoid publishing unrelated workspaces.
|
|
47
|
+
|
|
48
|
+
## Companion Skill
|
|
49
|
+
|
|
50
|
+
Edit the canonical files in `workflows/`, then run `npm run sync:skill` in this workspace. `npm run check` verifies that the packaged companion references match those canonical files. Keep user keys and business verification records outside the package.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,222 @@
|
|
|
1
|
-
#
|
|
1
|
+
# recipe-search-mcp: Recipe Search MCP
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
MCP server to research recipe listings, ingredients and available cooking instructions. Built for Claude, Cursor and other AI agents. Powered by [OpenAny](https://openany.si/).
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/@openanysi/recipe-search-mcp)
|
|
6
|
+
[](LICENSE)
|
|
7
|
+
[](https://nodejs.org/)
|
|
8
|
+
|
|
9
|
+
English | [简体中文](docs/README.zh-CN.md)
|
|
10
|
+
|
|
11
|
+
## Overview
|
|
12
|
+
|
|
13
|
+
Use this MCP to research recipe listings, ingredients and available cooking instructions.
|
|
14
|
+
|
|
15
|
+
Designed for recipe editors and meal researchers, it supplies evidence your agent can turn into a recipe comparison with source links and missing ingredient/nutrition context.
|
|
16
|
+
|
|
17
|
+
**Best For / Not For**
|
|
18
|
+
|
|
19
|
+
- **Best For:** Search recipes to find candidates within supported cooking criteria.
|
|
20
|
+
- **Best For:** Get recipe to inspect a verified recipe reference and its units.
|
|
21
|
+
- **Best For:** comparing collected records with their object, time and field-coverage context.
|
|
22
|
+
- **Best For:** analyzing supplied material without collecting again merely to write a report.
|
|
23
|
+
- **Not For:** operations or filters absent from Tools Reference, or treating samples as complete coverage; see the scope FAQ.
|
|
24
|
+
|
|
25
|
+
## Table of Contents
|
|
26
|
+
|
|
27
|
+
- [Quick Start](#quick-start)
|
|
28
|
+
- [Key Features](#key-features)
|
|
29
|
+
- [Example Prompts](#example-prompts)
|
|
30
|
+
- [Why recipe-search-mcp?](#why-recipe-search-mcp)
|
|
31
|
+
- [What You Can Build & Deliver](#what-you-can-build--deliver)
|
|
32
|
+
- [Tools Reference](#tools-reference)
|
|
33
|
+
- [Built-in Workflow Guides](#built-in-workflow-guides)
|
|
34
|
+
- [End-to-End Example](#end-to-end-example)
|
|
35
|
+
- [FAQ](#faq)
|
|
36
|
+
- [Error Handling & Retries](#error-handling--retries)
|
|
37
|
+
- [Scope, Data & Billing Notes](#scope-data--billing-notes)
|
|
38
|
+
- [Development](#development)
|
|
39
|
+
- [About OpenAny](#about-openany)
|
|
40
|
+
- [License](#license)
|
|
41
|
+
|
|
42
|
+
## Quick Start
|
|
43
|
+
|
|
44
|
+
### Prerequisites
|
|
45
|
+
|
|
46
|
+
- Node.js 22+ and a client supporting local `stdio` MCP servers.
|
|
47
|
+
- An OpenAny API key for data tools: [API Keys](https://openany.si/dashboard/?page=api-keys), [setup guide](https://openany.si/setup.md), [usage and costs](https://openany.si/dashboard/?page=usage).
|
|
48
|
+
- Utility tools work without a key.
|
|
49
|
+
|
|
50
|
+
### Configure Your Client
|
|
51
|
+
|
|
52
|
+
For clients using `mcpServers`, add this to private settings. Other hosts register the same command, arguments and environment through their MCP settings or CLI.
|
|
53
|
+
|
|
54
|
+
```json
|
|
55
|
+
{
|
|
56
|
+
"mcpServers": {
|
|
57
|
+
"recipe-search-mcp": {
|
|
58
|
+
"command": "npx",
|
|
59
|
+
"args": [
|
|
60
|
+
"-y",
|
|
61
|
+
"@openanysi/recipe-search-mcp"
|
|
62
|
+
],
|
|
63
|
+
"env": {
|
|
64
|
+
"OPENANY_API_KEY": "YOUR_OPENANY_API_KEY"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Store `OPENANY_API_KEY` in private client settings or the inherited environment. Omit `env` for utility-only use. Keep real keys out of chat and repositories.
|
|
72
|
+
|
|
73
|
+
### Verify It Works
|
|
74
|
+
|
|
75
|
+
- **Without an API key:** Inspect `search_recipes` with `get_tool_info`, then load `get_workflow` with `workflow: "research", language: "en"`. Explain inputs and pricing without fetching data.
|
|
76
|
+
- **With an API key:** Ask the agent to inspect the relevant tool, request one scoped sample for your question, and preserve sources and missing fields in a research table.
|
|
77
|
+
|
|
78
|
+
## Key Features
|
|
79
|
+
|
|
80
|
+
- **Search recipes:** use `search_recipes` as an independent operation; inspect its inputs and available fields below.
|
|
81
|
+
- **Get recipe:** use `get_recipe` as an independent operation; inspect its inputs and available fields below.
|
|
82
|
+
- **Comparable evidence:** retain Recipe source / ID; Servings; Ingredients / units; mark missing fields unknown.
|
|
83
|
+
- **Inspect before collection:** read current parameters and pricing before each request; uncertain outcomes are not automatically replayed.
|
|
84
|
+
- **Bilingual task guidance:** collection and reporting guides support analysis and available local exports with your own client model.
|
|
85
|
+
- **Related capability discovery:** inspect the OpenAny catalog when this domain needs another operation; discovery does not execute or install it.
|
|
86
|
+
|
|
87
|
+
## Example Prompts
|
|
88
|
+
|
|
89
|
+
- "Research recipe candidates for a supplied ingredient or cooking goal."
|
|
90
|
+
- "Find recipes for my ingredient and time limit, retaining source links before selecting details."
|
|
91
|
+
- "Do not invent nutrition or allergen values that the records omit."
|
|
92
|
+
- "Use only the records I provide. Make no new data calls. Organize the evidence columns below, mark missing fields and list follow-up questions."
|
|
93
|
+
|
|
94
|
+
## Why recipe-search-mcp?
|
|
95
|
+
|
|
96
|
+
| What You Care About | How We Handle It | Value to You |
|
|
97
|
+
| --- | --- | --- |
|
|
98
|
+
| Search recipes | Use `search_recipes` with `query` | Find candidates within supported cooking criteria |
|
|
99
|
+
| Get recipe | Use `get_recipe` with `id` | Inspect a verified recipe reference and its units |
|
|
100
|
+
|
|
101
|
+
## What You Can Build & Deliver
|
|
102
|
+
|
|
103
|
+
| Use Case | How the Agent Runs It | Typical Deliverables |
|
|
104
|
+
| --- | --- | --- |
|
|
105
|
+
| Search recipes | Choose `search_recipes` with the identifiers and inputs required by its current contract. | Sourced evidence to help find candidates within supported cooking criteria. |
|
|
106
|
+
| Get recipe | Choose `get_recipe` with the identifiers and inputs required by its current contract. | Sourced evidence to help inspect a verified recipe reference and its units. |
|
|
107
|
+
| Recipe Search brief | Align object identity, dates and units before interpreting collected records. | Sourced observations, unresolved differences and follow-up checks. |
|
|
108
|
+
|
|
109
|
+
## Tools Reference
|
|
110
|
+
|
|
111
|
+
The server exposes **5 tools**: 2 data tools and 3 free keyless utilities. Each data tool maps to one request. The client decides subsequent calls and pages.
|
|
112
|
+
|
|
113
|
+
### Data Tools
|
|
114
|
+
|
|
115
|
+
| Tool | Parameters | Behavior | Typical Returned Fields |
|
|
116
|
+
| --- | --- | --- | --- |
|
|
117
|
+
| `search_recipes` | `calories` (string, optional); `cuisine` (string, optional); `diet` (string, optional); `difficulty` (string, optional); `limit` (integer, optional); `max_time` (integer, optional); `meal_type` (string, optional); `output` (string, optional; json); `page` (integer, optional); `query` (string, required); `rating` (string, optional); `rating_min` (integer, optional); `servings` (string, optional); `site` (string, optional); `sort` (string, optional; relevant, published, rating, quickest); `total_time` (string, optional) | Search recipes | `id`, `title`, `url`, `author`; fields and completeness are provider-dependent. |
|
|
118
|
+
| `get_recipe` | `id` (string, required); `output` (string, optional; json) | Get recipe | `id`, `name`, `slug`, `ingredient_sections`, `instructions`, `url`; fields and completeness are provider-dependent. |
|
|
119
|
+
|
|
120
|
+
Responses are passed through rather than normalized into an invented common business schema. Inspect the returned payload before extracting fields or chaining identifiers. Optional fields may be missing. An input cursor is available only where listed above.
|
|
121
|
+
|
|
122
|
+
Recipe discovery and a supplied recipe ID use different catalogues. Preserve servings, measurement units, ingredients and source links; nutrition/allergen completeness is not guaranteed and no dietary or medical recommendation is made.
|
|
123
|
+
|
|
124
|
+
### Utility Tools (Free, No API Key Required)
|
|
125
|
+
|
|
126
|
+
| Tool | Parameters | Behavior |
|
|
127
|
+
| --- | --- | --- |
|
|
128
|
+
| `get_tool_info` | Required `tool_name` from the data-tool names above | Read current parameters, pricing and limits |
|
|
129
|
+
| `get_workflow` | Required `workflow`; optional `language` (`zh` or `en`, default `zh`) | Return a guide; use `language: "en"` for English |
|
|
130
|
+
| `search_openany_capabilities` | Required `query` (1-256 characters); optional `limit` (1-10, default 5) | Search related capabilities without executing them |
|
|
131
|
+
|
|
132
|
+
## Built-in Workflow Guides
|
|
133
|
+
|
|
134
|
+
`get_workflow` returns instructions for your client without calling data tools or a model. Select `language: "en"` for English.
|
|
135
|
+
|
|
136
|
+
| Guide ID | Best For | What It Provides |
|
|
137
|
+
| --- | --- | --- |
|
|
138
|
+
| `research` | Planning recipe search | A tool/identifier checklist and a scoped collection method. |
|
|
139
|
+
| `evidence_brief` | Reporting from collected recipe search records | Source attribution, comparison context, missing information and follow-up questions. |
|
|
140
|
+
|
|
141
|
+
### Companion Skill (Optional)
|
|
142
|
+
|
|
143
|
+
The [companion Skill](skills/recipe-search/SKILL.md) contains the same bilingual guides. Install it only if your client supports Skills; MCP guides work independently.
|
|
144
|
+
|
|
145
|
+
## End-to-End Example
|
|
146
|
+
|
|
147
|
+
**Prompt:** "Find recipes for my ingredient and time limit, retaining source links before selecting details."
|
|
148
|
+
|
|
149
|
+
**How the Agent Executes:**
|
|
150
|
+
|
|
151
|
+
1. Load `research`, establish identifiers, scope and budget, and select the needed tools: `search_recipes`, `get_recipe`.
|
|
152
|
+
2. Inspect `get_tool_info` for current schemas and pricing. Make authorized calls only with confirmed identifiers and required inputs; do not fabricate IDs or append pages automatically.
|
|
153
|
+
3. Search recipes with supported filters and inspect only confirmed IDs for the separate detail catalogue. Preserve servings, measurement units and ingredient sources.
|
|
154
|
+
4. Retain evidence using these columns: Recipe source / ID | Servings | Ingredients / units | Available time | Missing nutrition | Notes. Mark absent fields unknown.
|
|
155
|
+
5. Load `evidence_brief`, write evidence-linked findings and open questions, and export Markdown/CSV only when client file tools are available.
|
|
156
|
+
|
|
157
|
+
## FAQ
|
|
158
|
+
|
|
159
|
+
### Which inputs should I confirm before starting?
|
|
160
|
+
|
|
161
|
+
`search_recipes` requires `query`; `get_recipe` requires `id`. Choose the operation that matches the supplied query or known record; ask for missing identifiers rather than guessing from names.
|
|
162
|
+
|
|
163
|
+
### How should I compare the returned records?
|
|
164
|
+
|
|
165
|
+
Align Recipe source / ID; Servings; Ingredients / units before comparing. Keep supported observations separate from unavailable fields and list the specific follow-up evidence needed.
|
|
166
|
+
|
|
167
|
+
### What are the domain-specific scope limits?
|
|
168
|
+
|
|
169
|
+
Recipe discovery and a supplied recipe ID use different catalogues. Preserve servings, measurement units, ingredients and source links; nutrition/allergen completeness is not guaranteed and no dietary or medical recommendation is made.
|
|
170
|
+
|
|
171
|
+
### How much does this MCP cost?
|
|
172
|
+
|
|
173
|
+
The Apache-2.0 package has no MCP subscription fee. Three utilities are free and keyless; 2 data tools follow current OpenAny pricing. Inspect `get_tool_info` before calling. Client model costs are separate.
|
|
174
|
+
|
|
175
|
+
### Do I need a platform account or browser cookies?
|
|
176
|
+
|
|
177
|
+
Data calls use `OPENANY_API_KEY`. The MCP configuration does not require a personal platform account or browser cookies, and does not grant access to unprovided private account data.
|
|
178
|
+
|
|
179
|
+
### Which clients work, and what can I try without a key?
|
|
180
|
+
|
|
181
|
+
Use a standard local `stdio` MCP client. The configuration JSON applies to hosts using `mcpServers`; other clients register the same command. Without a key, inspect tools, read guides and discover related capabilities.
|
|
182
|
+
|
|
183
|
+
### Can I treat missing fields as zero or infer complete coverage?
|
|
184
|
+
|
|
185
|
+
No. Preserve object identity, source, filters and sample scope. Mark missing values unknown; the returned sample does not represent uncollected records.
|
|
186
|
+
|
|
187
|
+
### Who writes the report and exports files?
|
|
188
|
+
|
|
189
|
+
Your client agent analyzes and writes; Markdown/CSV export requires its file tools. The MCP returns data and guides rather than generating a report. Discover missing capabilities with `search_openany_capabilities` or the general OpenAny MCP.
|
|
190
|
+
|
|
191
|
+
### What should I do after a timeout or uncertain result?
|
|
192
|
+
|
|
193
|
+
Preserve the original request ID and inspect its outcome before another call. A missing final response does not prove that it was uncharged; do not automatically replay an uncertain request.
|
|
194
|
+
|
|
195
|
+
## Error Handling & Retries
|
|
196
|
+
|
|
197
|
+
| Execution State | Typical Indicators | Billed? | Safe to Retry? |
|
|
198
|
+
| --- | --- | --- | --- |
|
|
199
|
+
| **Failed** | Input or credential rejection before dispatch | No | After correcting the input |
|
|
200
|
+
| **Succeeded** | Returned business data | According to the selected API's billing rule | Do not resubmit the same request |
|
|
201
|
+
| **Uncertain / Timeout** | Final result was not received | Unknown | Check the original request first |
|
|
202
|
+
|
|
203
|
+
## Scope, Data & Billing Notes
|
|
204
|
+
|
|
205
|
+
- **Execution & Billing:** Each call is inspected and executed separately. Empty results may incur a charge when the selected rule applies.
|
|
206
|
+
- **Sampling & Data Boundaries:** Recipe discovery and a supplied recipe ID use different catalogues. Preserve servings, measurement units, ingredients and source links; nutrition/allergen completeness is not guaranteed and no dietary or medical recommendation is made.
|
|
207
|
+
- **Reporting Standards:** Separate source data, observations, hypotheses and drafts. Mark unavailable facts as unknown.
|
|
208
|
+
- **Network & Privacy:** The server runs locally; catalog queries and business inputs are sent to OpenAny.
|
|
209
|
+
|
|
210
|
+
## Development
|
|
211
|
+
|
|
212
|
+
See [CONTRIBUTING.md](CONTRIBUTING.md) for setup, verification and guide maintenance.
|
|
213
|
+
|
|
214
|
+
## About OpenAny
|
|
215
|
+
|
|
216
|
+
[OpenAny](https://openany.si/) is a **B2A (Business-to-Agent) marketplace** for AI models, data and business APIs, tools/MCP servers and ready-to-call Runs. One OpenAny key provides pay-per-call access without a required monthly subscription.
|
|
217
|
+
|
|
218
|
+
Discover additional capabilities with `search_openany_capabilities` or connect the general [OpenAny MCP](https://mcp.openany.si/).
|
|
219
|
+
|
|
220
|
+
## License
|
|
221
|
+
|
|
222
|
+
[Apache-2.0](LICENSE)
|
package/bin/server.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { createServer } from '../src/server.js';
|
|
3
|
+
|
|
4
|
+
try {
|
|
5
|
+
const handle = await createServer({ stdio: true });
|
|
6
|
+
const shutdown = () => {
|
|
7
|
+
void handle.close().catch(() => {
|
|
8
|
+
process.stderr.write('MCP shutdown failed.\n');
|
|
9
|
+
process.exitCode = 1;
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
process.once('SIGINT', shutdown);
|
|
13
|
+
process.once('SIGTERM', shutdown);
|
|
14
|
+
handle.server.server.onclose = shutdown;
|
|
15
|
+
} catch {
|
|
16
|
+
process.stderr.write('MCP startup failed; check the package assets and supported Node.js version.\n');
|
|
17
|
+
process.exitCode = 1;
|
|
18
|
+
}
|