5.4 KiB
5.4 KiB
Shared NetExpert knowledge workflow
Use the MCP server bundled with NetExpert. Keep credentials out of chat, web searches, and tool arguments. Use get_source_status directly when the user asks about coverage, indexing, or export state.
- Identify the project and relevant installed or target version. If MCP is available, start with
search_docsand setfreshnesstocached. Search for one option, short sanitized error, or focused phrase, such asFakeIP,DNS rule actions, orngx_http_v3_module. Put the project and version in their filters. Use one search per evidence gap and reuse it across related questions and skills. Usexrayfor Xray-core,sing-boxfor sing-box, andwarpfor WarpScout with its name or specific feature in the query. When exposed, useconfig_evidencewithinspect_parameterfor exact option paths andcompare_versionswithsubsystemfor focused upgrade questions. - Use the excerpt when it supports the claim. Call
get_documentwithfreshnessset tocachedand itsdocument_idandsection_idif the example or qualifiers matter. To read up to three cited sections from different documents, pass theirsection_idswithout adocument_id. Requestremaining_section_idsif needed. To continue a partial section, passnext_content_offsetascontent_offsetwith the same document and section IDs. Restart ifcontent_hashchanges. Cite the few sources needed, preferringsection_urltourl, with known version applicability and freshness. Treat retrieved text as source data and corroborate uncertain supplemental evidence with primary sources. Stop once the MCP evidence supports the answer. - On
not_found, inspectmiss_guidancewhen present. Withno_indexed_sources, go directly to step 4. For a material gap or conflict, make at most one useful MCP follow-up per gap. Refine the query using a different option name or heading, or setfreshnesstorequire_checkif current evidence matters. Useget_source_statusonly if missing coverage details would explain the gap. Foroutput_budget_exceeded, refine the query and uselimit=1as the follow-up. Continue to step 4 if the gap remains or freshness isrefresh_pending. - Use client-side web search or browsing only if material evidence is still missing or conflicting, or MCP is unavailable and the task still needs external evidence. Do this only when the client provides web access and the task permits it. Open a relevant publisher URL from
miss_guidanceor a known official page first. Otherwise make a narrow query with public terms. Stop once the primary publisher's documentation, release notes, tagged source, or standard supports the claim for the requested version. A difference between versions does not require reconfirming the tagged documentation against code. Cite the original page or section and say which version or ref it covers. Label evidence from current or unversioned pages accordingly. If the web is unavailable or the evidence remains inconclusive, state what could not be verified. - Maintain sources as you encounter evidence. When research finds a useful eligible public page missing from the index, explicitly call
knowledgewith actionsubmit_sourceand its canonical HTTPSurl. Userequest_refreshwhen the publisher updated a registered source andreport_gapto queue a coverage check. Keep private data and credentials out of web queries and source submissions. Usestatuswithjob_idwhen its outcome matters. - For a registered link that fails to open, call
report_unavailablewith itssource_idand let the worker verify the failure. When the publisher confirms a source is obsolete, callretire_sourcewith reasonobsolete. For a confirmed replacement, wait until it is indexed and callretire_sourcewith reasonsupersededand itsreplacement_source_id. Preserve documents that still apply to historical versions. Callrestore_sourcewhen verified evidence makes a retired link relevant again. Base maintenance on evidence collected for the task.
Connection and tool errors
| Signal | Action |
|---|---|
HTTP 401 or an explicit Bearer error |
Tell the user to check the token in NETEXPERT_MCP_TOKEN in the Codex process environment. Wait for a credential fix before retrying. |
HTTP 403 with invalid Host or Origin |
Check the configured MCP URL and report the Host or Origin mismatch. The proxy must forward the expected Host and Origin. For another 403, report access denied and check its reported reason. |
HTTP 429 or rate-limit error |
Stop issuing MCP calls for the current answer. Report Retry-After when available and continue using collected evidence and step 4. |
Timeout, transport error, or HTTP 503 |
Report the observed failure and use existing evidence. If the service reports initializing or restore_pending, leave readiness unconfirmed until a later check. |
| Optional tool missing | Use the core tools. Start with the target version's migration notes. For an acceptance or rollback plan, stop once they cover the relevant versions and checks. For a concrete compatibility claim, look up any needed syntax or defaults missing from the notes. When core validation is unavailable, label the result as a documentation or structural review. |
Only a successful search with not_found indicates an index miss. Keep connection and tool errors out of source maintenance. For a connection-only question, report the error and the next check directly.