@openanysi/ip-network-intelligence-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.
@@ -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,226 @@
1
- # Temporary Holding Version
1
+ # ip-network-intelligence-mcp: IP and Network Intelligence MCP
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ MCP server to look up supplied public IP and ASN records and parse User-Agent strings for network research. Built for Claude, Cursor and other AI agents. Powered by [OpenAny](https://openany.si/).
4
+
5
+ [![npm version](https://img.shields.io/npm/v/@openanysi/ip-network-intelligence-mcp.svg)](https://www.npmjs.com/package/@openanysi/ip-network-intelligence-mcp)
6
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
7
+ [![Node.js](https://img.shields.io/badge/node-%3E%3D22-brightgreen.svg)](https://nodejs.org/)
8
+
9
+ English | [简体中文](docs/README.zh-CN.md)
10
+
11
+ ## Overview
12
+
13
+ Use this MCP to look up supplied public IP and ASN records and parse User-Agent strings for network research.
14
+
15
+ Designed for network analysts and technical-support teams, it supplies evidence your agent can turn into a network-context brief with source signals and identity limitations.
16
+
17
+ **Best For / Not For**
18
+
19
+ - **Best For:** Look up public IP to inspect the supplied IP's available context.
20
+ - **Best For:** Look up ASN to confirm an ASN instead of inferring an operator from location.
21
+ - **Best For:** Parse User-Agent to separate parsed declarations from verified device identity.
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 ip-network-intelligence-mcp?](#why-ip-network-intelligence-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
+ "ip-network-intelligence-mcp": {
58
+ "command": "npx",
59
+ "args": [
60
+ "-y",
61
+ "@openanysi/ip-network-intelligence-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 `lookup_ip` 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
+ - **Look up public IP:** use `lookup_ip` as an independent operation; inspect its inputs and available fields below.
81
+ - **Look up ASN:** use `lookup_asn` as an independent operation; inspect its inputs and available fields below.
82
+ - **Parse User-Agent:** use `parse_user_agent` as an independent operation; inspect its inputs and available fields below.
83
+ - **Comparable evidence:** retain Public IP / ASN; Query time; Network signal; mark missing fields unknown.
84
+ - **Inspect before collection:** read current parameters and pricing before each request; uncertain outcomes are not automatically replayed.
85
+ - **Bilingual task guidance:** collection and reporting guides support analysis and available local exports with your own client model.
86
+
87
+ ## Example Prompts
88
+
89
+ - "Research a supplied public IP, ASN and User-Agent context."
90
+ - "Look up my public IP and inspect the ASN actually returned for it before explaining network context."
91
+ - "Treat User-Agent parsing as a string description rather than device authentication."
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 ip-network-intelligence-mcp?
95
+
96
+ | What You Care About | How We Handle It | Value to You |
97
+ | --- | --- | --- |
98
+ | Look up public IP | Use `lookup_ip` with `ip` | Inspect the supplied IP's available context |
99
+ | Look up ASN | Use `lookup_asn` with `asn` | Confirm an ASN instead of inferring an operator from location |
100
+ | Parse User-Agent | Use `parse_user_agent` with `user_agent` | Separate parsed declarations from verified device identity |
101
+
102
+ ## What You Can Build & Deliver
103
+
104
+ | Use Case | How the Agent Runs It | Typical Deliverables |
105
+ | --- | --- | --- |
106
+ | Look up public IP | Choose `lookup_ip` with the identifiers and inputs required by its current contract. | Sourced evidence to help inspect the supplied IP's available context. |
107
+ | Look up ASN | Choose `lookup_asn` with the identifiers and inputs required by its current contract. | Sourced evidence to help confirm an ASN instead of inferring an operator from location. |
108
+ | IP and Network Intelligence brief | Align object identity, dates and units before interpreting collected records. | Sourced observations, unresolved differences and follow-up checks. |
109
+
110
+ ## Tools Reference
111
+
112
+ The server exposes **6 tools**: 3 data tools and 3 free keyless utilities. Each data tool maps to one request. The client decides subsequent calls and pages.
113
+
114
+ ### Data Tools
115
+
116
+ | Tool | Parameters | Behavior | Typical Returned Fields |
117
+ | --- | --- | --- | --- |
118
+ | `lookup_ip` | `ip` (string, required); `hostname` (boolean, optional) | Look up public IP | `ip`, `company`, `connection`, `location`, `security`; provider-dependent; optional fields may be absent. |
119
+ | `lookup_asn` | `asn` (string, required) | Look up ASN | `asn`, `name`, `domain`, `prefixes`, `registry`; provider-dependent; optional fields may be absent. |
120
+ | `parse_user_agent` | `user_agent` (string, required) | Parse User-Agent | `header`, `name`, `version`, `engine`, `os`, `device`; provider-dependent; optional fields may be absent. |
121
+
122
+ 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.
123
+
124
+ Supplied public IP, ASN and User-Agent queries are separate operations. Approximate network location is not a personal address. A parsed User-Agent describes a string, not a verified device. No scanning or account access is included.
125
+
126
+ `lookup_ip` requires a public `ip`; optional `hostname` requests reverse DNS. `lookup_asn` requires an `AS`-prefixed identifier. `parse_user_agent` requires the full supplied `user_agent` string.
127
+
128
+ ### Utility Tools (Free, No API Key Required)
129
+
130
+ | Tool | Parameters | Behavior |
131
+ | --- | --- | --- |
132
+ | `get_tool_info` | Required `tool_name` from the data-tool names above | Read current parameters, pricing and limits |
133
+ | `get_workflow` | Required `workflow`; optional `language` (`zh` or `en`, default `zh`) | Return a guide; use `language: "en"` for English |
134
+ | `search_openany_capabilities` | Required `query` (1-256 characters); optional `limit` (1-10, default 5) | Search related capabilities without executing them |
135
+
136
+ ## Built-in Workflow Guides
137
+
138
+ `get_workflow` returns instructions for your client without calling data tools or a model. Select `language: "en"` for English.
139
+
140
+ | Guide ID | Best For | What It Provides |
141
+ | --- | --- | --- |
142
+ | `research` | Planning ip and network intelligence | A tool/identifier checklist and a scoped collection method. |
143
+ | `evidence_brief` | Reporting from collected ip and network intelligence records | Source attribution, comparison context, missing information and follow-up questions. |
144
+
145
+ ### Companion Skill (Optional)
146
+
147
+ The [companion Skill](skills/ip-network-intelligence/SKILL.md) contains the same bilingual guides. Install it only if your client supports Skills; MCP guides work independently.
148
+
149
+ ## End-to-End Example
150
+
151
+ **Prompt:** "Look up my public IP and inspect the ASN actually returned for it before explaining network context."
152
+
153
+ **How the Agent Executes:**
154
+
155
+ 1. Load `research`, establish identifiers, scope and budget, and select the needed tools: `lookup_ip`, `lookup_asn`, `parse_user_agent`.
156
+ 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.
157
+ 3. Look up the supplied public IP, inspect a confirmed AS-prefixed ASN, and parse the full supplied User-Agent string independently. Separate approximate network location from personal identity.
158
+ 4. Retain evidence using these columns: Public IP / ASN | Query time | Network signal | Approximate location | User-Agent claim | Limitations. Mark absent fields unknown.
159
+ 5. Load `evidence_brief`, write evidence-linked findings and open questions, and export Markdown/CSV only when client file tools are available.
160
+
161
+ ## FAQ
162
+
163
+ ### Which inputs should I confirm before starting?
164
+
165
+ `lookup_ip` requires `ip`; `lookup_asn` requires `asn`; `parse_user_agent` requires `user_agent`. Choose the operation that matches the supplied query or known record; ask for missing identifiers rather than guessing from names.
166
+
167
+ ### How should I compare the returned records?
168
+
169
+ Align Public IP / ASN; Query time; Network signal before comparing. Keep supported observations separate from unavailable fields and list the specific follow-up evidence needed.
170
+
171
+ ### What are the domain-specific scope limits?
172
+
173
+ Supplied public IP, ASN and User-Agent queries are separate operations. Approximate network location is not a personal address. A parsed User-Agent describes a string, not a verified device. No scanning or account access is included.
174
+
175
+ ### How much does this MCP cost?
176
+
177
+ The Apache-2.0 package has no MCP subscription fee. Three utilities are free and keyless; 3 data tools follow current OpenAny pricing. Inspect `get_tool_info` before calling. Client model costs are separate.
178
+
179
+ ### Do I need a platform account or browser cookies?
180
+
181
+ 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.
182
+
183
+ ### Which clients work, and what can I try without a key?
184
+
185
+ 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.
186
+
187
+ ### Can I treat missing fields as zero or infer complete coverage?
188
+
189
+ No. Preserve object identity, source, filters and sample scope. Mark missing values unknown; the returned sample does not represent uncollected records.
190
+
191
+ ### Who writes the report and exports files?
192
+
193
+ 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.
194
+
195
+ ### What should I do after a timeout or uncertain result?
196
+
197
+ 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.
198
+
199
+ ## Error Handling & Retries
200
+
201
+ | Execution State | Typical Indicators | Billed? | Safe to Retry? |
202
+ | --- | --- | --- | --- |
203
+ | **Failed** | Input or credential rejection before dispatch | No | After correcting the input |
204
+ | **Succeeded** | Returned business data | According to the selected API's billing rule | Do not resubmit the same request |
205
+ | **Uncertain / Timeout** | Final result was not received | Unknown | Check the original request first |
206
+
207
+ ## Scope, Data & Billing Notes
208
+
209
+ - **Execution & Billing:** Each call is inspected and executed separately. Empty results may incur a charge when the selected rule applies.
210
+ - **Sampling & Data Boundaries:** Supplied public IP, ASN and User-Agent queries are separate operations. Approximate network location is not a personal address. A parsed User-Agent describes a string, not a verified device. No scanning or account access is included.
211
+ - **Reporting Standards:** Separate source data, observations, hypotheses and drafts. Mark unavailable facts as unknown.
212
+ - **Network & Privacy:** The server runs locally; catalog queries and business inputs are sent to OpenAny.
213
+
214
+ ## Development
215
+
216
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for setup, verification and guide maintenance.
217
+
218
+ ## About OpenAny
219
+
220
+ [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.
221
+
222
+ Discover additional capabilities with `search_openany_capabilities` or connect the general [OpenAny MCP](https://mcp.openany.si/).
223
+
224
+ ## License
225
+
226
+ [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
+ }
@@ -0,0 +1,228 @@
1
+ # ip-network-intelligence-mcp:IP 与网络背景调研 MCP
2
+
3
+ 通过 OpenAny 为 Claude、Cursor 等客户端提供 IP 与网络背景调研。本地 `stdio` 运行,客户端负责分析、写作与导出。
4
+
5
+ [![npm](https://img.shields.io/npm/v/@openanysi/ip-network-intelligence-mcp.svg)](https://www.npmjs.com/package/@openanysi/ip-network-intelligence-mcp)
6
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](../LICENSE)
7
+ [![Node.js](https://img.shields.io/badge/node-%3E%3D22-brightgreen.svg)](https://nodejs.org/)
8
+
9
+ [English](../README.md) | 简体中文
10
+
11
+ ## 概览
12
+
13
+ 本包面向网络分析与技术支持团队。研究范围包括查询公网 IP、查询 ASN、解析 User-Agent。
14
+
15
+ 可交付的成果包括:含来源信号与身份限制的网络背景简报。
16
+
17
+ **适合 / 不适合**
18
+
19
+ - **适合:**查询公网 IP,用于查看指定 IP 的可用背景。
20
+ - **适合:**查询 ASN,用于核对 ASN 而不从地区推断运营者。
21
+ - **适合:**解析 User-Agent,用于区分解析声明与已核实设备身份。
22
+ - **适合:**仅分析用户提供的已有材料,不为写报告新增采集。
23
+ - **不适合:**使用工具未开放的操作或筛选,或将样本当作完整覆盖;具体范围见 FAQ。
24
+
25
+ ## 目录
26
+
27
+ - [快速开始](#快速开始)
28
+ - [核心特性](#核心特性)
29
+ - [示例提示词](#示例提示词)
30
+ - [为什么选择本 MCP](#为什么选择本-mcp)
31
+ - [可以构建与交付什么](#可以构建与交付什么)
32
+ - [工具参考](#工具参考)
33
+ - [内置工作流指南](#内置工作流指南)
34
+ - [完整示例](#完整示例)
35
+ - [常见问题](#常见问题)
36
+ - [错误处理与重试](#错误处理与重试)
37
+ - [范围、数据与计费](#范围数据与计费)
38
+ - [开发](#开发)
39
+ - [关于 OpenAny](#关于-openany)
40
+ - [许可证](#许可证)
41
+
42
+ ## 快速开始
43
+
44
+ ### 前置条件
45
+
46
+ - Node.js 22+ 和支持本地 `stdio` MCP 的客户端。
47
+ - 数据调用需要 OpenAny Key:[API Keys](https://openany.si/dashboard/?page=api-keys)、[配置指南](https://openany.si/setup.md)、[用量和费用](https://openany.si/dashboard/?page=usage)。
48
+ - 三个辅助工具免 Key。
49
+
50
+ ### 配置客户端
51
+
52
+ 支持 `mcpServers` 的客户端可复制以下配置;其他宿主通过自身设置注册相同命令、参数和环境变量。
53
+
54
+ ```json
55
+ {
56
+ "mcpServers": {
57
+ "ip-network-intelligence-mcp": {
58
+ "command": "npx",
59
+ "args": [
60
+ "-y",
61
+ "@openanysi/ip-network-intelligence-mcp"
62
+ ],
63
+ "env": {
64
+ "OPENANY_API_KEY": "YOUR_OPENANY_API_KEY"
65
+ }
66
+ }
67
+ }
68
+ }
69
+ ```
70
+
71
+ 将 `OPENANY_API_KEY` 保存在私密客户端设置或继承环境中。仅试用辅助工具时可省略 `env`;不要将真实 Key 写入聊天或仓库。
72
+
73
+ ### 验证连接
74
+
75
+ - **无 Key:**通过 `get_tool_info` 查看工具参数和价格,再通过 `get_workflow` 加载 `research`;英文指南显式传 `language: "en"`。
76
+ - **有 Key:**先检查目标工具,再按问题采集一个受控样本,保留来源和缺失字段。
77
+
78
+ ## 核心特性
79
+
80
+ - **查询公网 IP:**通过 `lookup_ip` 独立读取;输入和可用字段见工具参考。
81
+ - **查询 ASN:**通过 `lookup_asn` 独立读取;输入和可用字段见工具参考。
82
+ - **解析 User-Agent:**通过 `parse_user_agent` 独立读取;输入和可用字段见工具参考。
83
+ - **保留比较口径:**记录公网 IP / ASN、查询时间、网络信号,缺失字段标未知。
84
+ - **一次一决策:**先查当前参数和费用,再决定每个请求;超时或未知状态不自动重放。
85
+ - **双语任务指南:**内置采集和简报指南;客户端使用自己的模型完成分析和可用的本地导出。
86
+
87
+ ## 示例提示词
88
+
89
+ - “研究指定公网 IP、ASN 和 User-Agent 背景。”
90
+ - “查询我提供的公网 IP,读取实际返回的 ASN 后再解释网络背景。”
91
+ - “将 User-Agent 解析当作字符串描述,而不是设备身份认证。”
92
+ - “只使用我提供的记录,不新增数据调用。按下方证据列整理表格,标记缺失字段并提出后续核对问题。”
93
+
94
+ ## 为什么选择本 MCP
95
+
96
+ | 关注点 | 处理方式 | 用户价值 |
97
+ | --- | --- | --- |
98
+ | 查询公网 IP | 使用 `lookup_ip`,按当前契约提供 `ip` | 查看指定 IP 的可用背景 |
99
+ | 查询 ASN | 使用 `lookup_asn`,按当前契约提供 `asn` | 核对 ASN 而不从地区推断运营者 |
100
+ | 解析 User-Agent | 使用 `parse_user_agent`,按当前契约提供 `user_agent` | 区分解析声明与已核实设备身份 |
101
+
102
+ ## 可以构建与交付什么
103
+
104
+ | 场景 | 客户端执行方式 | 交付物 |
105
+ | --- | --- | --- |
106
+ | 查询公网 IP | 选择 `lookup_ip`,按当前契约提供所需标识和输入。 | 用于查看指定 IP 的可用背景的来源证据表。 |
107
+ | 查询 ASN | 选择 `lookup_asn`,按当前契约提供所需标识和输入。 | 用于核对 ASN 而不从地区推断运营者的来源证据表。 |
108
+ | 领域比较简报 | 对齐已采集记录的对象、日期和单位,再解释差异。 | 有来源的观察、未解决差异和后续核查问题。 |
109
+
110
+ ## 工具参考
111
+
112
+ 共 **6 个工具**:3 个数据工具和 3 个免费辅助工具。每次数据工具调用对应一个请求,后续页面和调用由客户端控制。
113
+
114
+ ### 数据工具
115
+
116
+ 参数表保留英文名称及 required/optional 标记,便于与客户端 Schema 对照。
117
+
118
+ | 工具 | 参数 | 行为 | 返回数据概览 |
119
+ | --- | --- | --- | --- |
120
+ | `lookup_ip` | `ip` (string, required); `hostname` (boolean, optional) | 查询公网 IP | `ip`, `company`, `connection`, `location`, `security`;字段取决于接口,部分字段可能缺失。 |
121
+ | `lookup_asn` | `asn` (string, required) | 查询 ASN | `asn`, `name`, `domain`, `prefixes`, `registry`;字段取决于接口,部分字段可能缺失。 |
122
+ | `parse_user_agent` | `user_agent` (string, required) | 解析 User-Agent | `header`, `name`, `version`, `engine`, `os`, `device`;字段取决于接口,部分字段可能缺失。 |
123
+
124
+ 响应按原接口透传,未编造统一业务 Schema。提取字段或串联标识前先检查真实结果;可选字段可能缺失。只有参数表中存在的工具才接受输入游标。
125
+
126
+ 公网 IP、ASN 与 User-Agent 是独立查询。网络近似地区不是个人地址,User-Agent 解析描述字符串而非已验证设备;不扫描主机或访问账号。
127
+
128
+ `lookup_ip` 必填公网 ip,可选 hostname 请求反向 DNS。`lookup_asn` 需要带 AS 前缀的标识,`parse_user_agent` 需要完整 `user_agent` 字符串。
129
+
130
+ ### 免费辅助工具
131
+
132
+ | 工具 | 参数 | 行为 |
133
+ | --- | --- | --- |
134
+ | `get_tool_info` | 必填 `tool_name`,取数据工具名 | 查看参数、价格与限制 |
135
+ | `get_workflow` | 必填 `workflow`;可选 `language`,zh/en,默认 zh | 读取指南;英文传 `language: "en"` |
136
+ | `search_openany_capabilities` | 必填 `query`,1–256 字符;可选 `limit`,1–10,默认 5 | 查找候选能力,不执行 |
137
+
138
+ ## 内置工作流指南
139
+
140
+ `get_workflow` 返回供客户端使用的说明,本身不调用数据或模型;英文指南传 `language: "en"`。
141
+
142
+ | 指南 ID | 适用任务 | 内容 |
143
+ | --- | --- | --- |
144
+ | `research` | 选择本领域采集路径 | 核对可用工具、输入标识和采样边界。 |
145
+ | `evidence_brief` | 根据已有材料撰写简报 | 保留来源、比较口径、缺失信息与后续问题。 |
146
+
147
+ ### 可选 companion Skill
148
+
149
+ [领域 Skill](../skills/ip-network-intelligence/SKILL.md) 包含相同双语指南。仅在客户端支持 Skill 时安装;不安装仍可使用 MCP 指南。
150
+
151
+ ## 完整示例
152
+
153
+ **提示词:**“查询我提供的公网 IP,读取实际返回的 ASN 后再解释网络背景。”
154
+
155
+ **客户端执行方式:**
156
+
157
+ 1. 加载 `research`,明确对象、范围和预算,选择实际需要的工具:`lookup_ip`, `lookup_asn`, `parse_user_agent`。
158
+ 2. 通过 `get_tool_info` 核对当前 Schema 和价格。只有标识与必填字段齐全时才发起已获授权的调用;不要编造标识或自动追加页面。
159
+ 3. 查询指定公网 IP,读取已确认的 AS 前缀 ASN,并独立解析完整 User-Agent 字符串;区分近似网络位置与个人身份。
160
+ 4. 按以下列保留证据:公网 IP / ASN | 查询时间 | 网络信号 | 近似位置 | User-Agent 声明 | 局限。缺失字段标未知。
161
+ 5. 加载 `evidence_brief`,写出有证据支持的发现与后续问题;有文件工具时再导出 Markdown / CSV。
162
+
163
+ ## 常见问题
164
+
165
+ ### 开始前需要确认哪些输入?
166
+
167
+ `lookup_ip` 需要 `ip`;`lookup_asn` 需要 `asn`;`parse_user_agent` 需要 `user_agent`。先按工具表选择查询或已知记录读取;缺少标识时向用户补充,不按相似名称猜测。
168
+
169
+ ### 如何比较本领域的记录?
170
+
171
+ 比较前对齐公网 IP / ASN、查询时间、网络信号。将可比观察与未知字段分别记录,所需证据不足时明确列出后续核查项。
172
+
173
+ ### 有哪些领域范围限制?
174
+
175
+ 公网 IP、ASN 与 User-Agent 是独立查询。网络近似地区不是个人地址,User-Agent 解析描述字符串而非已验证设备;不扫描主机或访问账号。
176
+
177
+ ### 使用费用是多少?
178
+
179
+ Apache-2.0 软件包没有 MCP 订阅费。3 个辅助工具免费免 Key;3 个数据工具按 OpenAny 当前价格计费,调用前通过 `get_tool_info` 查看。客户端模型费用另计。
180
+
181
+ ### 需要目标平台账号或 Cookie 吗?
182
+
183
+ 本包的数据调用使用 `OPENANY_API_KEY`,不要求在 MCP 配置中保存个人平台账号或浏览器 Cookie。它不能借此访问未提供的私密账号数据。
184
+
185
+ ### 支持哪些客户端,无 Key 能做什么?
186
+
187
+ 支持标准本地 `stdio` MCP。配置 JSON 适用于采用 `mcpServers` 的宿主;其他客户端注册相同命令。无 Key 时可查看工具信息、读取指南和发现相关能力。
188
+
189
+ ### 可以把缺失字段当作零,或推断全量结果吗?
190
+
191
+ 不能。保留对象、来源、筛选和采样范围;缺失值标未知,结果不代表未采集到的记录。
192
+
193
+ ### 谁负责报告与文件导出?
194
+
195
+ 客户端 Agent 负责分析和写作,导出 Markdown / CSV 需要其文件工具。MCP 返回数据和指南,不直接生成报告。包外能力可通过 `search_openany_capabilities` 或 OpenAny 通用 MCP 查找。
196
+
197
+ ### 超时或执行状态不明怎么办?
198
+
199
+ 保留原请求 ID,先核查结果再决定后续调用;未收到最终结果不代表未收费,不自动重放未知请求。
200
+
201
+ ## 错误处理与重试
202
+
203
+ | 执行状态 | 常见情况 | 收费情况 | 是否可重试 |
204
+ | --- | --- | --- | --- |
205
+ | 失败 | 发送前参数或凭据被拒绝 | 不收费 | 修正输入后再决定 |
206
+ | 成功 | 返回业务数据 | 按接口计费规则 | 不要重复提交同一请求 |
207
+ | 不确定 / 超时 | 未收到最终结果 | 未知 | 先核对原请求 |
208
+
209
+ ## 范围、数据与计费
210
+
211
+ - **执行和计费:**逐次检查并执行;空结果也可能按所选规则收费。
212
+ - **采样边界:**公网 IP、ASN 与 User-Agent 是独立查询。网络近似地区不是个人地址,User-Agent 解析描述字符串而非已验证设备;不扫描主机或访问账号。
213
+ - **报告规范:**区分原始数据、观察、假设与草稿;缺失事实标未知。
214
+ - **网络和隐私:**服务在本地运行,目录查询和业务输入会发送到 OpenAny。
215
+
216
+ ## 开发
217
+
218
+ 见英文 [CONTRIBUTING.md](../CONTRIBUTING.md),包含安装、验证及指南维护说明。
219
+
220
+ ## 关于 OpenAny
221
+
222
+ [OpenAny](https://openany.si/) 是 B2A(Business-to-Agent)市场,提供 AI 模型、数据和业务 API、MCP 工具以及 ready-to-call Runs。一枚 Key 按调用付费,无需强制月费订阅。
223
+
224
+ 使用 `search_openany_capabilities` 或连接 [OpenAny 通用 MCP](https://mcp.openany.si/) 扩展能力。
225
+
226
+ ## 许可证
227
+
228
+ [Apache-2.0](../LICENSE)
package/package.json CHANGED
@@ -1,6 +1,63 @@
1
1
  {
2
2
  "name": "@openanysi/ip-network-intelligence-mcp",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "Look up supplied public IP and ASN records and parse User-Agent strings for network research. Bilingual MCP guides for network analysts and technical-support teams; your client analyzes the returned evidence. Powered by OpenAny.",
5
+ "type": "module",
6
+ "engines": {
7
+ "node": ">=22"
8
+ },
9
+ "license": "Apache-2.0",
10
+ "bin": {
11
+ "ip-network-intelligence-mcp": "./bin/server.js"
12
+ },
13
+ "files": [
14
+ "bin",
15
+ "src",
16
+ "vertical.config.json",
17
+ "workflows",
18
+ "README.md",
19
+ "docs/README.zh-CN.md",
20
+ "CONTRIBUTING.md",
21
+ "LICENSE",
22
+ "skills"
23
+ ],
24
+ "scripts": {
25
+ "test": "node --test test/*.test.mjs",
26
+ "check": "node scripts/check.mjs && node scripts/sync-skill.mjs --check",
27
+ "smoke:package": "node scripts/smoke-package.mjs",
28
+ "sync:skill": "node scripts/sync-skill.mjs"
29
+ },
30
+ "keywords": [
31
+ "mcp",
32
+ "mcp-server",
33
+ "model-context-protocol",
34
+ "openany",
35
+ "ai-agents",
36
+ "ip-intelligence",
37
+ "asn",
38
+ "network-research",
39
+ "user-agent",
40
+ "ip-geolocation",
41
+ "claude",
42
+ "cursor",
43
+ "asn-lookup",
44
+ "user-agent-parser"
45
+ ],
46
+ "repository": {
47
+ "type": "git",
48
+ "url": "git+https://github.com/siopenany/just-mcps.git",
49
+ "directory": "packages/ip-network-intelligence-mcp"
50
+ },
51
+ "homepage": "https://github.com/siopenany/just-mcps/tree/main/packages/ip-network-intelligence-mcp#readme",
52
+ "bugs": {
53
+ "url": "https://github.com/siopenany/just-mcps/issues"
54
+ },
55
+ "dependencies": {
56
+ "@openanysi/openany-core": "0.1.2"
57
+ },
58
+ "devDependencies": {
59
+ "@modelcontextprotocol/client": "2.4.0"
60
+ },
61
+ "readme": "# ip-network-intelligence-mcp: IP and Network Intelligence MCP\n\nMCP server to look up supplied public IP and ASN records and parse User-Agent strings for network research. Built for Claude, Cursor and other AI agents. Powered by [OpenAny](https://openany.si/).\n\n[![npm version](https://img.shields.io/npm/v/@openanysi/ip-network-intelligence-mcp.svg)](https://www.npmjs.com/package/@openanysi/ip-network-intelligence-mcp)\n[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)\n[![Node.js](https://img.shields.io/badge/node-%3E%3D22-brightgreen.svg)](https://nodejs.org/)\n\nEnglish | [简体中文](docs/README.zh-CN.md)\n\n## Overview\n\nUse this MCP to look up supplied public IP and ASN records and parse User-Agent strings for network research.\n\nDesigned for network analysts and technical-support teams, it supplies evidence your agent can turn into a network-context brief with source signals and identity limitations.\n\n**Best For / Not For**\n\n- **Best For:** Look up public IP to inspect the supplied IP's available context.\n- **Best For:** Look up ASN to confirm an ASN instead of inferring an operator from location.\n- **Best For:** Parse User-Agent to separate parsed declarations from verified device identity.\n- **Best For:** analyzing supplied material without collecting again merely to write a report.\n- **Not For:** operations or filters absent from Tools Reference, or treating samples as complete coverage; see the scope FAQ.\n\n## Table of Contents\n\n- [Quick Start](#quick-start)\n- [Key Features](#key-features)\n- [Example Prompts](#example-prompts)\n- [Why ip-network-intelligence-mcp?](#why-ip-network-intelligence-mcp)\n- [What You Can Build & Deliver](#what-you-can-build--deliver)\n- [Tools Reference](#tools-reference)\n- [Built-in Workflow Guides](#built-in-workflow-guides)\n- [End-to-End Example](#end-to-end-example)\n- [FAQ](#faq)\n- [Error Handling & Retries](#error-handling--retries)\n- [Scope, Data & Billing Notes](#scope-data--billing-notes)\n- [Development](#development)\n- [About OpenAny](#about-openany)\n- [License](#license)\n\n## Quick Start\n\n### Prerequisites\n\n- Node.js 22+ and a client supporting local `stdio` MCP servers.\n- 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).\n- Utility tools work without a key.\n\n### Configure Your Client\n\nFor clients using `mcpServers`, add this to private settings. Other hosts register the same command, arguments and environment through their MCP settings or CLI.\n\n```json\n{\n \"mcpServers\": {\n \"ip-network-intelligence-mcp\": {\n \"command\": \"npx\",\n \"args\": [\n \"-y\",\n \"@openanysi/ip-network-intelligence-mcp\"\n ],\n \"env\": {\n \"OPENANY_API_KEY\": \"YOUR_OPENANY_API_KEY\"\n }\n }\n }\n}\n```\n\nStore `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.\n\n### Verify It Works\n\n- **Without an API key:** Inspect `lookup_ip` with `get_tool_info`, then load `get_workflow` with `workflow: \"research\", language: \"en\"`. Explain inputs and pricing without fetching data.\n- **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.\n\n## Key Features\n\n- **Look up public IP:** use `lookup_ip` as an independent operation; inspect its inputs and available fields below.\n- **Look up ASN:** use `lookup_asn` as an independent operation; inspect its inputs and available fields below.\n- **Parse User-Agent:** use `parse_user_agent` as an independent operation; inspect its inputs and available fields below.\n- **Comparable evidence:** retain Public IP / ASN; Query time; Network signal; mark missing fields unknown.\n- **Inspect before collection:** read current parameters and pricing before each request; uncertain outcomes are not automatically replayed.\n- **Bilingual task guidance:** collection and reporting guides support analysis and available local exports with your own client model.\n\n## Example Prompts\n\n- \"Research a supplied public IP, ASN and User-Agent context.\"\n- \"Look up my public IP and inspect the ASN actually returned for it before explaining network context.\"\n- \"Treat User-Agent parsing as a string description rather than device authentication.\"\n- \"Use only the records I provide. Make no new data calls. Organize the evidence columns below, mark missing fields and list follow-up questions.\"\n\n## Why ip-network-intelligence-mcp?\n\n| What You Care About | How We Handle It | Value to You |\n| --- | --- | --- |\n| Look up public IP | Use `lookup_ip` with `ip` | Inspect the supplied IP's available context |\n| Look up ASN | Use `lookup_asn` with `asn` | Confirm an ASN instead of inferring an operator from location |\n| Parse User-Agent | Use `parse_user_agent` with `user_agent` | Separate parsed declarations from verified device identity |\n\n## What You Can Build & Deliver\n\n| Use Case | How the Agent Runs It | Typical Deliverables |\n| --- | --- | --- |\n| Look up public IP | Choose `lookup_ip` with the identifiers and inputs required by its current contract. | Sourced evidence to help inspect the supplied IP's available context. |\n| Look up ASN | Choose `lookup_asn` with the identifiers and inputs required by its current contract. | Sourced evidence to help confirm an ASN instead of inferring an operator from location. |\n| IP and Network Intelligence brief | Align object identity, dates and units before interpreting collected records. | Sourced observations, unresolved differences and follow-up checks. |\n\n## Tools Reference\n\nThe server exposes **6 tools**: 3 data tools and 3 free keyless utilities. Each data tool maps to one request. The client decides subsequent calls and pages.\n\n### Data Tools\n\n| Tool | Parameters | Behavior | Typical Returned Fields |\n| --- | --- | --- | --- |\n| `lookup_ip` | `ip` (string, required); `hostname` (boolean, optional) | Look up public IP | `ip`, `company`, `connection`, `location`, `security`; provider-dependent; optional fields may be absent. |\n| `lookup_asn` | `asn` (string, required) | Look up ASN | `asn`, `name`, `domain`, `prefixes`, `registry`; provider-dependent; optional fields may be absent. |\n| `parse_user_agent` | `user_agent` (string, required) | Parse User-Agent | `header`, `name`, `version`, `engine`, `os`, `device`; provider-dependent; optional fields may be absent. |\n\nResponses 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.\n\nSupplied public IP, ASN and User-Agent queries are separate operations. Approximate network location is not a personal address. A parsed User-Agent describes a string, not a verified device. No scanning or account access is included.\n\n`lookup_ip` requires a public `ip`; optional `hostname` requests reverse DNS. `lookup_asn` requires an `AS`-prefixed identifier. `parse_user_agent` requires the full supplied `user_agent` string.\n\n### Utility Tools (Free, No API Key Required)\n\n| Tool | Parameters | Behavior |\n| --- | --- | --- |\n| `get_tool_info` | Required `tool_name` from the data-tool names above | Read current parameters, pricing and limits |\n| `get_workflow` | Required `workflow`; optional `language` (`zh` or `en`, default `zh`) | Return a guide; use `language: \"en\"` for English |\n| `search_openany_capabilities` | Required `query` (1-256 characters); optional `limit` (1-10, default 5) | Search related capabilities without executing them |\n\n## Built-in Workflow Guides\n\n`get_workflow` returns instructions for your client without calling data tools or a model. Select `language: \"en\"` for English.\n\n| Guide ID | Best For | What It Provides |\n| --- | --- | --- |\n| `research` | Planning ip and network intelligence | A tool/identifier checklist and a scoped collection method. |\n| `evidence_brief` | Reporting from collected ip and network intelligence records | Source attribution, comparison context, missing information and follow-up questions. |\n\n### Companion Skill (Optional)\n\nThe [companion Skill](skills/ip-network-intelligence/SKILL.md) contains the same bilingual guides. Install it only if your client supports Skills; MCP guides work independently.\n\n## End-to-End Example\n\n**Prompt:** \"Look up my public IP and inspect the ASN actually returned for it before explaining network context.\"\n\n**How the Agent Executes:**\n\n1. Load `research`, establish identifiers, scope and budget, and select the needed tools: `lookup_ip`, `lookup_asn`, `parse_user_agent`.\n2. 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.\n3. Look up the supplied public IP, inspect a confirmed AS-prefixed ASN, and parse the full supplied User-Agent string independently. Separate approximate network location from personal identity.\n4. Retain evidence using these columns: Public IP / ASN | Query time | Network signal | Approximate location | User-Agent claim | Limitations. Mark absent fields unknown.\n5. Load `evidence_brief`, write evidence-linked findings and open questions, and export Markdown/CSV only when client file tools are available.\n\n## FAQ\n\n### Which inputs should I confirm before starting?\n\n`lookup_ip` requires `ip`; `lookup_asn` requires `asn`; `parse_user_agent` requires `user_agent`. Choose the operation that matches the supplied query or known record; ask for missing identifiers rather than guessing from names.\n\n### How should I compare the returned records?\n\nAlign Public IP / ASN; Query time; Network signal before comparing. Keep supported observations separate from unavailable fields and list the specific follow-up evidence needed.\n\n### What are the domain-specific scope limits?\n\nSupplied public IP, ASN and User-Agent queries are separate operations. Approximate network location is not a personal address. A parsed User-Agent describes a string, not a verified device. No scanning or account access is included.\n\n### How much does this MCP cost?\n\nThe Apache-2.0 package has no MCP subscription fee. Three utilities are free and keyless; 3 data tools follow current OpenAny pricing. Inspect `get_tool_info` before calling. Client model costs are separate.\n\n### Do I need a platform account or browser cookies?\n\nData 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.\n\n### Which clients work, and what can I try without a key?\n\nUse 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.\n\n### Can I treat missing fields as zero or infer complete coverage?\n\nNo. Preserve object identity, source, filters and sample scope. Mark missing values unknown; the returned sample does not represent uncollected records.\n\n### Who writes the report and exports files?\n\nYour 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.\n\n### What should I do after a timeout or uncertain result?\n\nPreserve 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.\n\n## Error Handling & Retries\n\n| Execution State | Typical Indicators | Billed? | Safe to Retry? |\n| --- | --- | --- | --- |\n| **Failed** | Input or credential rejection before dispatch | No | After correcting the input |\n| **Succeeded** | Returned business data | According to the selected API's billing rule | Do not resubmit the same request |\n| **Uncertain / Timeout** | Final result was not received | Unknown | Check the original request first |\n\n## Scope, Data & Billing Notes\n\n- **Execution & Billing:** Each call is inspected and executed separately. Empty results may incur a charge when the selected rule applies.\n- **Sampling & Data Boundaries:** Supplied public IP, ASN and User-Agent queries are separate operations. Approximate network location is not a personal address. A parsed User-Agent describes a string, not a verified device. No scanning or account access is included.\n- **Reporting Standards:** Separate source data, observations, hypotheses and drafts. Mark unavailable facts as unknown.\n- **Network & Privacy:** The server runs locally; catalog queries and business inputs are sent to OpenAny.\n\n## Development\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for setup, verification and guide maintenance.\n\n## About OpenAny\n\n[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.\n\nDiscover additional capabilities with `search_openany_capabilities` or connect the general [OpenAny MCP](https://mcp.openany.si/).\n\n## License\n\n[Apache-2.0](LICENSE)\n",
62
+ "readmeFilename": "README.md"
63
+ }
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: ip-network-intelligence
3
+ description: "Look up supplied public IP and ASN records and parse User-Agent strings for network research. Use with this MCP for sourced research and evidence briefs; it does not build servers or perform account operations."
4
+ ---
5
+
6
+ # Ip Network Intelligence
7
+
8
+ Use the installed `@openanysi/ip-network-intelligence-mcp` MCP for this task. This Skill supplies client-side research instructions; it does not install or start the server.
9
+
10
+ ## Choose a guide
11
+
12
+ - Read [common rules](references/common.en.md) before collecting data, or [中文规则](references/common.zh.md).
13
+ - For question framing, tool selection, identifiers and sample collection, read [research](references/research.en.md) or [中文调研指南](references/research.zh.md).
14
+ - For a report based on existing outputs, read [evidence brief](references/evidence-brief.en.md) or [中文简报指南](references/evidence-brief.zh.md). No new data calls are required merely to write a report.
15
+
16
+ The same guides are available through `get_workflow` with `workflow: "research"` or `workflow: "evidence_brief"`; use `language: "en"` for English.
17
+
18
+ ## Available data tools
19
+
20
+ - `lookup_ip`: Look up public IP.
21
+ - `lookup_asn`: Look up ASN.
22
+ - `parse_user_agent`: Parse User-Agent.
23
+
24
+ Inspect `get_tool_info` before each chosen call and follow its actual input schema. Do not invent filters, fields, IDs, cursors or account access. Client-side analysis and supported CSV/Markdown exports use the client's own model and file tools.
25
+
26
+ ## Boundaries
27
+
28
+ Keep source links, dates, sample counts and missing values. Separate observations, hypotheses and drafts. Do not infer sales, demand, demographics, safety or financial outcomes from unrelated fields. Stop after uncertain execution or billing and preserve the request ID. Use `search_openany_capabilities` or https://mcp.openany.si/ for capabilities outside this package.
@@ -0,0 +1,3 @@
1
+ # Research rules
2
+
3
+ Inspect get_tool_info before every data tool. Stay within the user's budget. Each tool performs one request; the client chooses subsequent pages. Keep original links, identifiers, collection time, sample size and missing fields. Separate source data, observations, hypotheses and drafts. An empty page is not evidence of zero demand. Stop after an uncertain request; preserve its request ID and inspect the original outcome before another call. Use https://mcp.openany.si/ for unmet capabilities.
@@ -0,0 +1,3 @@
1
+ # 调研规则
2
+
3
+ 每个数据工具调用前先检查 get_tool_info 并遵守用户预算。每个工具只执行一次请求,分页和下一步由客户端决定。保留原始链接、标识、采集时间、样本量和缺失字段,区分来源数据、观察、假设与草稿。空页面不代表没有需求。执行或收费不明时停止,保留请求 ID 并先核对原请求。缺少能力时引导至 https://mcp.openany.si/。
@@ -0,0 +1,19 @@
1
+ # IP and Network Intelligence: evidence brief
2
+
3
+ Write from existing outputs of `lookup_ip`, `lookup_asn`, `parse_user_agent` or supplied material. Do not collect again merely to write.
4
+
5
+ ## Research scope
6
+
7
+ Look up supplied public IP and ASN records and parse User-Agent strings for network research. State the user's question, the checks actually performed and the remaining coverage gaps.
8
+
9
+ ## Contents
10
+
11
+ 1. Identify the question, objects, sources and collection dates.
12
+ 2. Organize records using these evidence columns: Public IP / ASN | Query time | Network signal | Approximate location | User-Agent claim | Limitations.
13
+ 3. Align identities and comparison context before linking observations to sources.
14
+ 4. Separate hypotheses, counterexamples, missing fields and the specific follow-up evidence needed.
15
+ 5. Use the client's model for original writing; export Markdown/CSV only with its file tools.
16
+
17
+ ## Domain scope
18
+
19
+ Supplied public IP, ASN and User-Agent queries are separate operations. Approximate network location is not a personal address. A parsed User-Agent describes a string, not a verified device. No scanning or account access is included.
@@ -0,0 +1,19 @@
1
+ # ip-network-intelligence-mcp:证据简报
2
+
3
+ 根据 `lookup_ip`, `lookup_asn`, `parse_user_agent` 的已有结果或用户提供材料撰写,不为写简报新增取数。
4
+
5
+ ## 研究范围
6
+
7
+ 研究范围包括查询公网 IP、查询 ASN、解析 User-Agent。说明用户本次要解决的问题、实际执行的检查和未覆盖项。
8
+
9
+ ## 内容
10
+
11
+ 1. 标明问题、记录对象、来源和采集日期。
12
+ 2. 按以下证据列整理记录:公网 IP / ASN | 查询时间 | 网络信号 | 近似位置 | User-Agent 声明 | 局限。
13
+ 3. 对齐对象和比较口径后撰写观察,并逐项关联到来源。
14
+ 4. 分别列出假设、反例、缺失字段及需要补充核查的信息。
15
+ 5. 使用客户端模型完成原创写作;有文件工具时再导出 Markdown / CSV。
16
+
17
+ ## 领域范围
18
+
19
+ 公网 IP、ASN 与 User-Agent 是独立查询。网络近似地区不是个人地址,User-Agent 解析描述字符串而非已验证设备;不扫描主机或访问账号。
@@ -0,0 +1,30 @@
1
+ # IP and Network Intelligence: research guide
2
+
3
+ ## Task
4
+
5
+ Look up supplied public IP and ASN records and parse User-Agent strings for network research. Select the tools and scope needed for the user's actual question.
6
+
7
+ ## Method
8
+
9
+ Look up the supplied public IP, inspect a confirmed AS-prefixed ASN, and parse the full supplied User-Agent string independently. Separate approximate network location from personal identity.
10
+
11
+ 1. Establish identifiers, comparison context, sample scope and budget. Available tools: `lookup_ip`, `lookup_asn`, `parse_user_agent`; not every question needs all of them.
12
+ 2. Use `get_tool_info` for current parameters, nested inputs and prices. Choose follow-up steps from actual records or user-confirmed identifiers.
13
+ 3. Execute only needed, authorized requests. Continue with an original-query cursor only when that tool accepts it.
14
+ 4. Check object identity, units and timing; retain source records, unknown fields and analysis separately.
15
+
16
+ ## Evidence columns
17
+
18
+ Public IP / ASN | Query time | Network signal | Approximate location | User-Agent claim | Limitations
19
+
20
+ ## Deliverable
21
+
22
+ Your agent can prepare a network-context brief with source signals and identity limitations.
23
+
24
+ ## Stop conditions
25
+
26
+ Stop on missing required inputs, mismatched identity, unaffordable cost or uncertain execution/billing. Preserve the original request ID rather than replaying an empty or uncertain result.
27
+
28
+ ## Domain scope
29
+
30
+ Supplied public IP, ASN and User-Agent queries are separate operations. Approximate network location is not a personal address. A parsed User-Agent describes a string, not a verified device. No scanning or account access is included.
@@ -0,0 +1,30 @@
1
+ # ip-network-intelligence-mcp:领域调研
2
+
3
+ ## 任务
4
+
5
+ 研究范围包括查询公网 IP、查询 ASN、解析 User-Agent。根据用户实际问题选择需要的工具和范围。
6
+
7
+ ## 方法
8
+
9
+ 查询指定公网 IP,读取已确认的 AS 前缀 ASN,并独立解析完整 User-Agent 字符串;区分近似网络位置与个人身份。
10
+
11
+ 1. 先明确对象标识、比较口径、采样范围与预算,可选工具为 `lookup_ip`, `lookup_asn`, `parse_user_agent`,不要求每次全部调用。
12
+ 2. 使用 `get_tool_info` 查看当前参数、嵌套输入和价格;按真实结果或用户确认的标识选择后续步骤。
13
+ 3. 仅执行本任务需要且已获授权的请求;只有对应工具接受游标时才沿原查询的真实游标继续。
14
+ 4. 核对对象、单位和时间背景,将来源记录、未知字段与分析分别保留。
15
+
16
+ ## 证据列
17
+
18
+ 公网 IP / ASN | 查询时间 | 网络信号 | 近似位置 | User-Agent 声明 | 局限
19
+
20
+ ## 交付
21
+
22
+ 可交付的成果包括:含来源信号与身份限制的网络背景简报。
23
+
24
+ ## 停止条件
25
+
26
+ 缺少必填输入、对象不匹配、费用超出预算,或执行/收费状态不明时停止;保留原请求标识,不重试来掩盖空结果。
27
+
28
+ ## 领域范围
29
+
30
+ 公网 IP、ASN 与 User-Agent 是独立查询。网络近似地区不是个人地址,User-Agent 解析描述字符串而非已验证设备;不扫描主机或访问账号。
package/src/config.js ADDED
@@ -0,0 +1,37 @@
1
+ import { readFile } from 'node:fs/promises';
2
+
3
+ export async function loadDefinition(root = new URL('../', import.meta.url)) {
4
+ const read = async path => {
5
+ const text = await readFile(new URL(path, root), 'utf8');
6
+ if (!text.trim()) throw new Error(`Empty bundled asset: ${path}`);
7
+ return text;
8
+ };
9
+ const manifest = JSON.parse(await read('package.json'));
10
+ const config = JSON.parse(await read('vertical.config.json'));
11
+ if (config.packageName !== manifest.name || !manifest.version || !config.instructions?.trim() ||
12
+ !Array.isArray(config.bindings) || !config.bindings.length ||
13
+ new Set(config.bindings.map(x => x.name)).size !== config.bindings.length ||
14
+ !Array.isArray(config.workflows) || !config.workflows.length) throw new Error('Invalid bundled configuration.');
15
+ const commonRules = {};
16
+ for (const language of ['zh', 'en']) {
17
+ const path = `workflows/common.${language}.md`;
18
+ if (config.commonRules?.[language] !== path) throw new Error('Invalid common guide path.');
19
+ commonRules[language] = await read(path);
20
+ }
21
+ const ids = new Set(), filenames = new Set(['common']), workflows = [];
22
+ for (const item of config.workflows) {
23
+ const filename = String(item.id).replaceAll('_', '-');
24
+ if (!/^[a-z][a-z0-9_-]{0,63}$/.test(item.id) || filenames.has(filename) || ids.has(item.id) || !item.version) throw new Error('Invalid workflow.');
25
+ ids.add(item.id);
26
+ filenames.add(filename);
27
+ const instructions = {};
28
+ for (const language of ['zh', 'en']) {
29
+ const path = `workflows/${filename}.${language}.md`;
30
+ if (item.files?.[language] !== path) throw new Error('Invalid workflow path.');
31
+ instructions[language] = await read(path);
32
+ }
33
+ workflows.push({ id: item.id, version: item.version, instructions });
34
+ }
35
+ return { bindings: config.bindings, workflows, commonRules, instructions: config.instructions,
36
+ serverInfo: { name: manifest.name, version: manifest.version } };
37
+ }
package/src/server.js ADDED
@@ -0,0 +1,18 @@
1
+ import { createClient } from '@openanysi/openany-core';
2
+ import { createMcpServer, startStdioServer } from '@openanysi/openany-core/mcp';
3
+ import { loadDefinition } from './config.js';
4
+
5
+ export async function createServer({ clientOptions = {}, stdio = false } = {}) {
6
+ const { bindings, serverInfo, instructions, workflows, commonRules } = await loadDefinition();
7
+ const client = createClient({ ...clientOptions, bindings });
8
+ let server;
9
+ try {
10
+ const options = { ...serverInfo, instructions, workflows, commonRules };
11
+ server = stdio ? await startStdioServer(client, options) : createMcpServer(client, options);
12
+ } catch (error) { await client.close(); throw error; }
13
+ let closing;
14
+ const close = () => closing ??= Promise.resolve().then(async () => {
15
+ try { await server.close(); } finally { await client.close(); }
16
+ });
17
+ return { client, server, close };
18
+ }
@@ -0,0 +1,106 @@
1
+ {
2
+ "packageName": "@openanysi/ip-network-intelligence-mcp",
3
+ "instructions": "IP and Network Intelligence provides atomic read-only data tools. Inspect get_tool_info before data calls. Use get_workflow for research and evidence_brief instructions; the client handles pagination, analysis, original writing and local export. Preserve sources and missing fields. For unavailable or empty capabilities, offer https://mcp.openany.si/. Never replay an uncertain request automatically.",
4
+ "bindings": [
5
+ {
6
+ "name": "lookup_ip",
7
+ "api": "ipregistry_get_ip_ip",
8
+ "title": "Look up public IP",
9
+ "description": "Look up the supplied public IPv4 or IPv6 address for network, approximate location and available security context. This does not identify a person or scan a host.",
10
+ "readOnly": true,
11
+ "inputSchema": {
12
+ "type": "object",
13
+ "additionalProperties": false,
14
+ "properties": {
15
+ "ip": {
16
+ "description": "Public IPv4 or IPv6 address to look up, for example 8.8.8.8. Do not supply an ASN or a comma-separated batch.",
17
+ "type": "string",
18
+ "minLength": 1
19
+ },
20
+ "hostname": {
21
+ "description": "Resolve the reverse DNS hostname when true. Omit to retain the native default; enabling it may increase latency.",
22
+ "type": "boolean"
23
+ }
24
+ },
25
+ "required": [
26
+ "ip"
27
+ ]
28
+ },
29
+ "inputMapping": {
30
+ "ip": "ip",
31
+ "hostname": "hostname"
32
+ }
33
+ },
34
+ {
35
+ "name": "lookup_asn",
36
+ "api": "ipregistry_get_asn_asn",
37
+ "title": "Look up ASN",
38
+ "description": "Look up a complete public ASN including its AS prefix, for network identity and available prefix context.",
39
+ "readOnly": true,
40
+ "inputSchema": {
41
+ "type": "object",
42
+ "additionalProperties": false,
43
+ "properties": {
44
+ "asn": {
45
+ "description": "Complete public ASN including the AS prefix, for example AS15169. Pass the entire identifier as one path segment.",
46
+ "type": "string",
47
+ "minLength": 1,
48
+ "pattern": "^AS[0-9]+$"
49
+ }
50
+ },
51
+ "required": [
52
+ "asn"
53
+ ]
54
+ },
55
+ "inputMapping": {
56
+ "asn": "asn"
57
+ }
58
+ },
59
+ {
60
+ "name": "parse_user_agent",
61
+ "api": "ipregistry_get_user_agent_parse",
62
+ "title": "Parse User-Agent",
63
+ "description": "Parse the supplied User-Agent string into available browser, operating-system and device metadata. This describes the string rather than verifying a physical device.",
64
+ "readOnly": true,
65
+ "inputSchema": {
66
+ "type": "object",
67
+ "additionalProperties": false,
68
+ "properties": {
69
+ "user_agent": {
70
+ "description": "Complete User-Agent string to parse. Required in this OpenAny profile so the result describes the supplied string.",
71
+ "type": "string",
72
+ "minLength": 1
73
+ }
74
+ },
75
+ "required": [
76
+ "user_agent"
77
+ ]
78
+ },
79
+ "inputMapping": {
80
+ "user_agent": "ua"
81
+ }
82
+ }
83
+ ],
84
+ "commonRules": {
85
+ "zh": "workflows/common.zh.md",
86
+ "en": "workflows/common.en.md"
87
+ },
88
+ "workflows": [
89
+ {
90
+ "id": "research",
91
+ "version": "0.1.1",
92
+ "files": {
93
+ "zh": "workflows/research.zh.md",
94
+ "en": "workflows/research.en.md"
95
+ }
96
+ },
97
+ {
98
+ "id": "evidence_brief",
99
+ "version": "0.1.1",
100
+ "files": {
101
+ "zh": "workflows/evidence-brief.zh.md",
102
+ "en": "workflows/evidence-brief.en.md"
103
+ }
104
+ }
105
+ ]
106
+ }
@@ -0,0 +1,3 @@
1
+ # Research rules
2
+
3
+ Inspect get_tool_info before every data tool. Stay within the user's budget. Each tool performs one request; the client chooses subsequent pages. Keep original links, identifiers, collection time, sample size and missing fields. Separate source data, observations, hypotheses and drafts. An empty page is not evidence of zero demand. Stop after an uncertain request; preserve its request ID and inspect the original outcome before another call. Use https://mcp.openany.si/ for unmet capabilities.
@@ -0,0 +1,3 @@
1
+ # 调研规则
2
+
3
+ 每个数据工具调用前先检查 get_tool_info 并遵守用户预算。每个工具只执行一次请求,分页和下一步由客户端决定。保留原始链接、标识、采集时间、样本量和缺失字段,区分来源数据、观察、假设与草稿。空页面不代表没有需求。执行或收费不明时停止,保留请求 ID 并先核对原请求。缺少能力时引导至 https://mcp.openany.si/。
@@ -0,0 +1,19 @@
1
+ # IP and Network Intelligence: evidence brief
2
+
3
+ Write from existing outputs of `lookup_ip`, `lookup_asn`, `parse_user_agent` or supplied material. Do not collect again merely to write.
4
+
5
+ ## Research scope
6
+
7
+ Look up supplied public IP and ASN records and parse User-Agent strings for network research. State the user's question, the checks actually performed and the remaining coverage gaps.
8
+
9
+ ## Contents
10
+
11
+ 1. Identify the question, objects, sources and collection dates.
12
+ 2. Organize records using these evidence columns: Public IP / ASN | Query time | Network signal | Approximate location | User-Agent claim | Limitations.
13
+ 3. Align identities and comparison context before linking observations to sources.
14
+ 4. Separate hypotheses, counterexamples, missing fields and the specific follow-up evidence needed.
15
+ 5. Use the client's model for original writing; export Markdown/CSV only with its file tools.
16
+
17
+ ## Domain scope
18
+
19
+ Supplied public IP, ASN and User-Agent queries are separate operations. Approximate network location is not a personal address. A parsed User-Agent describes a string, not a verified device. No scanning or account access is included.
@@ -0,0 +1,19 @@
1
+ # ip-network-intelligence-mcp:证据简报
2
+
3
+ 根据 `lookup_ip`, `lookup_asn`, `parse_user_agent` 的已有结果或用户提供材料撰写,不为写简报新增取数。
4
+
5
+ ## 研究范围
6
+
7
+ 研究范围包括查询公网 IP、查询 ASN、解析 User-Agent。说明用户本次要解决的问题、实际执行的检查和未覆盖项。
8
+
9
+ ## 内容
10
+
11
+ 1. 标明问题、记录对象、来源和采集日期。
12
+ 2. 按以下证据列整理记录:公网 IP / ASN | 查询时间 | 网络信号 | 近似位置 | User-Agent 声明 | 局限。
13
+ 3. 对齐对象和比较口径后撰写观察,并逐项关联到来源。
14
+ 4. 分别列出假设、反例、缺失字段及需要补充核查的信息。
15
+ 5. 使用客户端模型完成原创写作;有文件工具时再导出 Markdown / CSV。
16
+
17
+ ## 领域范围
18
+
19
+ 公网 IP、ASN 与 User-Agent 是独立查询。网络近似地区不是个人地址,User-Agent 解析描述字符串而非已验证设备;不扫描主机或访问账号。
@@ -0,0 +1,30 @@
1
+ # IP and Network Intelligence: research guide
2
+
3
+ ## Task
4
+
5
+ Look up supplied public IP and ASN records and parse User-Agent strings for network research. Select the tools and scope needed for the user's actual question.
6
+
7
+ ## Method
8
+
9
+ Look up the supplied public IP, inspect a confirmed AS-prefixed ASN, and parse the full supplied User-Agent string independently. Separate approximate network location from personal identity.
10
+
11
+ 1. Establish identifiers, comparison context, sample scope and budget. Available tools: `lookup_ip`, `lookup_asn`, `parse_user_agent`; not every question needs all of them.
12
+ 2. Use `get_tool_info` for current parameters, nested inputs and prices. Choose follow-up steps from actual records or user-confirmed identifiers.
13
+ 3. Execute only needed, authorized requests. Continue with an original-query cursor only when that tool accepts it.
14
+ 4. Check object identity, units and timing; retain source records, unknown fields and analysis separately.
15
+
16
+ ## Evidence columns
17
+
18
+ Public IP / ASN | Query time | Network signal | Approximate location | User-Agent claim | Limitations
19
+
20
+ ## Deliverable
21
+
22
+ Your agent can prepare a network-context brief with source signals and identity limitations.
23
+
24
+ ## Stop conditions
25
+
26
+ Stop on missing required inputs, mismatched identity, unaffordable cost or uncertain execution/billing. Preserve the original request ID rather than replaying an empty or uncertain result.
27
+
28
+ ## Domain scope
29
+
30
+ Supplied public IP, ASN and User-Agent queries are separate operations. Approximate network location is not a personal address. A parsed User-Agent describes a string, not a verified device. No scanning or account access is included.
@@ -0,0 +1,30 @@
1
+ # ip-network-intelligence-mcp:领域调研
2
+
3
+ ## 任务
4
+
5
+ 研究范围包括查询公网 IP、查询 ASN、解析 User-Agent。根据用户实际问题选择需要的工具和范围。
6
+
7
+ ## 方法
8
+
9
+ 查询指定公网 IP,读取已确认的 AS 前缀 ASN,并独立解析完整 User-Agent 字符串;区分近似网络位置与个人身份。
10
+
11
+ 1. 先明确对象标识、比较口径、采样范围与预算,可选工具为 `lookup_ip`, `lookup_asn`, `parse_user_agent`,不要求每次全部调用。
12
+ 2. 使用 `get_tool_info` 查看当前参数、嵌套输入和价格;按真实结果或用户确认的标识选择后续步骤。
13
+ 3. 仅执行本任务需要且已获授权的请求;只有对应工具接受游标时才沿原查询的真实游标继续。
14
+ 4. 核对对象、单位和时间背景,将来源记录、未知字段与分析分别保留。
15
+
16
+ ## 证据列
17
+
18
+ 公网 IP / ASN | 查询时间 | 网络信号 | 近似位置 | User-Agent 声明 | 局限
19
+
20
+ ## 交付
21
+
22
+ 可交付的成果包括:含来源信号与身份限制的网络背景简报。
23
+
24
+ ## 停止条件
25
+
26
+ 缺少必填输入、对象不匹配、费用超出预算,或执行/收费状态不明时停止;保留原请求标识,不重试来掩盖空结果。
27
+
28
+ ## 领域范围
29
+
30
+ 公网 IP、ASN 与 User-Agent 是独立查询。网络近似地区不是个人地址,User-Agent 解析描述字符串而非已验证设备;不扫描主机或访问账号。