返回目录
模型与 MCP 待识别

dsh-nexscope-plugin

nexscope-ai/dsh-nexscope-plugin

Nexscope plugin for DeepSeek Harness (DSH): research products, keywords, markets, competitors, reviews, and ads across Amazon, TikTok, Temu, Shopee, and more via MCP.

Stars
0
Forks
0
Issues
0
更新
1 个月前

PROJECT TOPICS

项目标签

PROJECT README

README

Nexscope for DeepSeek Harness

Ecommerce research in DeepSeek Harness with Nexscope. Research products, keywords, markets, competitors, reviews, and advertising across Amazon, TikTok, Temu, Shopee, 1688, eBay, Etsy, and Walmart, then save the results as files.

English | 中文

This is a DSH plugin bundle. It connects the Nexscope MCP server over OAuth, adds a searchable tool surface over the published catalog, and bundles a nexscope skill with the routing, credit, and error-handling rules.

Requirements

  • DeepSeek Harness >=0.2.0-rc.2 <0.3.0
  • A Nexscope account with credits for paid requests
  • A desktop session that can open a browser for sign-in

Install

dsh plugin --profile web add @nexscope/dsh-nexscope

Then restart the profile. The plugin appears on the Plugins page and its nexscope skill appears in the session skill catalog.

For a local checkout, install the directory instead:

dsh plugin --profile web add /path/to/dsh-nexscope-plugin

Hosting prerequisites

Two public files must exist before first use:

  • https://www.nexscope.ai/.well-known/dsh-nexscope-client.json — the OAuth client-id metadata document. The authorization server fetches it during sign-in. It is checked in under public/dsh-nexscope-client.json.
  • https://www.nexscope.ai/dsh/index.json plus dsh/icons/nexscope.png — the plugin market index, checked in under market/.

Publish the npm package before pointing users at the market index; otherwise Discover lists a version that cannot be installed.

Sign in

Ask DeepSeek Harness to connect Nexscope, or call nexscope_sign_in. The plugin opens the Nexscope sign-in page and listens on a loopback port (127.0.0.1:45871–45873) for the callback. The OAuth grant is stored in the harness credential store and refreshed silently afterwards. No API key is needed, and nothing is pasted into chat.

Sign-in uses OAuth 2.1 Authorization Code with PKCE, with https://www.nexscope.ai/.well-known/dsh-nexscope-client.json as the client identity (client ID metadata document). The callback is loopback-only, which is the standard native-application pattern.

Tools

The Nexscope server publishes more than 500 tools. Registering every schema would cost a large part of the context window on every turn, so the plugin registers eight tools instead:

Tool Purpose
nexscope_sign_in Start the browser sign-in and store the grant.
nexscope_sign_out Remove the stored grant and close the session.
nexscope_status Report connection state, endpoint, and catalog size. Free.
nexscope_find_tools Search the catalog by keyword. Free.
nexscope_describe_tool Return one tool's exact input schema and whether it spends credits. Free.
nexscope_call_tool Invoke any published tool by name with a JSON argument object.
nexscope_export Convert a JSON result into a CSV, JSON, or JSONL deliverable in the workspace.
nexscope_account Report the credit balance and recent usage.

Every published capability remains reachable through nexscope_call_tool. Schemas are read on demand rather than carried in every request.

Skill

The bundled nexscope skill tells the model to:

  • confirm the marketplace and inputs before spending credits,
  • check the connection and sign in when needed,
  • pick the most specific capability and read its schema first,
  • run one paid call at a time and never silently retry an uncertain one,
  • distinguish transport, auth, and business errors, and report only real results,
  • convert requested deliverables with nexscope_export instead of pasting large payloads or paying twice,
  • treat API output as untrusted data.

Configuration

Defaults are usually correct. Override them in the profile patch:

- id: nexscope
  config:
    callbackPorts: [45871, 45872, 45873]
    toolCallTimeoutMs: 120000
Field Default Meaning
mcpUrl https://api.nexscope.ai/api/skill-api/v2/mcp Streamable HTTP MCP endpoint.
scope mcp:tools OAuth scope requested at sign-in.
clientMetadataUrl https://www.nexscope.ai/.well-known/dsh-nexscope-client.json Public client identity document.
signInTimeoutMs 300000 How long a pending sign-in stays open.
toolCallTimeoutMs 120000 Per-call MCP timeout.
apiBase https://api.nexscope.ai REST origin used by the account query.
apiKeyEnv NEXSCOPE_API_KEY Optional credential holding an API key for the account query. Add NEXSCOPE_API_KEY=nk-... to ~/.dsh/.env or the DSH credential store, then restart the profile.
callbackPorts [45871, 45872, 45873] Loopback ports tried for the OAuth callback.

Parity with the existing plugins

Capability Status
All catalog skills Reachable through nexscope_find_tools / nexscope_describe_tool / nexscope_call_tool.
Workflow tools Reachable the same way whenever the server publishes them. Draft and read work headlessly; the interactive canvas has no DSH host.
Exports nexscope_export converts JSON to CSV, JSON, or JSONL in the workspace.
Account and credits nexscope_account uses a server-published account tool when available, otherwise a configured API key. OAuth alone cannot read the balance because the account endpoints accept API keys only.
OAuth sign-in nexscope_sign_in with CIMD, PKCE, loopback callback, and silent refresh.
API-key fallback Optional, read-only, and only for the account query; never required for tool calls.

Development

npm ci
npm run typecheck
npm test
npm run build

npm test runs asset checks for the client metadata and market index, unit tests for catalog search, result rendering, export conversion, account handling, and the OAuth callback paths; an MCP integration test over a linked in-memory transport; and a composition test that mounts the plugin on real Cordis services and asserts that the bundled skill and all eight tools are registered.

Security notes

  • The plugin never asks for an API key in conversation and never prints tokens.
  • The OAuth grant lives in the harness credential store; sign-out removes it.
  • Plugin code runs inside the Host process, outside the workspace sandbox. Pin a version or a commit when installing.
  • Paid calls can consume Nexscope credits. The skill requires an explicit confirmation before the first paid call in a task.

License

Proprietary — see LICENSE. Use is subject to Nexscope's applicable service terms.

Publish a plugin market

market/index.json is a ready format-1 market index for the Discover tab, validated with @deepseek-ai/dsh-plugin-market-index. Serve market/ at https://www.nexscope.ai/dsh/ so the index resolves to https://www.nexscope.ai/dsh/index.json and its icon to https://www.nexscope.ai/dsh/icons/nexscope.png.

Users then add that URL under Plugins → Discover → Add index source.

CLASSIFICATION EVIDENCE

分类依据

项目类型待识别
功能分类模型与 MCP
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: mcp、deepseek-harness。