oriole
This MCP server lets you operate Oriole's job-source engine: discover, verify, approve, collect, and query China job sources and normalized jobs, with full audit and graph visibility.
Run the pipeline (
run_pipeline): execute discovery → safe probing → candidate graph insertion; optionally collect approved sources, with province/city filters and bounded batches.Manage discovery (
discover_sources,submit_source): discover candidates from official catalogs, Common Crawl, or Baidu; or submit a public URL as an evidence-backed candidate. Nothing is auto-approved.Probe sources safely (
probe_source): run real DNS/redirect/robots/size/timeout-guarded checks on a source ID or URL without approving it.Review sources (
review_source): approve or reject probed sources with human confirmation, reviewer name, reason, and expected revision. Disabled by default in MCP unless explicitly enabled.Collect jobs (
collect_jobs,run_due): collect from approved sources only, normalize and deduplicate jobs, update freshness; commit is opt-in and previews do not write jobs.Query jobs and regions (
list_jobs,list_regions): page through normalized China jobs with province/city/status filters; view the deterministic province–prefecture taxonomy and job counts.Inspect sources and graph (
list_sources,get_source_graph): query the persistent source registry by lifecycle/verification state and read evidence-bearing relations between publishers, sources, regions, endpoints, and jobs.Check status and coverage (
status,source_coverage): view Registry version, run stats, query buckets, provider config, and measurable coverage gaps by channel/employer/region.Get run details (
get_run): read a specific run's status, statistics, evidence index, and errors by run ID.Run audits and export (
audit,export_hosted_projection): run invariant/activation checks and deterministically export a bounded portable projection for external hosting.All operations respect safety boundaries: candidates never auto-approve, jobs only come from approved sources, network work is bounded, and commit/persistent changes require explicit flags or human approval.
Enables optional job-source discovery via Baidu's official Qianfan AI Search API, storing request-level evidence and enforcing a daily budget.
Collects public job listings from ByteDance/Feishu recruitment boards with bounded pagination, atomic resume cursors, and explicit pagination-complete tracking.
Collects public job listings from Greenhouse ATS boards, normalizing jobs by actual workplace and supporting province/city filters.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@oriole Find Java developer jobs in Shanghai"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Oriole · 黄雀 Job Engine
中文说明 · Architecture · Sources · Verification
Turn the open web into a traceable, review-gated map of job sources—not an opaque pile of scraped listings.
Oriole is an open, nationwide China job-source aggregation engine and Agent. It discovers public recruitment publishers, verifies their endpoints, requires human approval before collection, normalizes jobs by their actual workplace, and exposes the result through 18 bilingual MCP tools.
It is deliberately built as an engine, not a single website. Run it from the CLI, use the separate job-update and source-spider schedules, embed the deterministic core in another Node.js service, or connect it to an LLM client that supports MCP. “MCP-capable” is an integration requirement: Oriole does not make every LLM remotely usable automatically, and the client still needs local process access or an operator-provided transport.
What is implemented
Capability | Implementation |
Nationwide geography | Deterministic two-level China taxonomy: 34 province-level regions and 365 prefecture/province-direct entries |
Workplace classification | Uses the job's stated work location, preserves multi-location jobs, supports province/city filters, and rejects foreign-only rows |
Source discovery | A bounded 5,000+ employer universe built from four official directories plus 19 versioned priority employers, nine channels, Baidu Search API, Common Crawl URL Index, and submitted URLs |
Stable collection | Lever, Greenhouse, Ashby, bounded ByteDance/Feishu Recruitment public search adapters with durable offset rotation, flexible public JSON, JSON-LD, RSS/Atom, Sitemap XML, and guarded HTML |
Source graph | Evidence-bearing relations between publisher, source, region, entry point, endpoint, discovery channel, and job |
Trust workflow |
|
Evidence and persistence | Run records, HTTP summaries, hashes, source/job traceability, and a complete durable state tree on |
Agent interface | 18 bilingual MCP tools over JSON-RPC 2.0 NDJSON stdio; modern |
Automation | Separate Beijing-time schedules: jobs daily at |
Query coverage | 833 bounded discovery tasks: 730 prefecture-rotation tasks plus national, province, ATS, industry, park, and association work |
Job freshness | The hosted current-job projection requires source-scoped evidence no older than 14 days; older Registry evidence is retained but is not advertised as fresh |
Safety | HTTPS-only outbound access, public-address DNS pinning, SSRF defenses, redirect and robots guards, time/size/row limits, rate limits, and secret-host pinning |
Related MCP server: OpenAI-Compatible MCP Gateway
The source model
Discovery channels and job sources have different jobs:
Baidu is a discovery radar. When configured, Oriole calls Baidu's official Qianfan endpoint and stores request-level evidence. It never scrapes a Baidu result page.
Common Crawl is a keyless archive/index fallback for controlled
site:patterns. It verifies that public URLs existed; it is not treated as a full-text search engine or as the final job source.Official employer directories define a bounded source-spider universe. The four authority inputs are SSE Main Board, SSE STAR Market, CNINFO's Shenzhen A-share disclosure-publisher directory, and the SASAC central-enterprise directory; the reviewed 19-employer inventory is versioned separately. The checked artifact contains 5,425 deduplicated targets. Its CNINFO scope explicitly includes current and historical publishers after excluding names clearly ending in
退/退市; the SASAC request failed with HTTP 502 during this build, so its 99 entries are labelled as the versioned2026-07-11snapshot rather than live data.Employer sites, official ATS boards, and government employment pages are the long-lived collection targets. A source must pass safety probing and human review before its jobs can enter the Registry.
User submission lets another Agent or operator propose a public URL, while keeping the same probe-and-review gate.
No Baidu key is required to collect the nine pre-approved source seeds or to discover candidates from the bundled official catalog. Provider capability is explicit per query task: ordinary keyword discovery is Baidu-only, so those tasks remain visibly blocked in status.discoveryBacklog and discovery-run statistics when Baidu is unavailable. Common Crawl is eligible only for controlled site: tasks; blocked work is never counted as completed.
The main source tree and a clean clone start with zero job records. npm run init imports nine explicitly audited public source seeds—eight employer-controlled boards, including ByteDance, and one government employment source—so a clean clone has functional collection targets without bundling a stale job snapshot. A deployed repository may deliberately keep current jobs and receipts on its separate public oriole-state branch; that durable operational state is not part of the clean-clone seed. This is not automatic approval of search results: the seed manifest itself is a reviewed trust decision, and all newly discovered sources still require probe and approval.
Coverage is a measurable gap report, not a claim of complete national job capture. The 5,000+ universe is a bounded discovery denominator, not 5,000+ approved job feeds. The source spider prioritizes missing and high-value employers, keeps persistent retry/backoff state, and can only create candidate or probed records. Every newly found source still needs a human approval before collection. The versioned ByteDance priority root is https://jobs.bytedance.com/; its reviewed experienced-hire listing remains the bootstrap collection entry.
ByteDance/Feishu collection is bounded to 50 pages, 5,000 upstream rows, and 24 MB per source invocation. When one invocation cannot reach the tail, a committed run stores a fingerprinted, generation-checked cursor under source.collection.resume; the next segment refreshes one head page and then continues the tail with one page of deliberate overlap. Job writes and cursor advancement share one atomic Registry transaction. Before either mutation, the Registry compare-and-swaps both the source revision read by the collector and the saved cursor generation; either conflict writes neither jobs nor cursor. Preview, failure, or a conflict never advances the saved position. A resumed tail segment remains pagination.complete: false even when it closes a rotation cycle, because a changing offset feed is not a cross-run snapshot and cannot justify missing-job closure. Inspect collection-run and Registry evidence separately: npm run coverage measures source/channel/region state and does not read pagination or resume progress.
The hosted projection applies a separate freshness boundary: a confirmed_active job needs qualifying source-scoped evidence within 14 days. A partial cursor segment cannot refresh jobs it did not observe. This filters the portable export; it does not erase older evidence from the complete Registry.
See docs/SOURCES.md for the exact provider boundaries and seed catalog.
Quick start
Requirements: Node.js 22.13+. Oriole has no runtime dependencies and needs no secret to initialize or collect its pre-approved sources, discover from the official catalog, or run controlled Common Crawl site: tasks.
git clone https://github.com/gaofeibilly-maker/oriole-job-engine.git
cd oriole-job-engine
npm ci --ignore-scripts
npm test
npm run init
npm run status
npm run coverage
npm run regions -- --province-code 420000After init, status should show 9 approved sources and 0 bundled jobs. Jobs only appear after a real committed collection.
For a preview-only, evidence-producing check of ByteDance's current public jobs (no Baidu key required), run npm run live-source-check. It validates official application URLs and prints a compact summary rather than raw responses or job descriptions. Preview reads the applicable window but never commits jobs or advances a saved resume cursor. The matching GitHub workflow can be run manually or by labeling a pull request live-source-audit.
Discover the bundled official catalog without a credential:
node scripts/huangque/cli.mjs discover \
--providers official_catalog \
--force
node scripts/huangque/cli.mjs sources
node scripts/huangque/cli.mjs graphDiscovery creates candidates; it does not silently turn them into collection targets. Probe a candidate, inspect its evidence and current Registry revision, then approve it explicitly:
node scripts/huangque/cli.mjs probe --source <source-id>
node scripts/huangque/cli.mjs review \
--source <source-id> \
--decision approve \
--reviewer <operator-name> \
--reason "Official public recruitment source verified" \
--revision <current-revision> \
--confirm
node scripts/huangque/cli.mjs collect --source <source-id> --commit
node scripts/huangque/cli.mjs jobs --province-code 420000 --city-code 420100All state is local by default:
.huangque/state.json— atomic portable Registry;.huangque/artifacts/— content-addressed, compressed evidence;.huangque/source-spider-state.json— persistent employer queue and backoff state;.huangque/latest-job-update.jsonand.huangque/job-updates/— latest and dated job-update receipts;.huangque/latest-audit.json— latest machine-readable self-audit.
These paths are ignored by Git and can be relocated with environment variables. The reference GitHub deployment stores the Registry as registry.json.gz plus a manifest containing compressed and plaintext SHA-256 values; plaintext registry.json is never committed. The same dedicated oriole-state tree also contains the validated employer universe, spider queue, and receipts. Compressed raw run evidence is uploaded separately with 30-day retention. The bundle code rejects compressed Registry data above 90 MiB (94,371,840 bytes), below the official GitHub 100 MiB per-file block. Deployments that approach this guard must move Registry storage to a database/object store rather than raising it.
Initialize oriole-state once
The scheduled workflows cannot check out a branch that does not exist. Before the first Actions run, create a clean state branch from a disposable directory. These commands do not touch the current source branch, and the final push is intentionally not forced: if oriole-state already exists, it fails instead of overwriting durable state.
ORIOLE_ORIGIN_URL="$(git remote get-url origin)"
ORIOLE_BOOTSTRAP_ROOT="$(mktemp -d)"
mkdir "$ORIOLE_BOOTSTRAP_ROOT/repository"
npm run init-state -- \
--output "$ORIOLE_BOOTSTRAP_ROOT/repository/state-data"
ls -1 "$ORIOLE_BOOTSTRAP_ROOT/repository/state-data"
test ! -e "$ORIOLE_BOOTSTRAP_ROOT/repository/state-data/registry.json"
git -C "$ORIOLE_BOOTSTRAP_ROOT/repository" init -b oriole-state
git -C "$ORIOLE_BOOTSTRAP_ROOT/repository" config user.name "Oriole State Bootstrap"
git -C "$ORIOLE_BOOTSTRAP_ROOT/repository" config user.email "actions@users.noreply.github.com"
git -C "$ORIOLE_BOOTSTRAP_ROOT/repository" remote add origin "$ORIOLE_ORIGIN_URL"
git -C "$ORIOLE_BOOTSTRAP_ROOT/repository" add -- state-data
git -C "$ORIOLE_BOOTSTRAP_ROOT/repository" diff --cached --name-only
git -C "$ORIOLE_BOOTSTRAP_ROOT/repository" commit -m "state: initialize oriole-state"
git -C "$ORIOLE_BOOTSTRAP_ROOT/repository" push origin HEAD:refs/heads/oriole-stateThe staged inventory must contain exactly employer-universe.json, registry.bundle-manifest.json, registry.json.gz, and source-spider-state.json. The initialization summary must report nine approved reviewed seeds, zero jobs, zero runs, zero receipts, and no persisted plaintext Registry. This proves only that the durable state was initialized; it is not a successful online job update, source-spider run, or recovery exercise. Do not rerun this bootstrap to repair an existing branch—restore and audit the existing state instead.
Connect an MCP-capable LLM client
Start the stdio server:
npm run mcpExample MCP client configuration:
{
"mcpServers": {
"oriole": {
"command": "node",
"args": ["/absolute/path/oriole-job-engine/scripts/huangque/mcp-server.mjs"],
"env": {
"HUANGQUE_REGISTRY_PATH": "/absolute/path/oriole-data/state.json",
"HUANGQUE_ARTIFACT_ROOT": "/absolute/path/oriole-data/artifacts"
}
}
}
}The 18 tools cover pipeline runs, run lookup, status, measurable source-coverage gaps, discovery, public-source submission, probing, source listing, job listing, region listing, graph reading, human review, collection, compatible due-job execution, the independent source spider, the independent job updater, audit, and portable projection export.
Network-tool defaults intentionally perform a small unit of work (for example, one employer or one due source) within the MCP deadline; callers can request a larger bounded batch or repeat the call. A failed or partial business result is returned with isError: true and completed: false, not labelled as successful merely because the process returned JSON.
The server is stdio MCP, not a public hosted endpoint. A compatible client must be configured to start the local process (as above), or an operator must provide a separate secured transport. Merely choosing an arbitrary LLM does not give it automatic remote access to Oriole.
huangque.list_regions reports unique-job aggregates at province level, province-only level, and each second-level city. A job explicitly offered in two cities in one province counts once in the province total and once in each applicable city.
Source approval through MCP is disabled by default. An operator must intentionally set HUANGQUE_ALLOW_MCP_REVIEW=1; CLI approval remains available without weakening that server-side boundary.
Optional Baidu discovery
Copy the example configuration and set your key locally or as a GitHub Actions secret. Never commit it.
cp .env.example .env
export HUANGQUE_BAIDU_API_KEY="<your-key>"
node scripts/huangque/cli.mjs discover --providers baidu --max-queries 5The key is only sent to qianfan.baidubce.com. A custom endpoint on another host is rejected. The default daily budget is 40 requests and can be lowered with HUANGQUE_BAIDU_DAILY_BUDGET.
Leaving Baidu unconfigured does not stop approved-source collection. It only leaves ordinary keyword-based active-discovery tasks explicitly blocked; keyless Common Crawl continues to handle the query plan's controlled site: tasks.
Official reference: Baidu Qianfan AI Search API.
Independent schedules
The reference GitHub automation separates source discovery from job refresh:
Beijing time | UTC cron | Work |
Daily |
| Refresh due approved job sources only |
Sunday |
| Atomically rebuild and validate the persistent employer universe |
Daily |
| Run the bounded source spider |
Sunday |
| Run a deeper source/region gap scan |
Sunday |
| Restore the complete |
Run the job updater locally with:
npm run dailyThe runner writes a Beijing-date completion receipt, so a retry does not duplicate the same day's run unless --force is supplied. Run the source spider separately with npm run source-spider; use -- --deep only for the deeper mode. GitHub schedules can start late, so these are configured target times rather than proof that an online run occurred. See docs/SCHEDULING.md.
Source graph, not just a list
Each graph edge carries evidence and observation timestamps. Core relations are:
publisher ← published_by — source — covers_region → region
│
├─ has_entry_point → public page
├─ has_endpoint → collection endpoint
├─ discovered_via → provider/query/run evidence
└─ lists_job → normalized jobPublisher and region edges follow the latest authoritative approved-source evidence: when an audited source identity changes, obsolete published_by and covers_region relations are pruned instead of remaining as misleading historical facts.
“Complete graph” here means that every registered source is represented with the relations supported by its evidence and that every relation is auditable. It does not mean the finite catalog already contains every employer or every open job in China; Oriole is designed to expand and re-verify that graph continuously.
Verify before trusting
npm run verify
npm run auditThe test suite exercises normalization, the 5,000+ bounded universe contract, nationwide regions and 833 query tasks, multi-location handling, providers, bounded large-feed rotation, conditional GET, cursor atomicity/concurrency, graph evidence, Registry retention, state initialization/recovery, official-SDK MCP interoperability, SSRF controls, robots handling, source ownership, and job identity.
Keep these three claims separate:
Implementation (
implementationComplete) says the code, workflow wiring, schemas, and safety contracts exist. Local tests andstateIntegrityPassedare supporting checks; neither is online evidence.Operational now (
operationalNow) says the current durable state contains real traceable jobs, graph and queue activity, recent real Provider observations, recent GitHub job/spider receipts, and a recent full-state recovery receipt. A configured cron, an initialized branch, a fixture, or a local run cannot satisfy it.Cross-day maturity (
maturityObserved) says successful GitHub job-update receipts and online-evidenced spider receipts cover at least two distinct Beijing natural dates. It measures repetition only and does not by itself imply that all currentoperationalNowrecency checks still pass.
The v2.0.0 documentation describes implemented behavior; it does not claim that your GitHub workflows have already run successfully. Until the complete online checks pass, report “implemented/configured, operational verification pending.” Until both dated series cover two dates, separately report “cross-day maturity pending.” fullyOperational is true only when implementation, state integrity, operational-now, and maturity checks all pass.
Follow the reproducible checklist in docs/VERIFY.md.
Boundaries
Oriole handles public, non-login web sources. It intentionally excludes private WeChat groups, image OCR, email inboxes, CAPTCHA/login-only pages, and other private channels. It does not apply for jobs or make employment decisions. Public web access does not waive a site's terms, robots policy, database rights, privacy obligations, or applicable law; deployers remain responsible for source-specific compliance.
Project layout
data/huangque/ verified seeds, employer universe, query/channel plans, public catalog
scripts/huangque/ CLI, independent updater/spider, MCP server, deterministic core
tests/ Node test suite
docs/ architecture, sources, schedule, verification
.github/workflows/ CI, employer refresh, separate job/source schedules, and full-state recovery auditContributions are welcome under Apache-2.0. Please read CONTRIBUTING.md and report security issues through SECURITY.md.
Available Tools
16 toolshuangque.audit运行黄雀自审ARead-onlyIdempotent
运行不变量与外部激活项检查;不会把报告写入任意路径。
Inputs: no named parameters. Returns: object
huangque.collect_jobs采集已批准来源A
仅从 approved 来源采集、标准化、强键去重和更新时效;commit 默认 false,预览不写岗位库。
Inputs: commit, source_id. Returns: object
huangque.discover_sources发现招聘信息源C
按查询计划通过官方目录、Common Crawl 和已配置的百度官方 API 发现候选;只写候选和证据。
Inputs: force, city_code, providers, bucket_ids, +2 more. Returns: object
huangque.export_hosted_projection导出托管投影BIdempotent
把完整 portable Registry 确定性压缩为外部托管系统可同步的有界投影,并返回文件路径与截断清单。
Inputs: no named parameters. Returns: object
huangque.get_run查看运行ARead-onlyIdempotent
按 run_id 读取黄雀运行状态、统计、证据索引和错误。
Inputs: run_id (required). Returns: object
huangque.get_source_graph读取招聘源图谱 / Read source graphBRead-onlyIdempotent
分页读取发布主体、来源、地区、入口、端点、发现渠道与岗位之间的有证据关系。 Reads evidence-bearing source graph relations.
Inputs: limit, cursor, source_id, relation_type. Returns: object
huangque.list_jobs查询岗位库BRead-onlyIdempotent
分页读取已由批准来源采集的全国标准化岗位,可按省、市筛选。 Lists normalized China jobs with province/prefecture filters.
Inputs: limit, cursor, status, city_code, +1 more. Returns: object
huangque.list_regions查询全国地区 / List China regionsBRead-onlyIdempotent
读取黄雀使用的省级—地级二级地区目录和岗位计数。 Returns the deterministic province/prefecture taxonomy and job counts.
Inputs: province_code. Returns: object
huangque.list_sources查询来源图谱BRead-onlyIdempotent
查询持久化来源 Registry;可按生命周期或验证状态过滤。
Inputs: limit, cursor, city_code, lifecycle, +2 more. Returns: object
huangque.probe_source安全探测来源A
对 source_id 或公开 URL 执行 DNS/重定向/robots/大小/超时防护下的真实探测;不会自动批准。
Inputs: url, source_id. Returns: object
huangque.review_source人工审核来源ADestructive
批准或驳回已探测来源。要求人工确认、审核人、理由和 expected_revision;MCP 端默认禁用,需 operator 显式授权。
Inputs: reason (required), decision (required), source_id (required), reviewed_by (required), +2 more. Returns: object
huangque.run_due运行到期任务A
按 cadence 运行到期发现、探测与已批准来源采集;commit 默认 false,只有显式 true 才写岗位库。
Inputs: commit, max_probes, max_queries, max_collections. Returns: object
huangque.run_pipeline运行黄雀流水线C
执行发现→安全探测→候选入来源图谱;新来源不会自动批准。可选采集已批准来源。
Inputs: force, commit, city_code, providers, +5 more. Returns: object
huangque.source_coverage检查来源覆盖缺口 / Inspect source coverage gapsARead-onlyIdempotent
按 9 类渠道、19 家有界重点企业、34 个省级与 365 个二级区域计算可审计缺口;不把发现线索冒充已批准来源,也不声称抓全互联网。
Inputs: no named parameters. Returns: object
huangque.status查看黄雀状态ARead-onlyIdempotent
读取 Registry 版本、来源/岗位/运行统计、到期查询桶和 Provider 配置状态。
Inputs: no named parameters. Returns: object
huangque.submit_source提交公开来源 / Submit public sourceA
把一个公开招聘 URL 作为候选写入图谱并保留提交证据;不会自动探测、批准或采集。 Adds a public URL as an evidence-backed candidate without automatic approval.
Inputs: url (required), note, title. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Most tools have distinct purposes, but run_pipeline and run_due both execute workflows and could be confusing. However, descriptions clarify that run_pipeline is a general discovery-probing pipeline, while run_due runs scheduled tasks. Other pairs like discover_sources/probe_source and submit_source/review_source are clearly separated.
All tools share the 'huangque.' prefix and mostly follow a verb_noun pattern (e.g., list_sources, collect_jobs, get_run). Exceptions like 'status' and 'source_coverage' use nouns, but they are still intuitive and the overall naming is coherent.
With 16 tools, the set is slightly above the ideal 3-15 range but still well-scoped for a comprehensive job-source management system. Each tool covers a distinct aspect, and no tool feels redundant.
The toolset covers the full lifecycle: discovery, submission, probing, review, collection, listing, reporting, and pipeline execution. Minor gaps exist (e.g., no explicit update/delete for sources), but the core workflows are well-supported and agents can work around these limitations.
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Unified 15-tool SEO, SERP, clean Markdown & GEO (LLM citation Share-of-Voice) MCP server.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Related MCP Servers
- AlicenseBqualityAmaintenanceLocal MCP server for BOSS Zhipin workflows. Exposes 49 tools for job search, welfare filtering, recruiter messaging, pipeline tracking, and resume optimization for AI agents.8015,755 PyPI2,303MIT
- FlicenseNot gradedqualityDmaintenanceLocal MCP server that exposes fixed tools for GPT, Claude, and Gemini while routing to any OpenAI-compatible chat completions backend with independent configuration per target.1-
- AlicenseNot gradedqualityDmaintenanceMCP server that exposes 108+ omega-cli OSINT tools for reconnaissance, web analysis, threat intelligence, and reporting, enabling AI assistants to perform comprehensive open-source intelligence tasks.MIT
- FlicenseNot gradedqualityDmaintenanceA custom MCP server with 6 utility tools (file search, file reading, math calculation, JSON formatting, time query, system info) that demonstrates MCP protocol workflow and integrates with LangChain agents.-