hicreator-agent 0.3.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # hiCreator Agent
2
2
 
3
- Connect AI agents to hiCreator creator discovery, profile and video details, contact emails, audience and fake-follower reports, and favorite-folder workflows. The installer provides verified one-step setup for Codex, Claude Code, and Cursor. Any client that supports remote Streamable HTTP MCP with a custom `Authorization` header can use the same tools.
3
+ Connect AI agents to hiCreator creator discovery, profile and video details, contact emails, reverse lookup by email, audience and fake-follower reports, and favorite-folder workflows. The installer provides verified one-step setup for Codex, Claude Code, and Cursor. Any client that supports remote Streamable HTTP MCP with a custom `Authorization` header can use the same tools.
4
4
 
5
5
  ## Requirements
6
6
 
@@ -36,17 +36,23 @@ npx --yes --prefer-online hicreator-agent@latest prepare --json
36
36
 
37
37
  ## Billing
38
38
 
39
- AI search and similar-creator search each cost 0.5 credits per returned creator. Email lookup costs 0.2 credits for each valid creator profile URL, including when no public email is found. Creator and video details each cost 0.1 credits per successful query. New audience reports cost 40 credits and fake-follower reports cost 30 credits; eligible existing reports can be reused. These are default prices; server pricing takes precedence. The skill never automatically retries paid queries or report submissions.
39
+ Twitter AI search and similar-creator search cost 2 credits per returned creator; Instagram, YouTube, and TikTok cost 0.5. Reverse email lookup accepts one `email` per call and returns all matching stored creators as flat objects, with nulls for missing fields. It costs 1 credit per matched email regardless of creator count, with unmatched emails refunded. Email lookup costs 0.2 credits for each valid creator profile URL, including when no public email is found. Creator and video details each cost 0.1 credits per successful query. New audience reports cost 40 credits and fake-follower reports cost 30 credits; eligible existing reports can be reused. These are default prices; server pricing takes precedence. The skill never automatically retries paid queries or report submissions.
40
40
 
41
41
  Favorite-folder tools support creation, cursor pagination, folder details, rename, permanent deletion, member listing, single or batch removal, Workspace/public sharing with a stable link, and asynchronous Excel export for today, the last 7 days, or the last 30 days. Excel exports reuse hiCreator's existing 100,000-row and file-size safeguards.
42
42
 
43
+ ## Platform coverage
44
+
45
+ Twitter/X supports AI and similar search with native post-view filters, audience reports, reverse email lookup, and favorites/sharing/export. Live profile/video details, contact-email lookup, and fake-follower checks remain limited to Instagram, YouTube, and TikTok. The product's batch Creator Lookup page is a separate workflow, not a public MCP tool.
46
+
47
+ Folder exports support optional ordered `columns` with custom labels and Chinese/English output. The shared skill documents metric differences and does not invent values for unsupported fields.
48
+
43
49
  ## Analysis reports
44
50
 
45
51
  Submit one creator profile URL, save the returned task ID and type, and query that same task with `get_creator_report`. Poll about every 5 seconds while queued or running; stop on succeeded, unavailable, or failed. Report submission and polling are separate operations. YouTube comment-account indicators do not measure the share of fake subscribers.
46
52
 
47
53
  ## Release order
48
54
 
49
- Deploy the backend's 20-tool MCP set before publishing this installer and the updated capabilities page. Setup checks every expected tool using `initialize` and `tools/list`, without executing business operations. Existing clients keep their previous tools; reload tool discovery to access additions. Skill updates alone do not deploy backend capabilities.
55
+ Deploy the backend's 21-tool MCP set before publishing this installer and the updated capabilities page. Setup checks every expected tool using `initialize` and `tools/list`, without executing business operations. Existing clients keep their previous tools; reload tool discovery to access additions. Skill updates alone do not deploy backend capabilities.
50
56
 
51
57
  ## Local Files
52
58
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hicreator-agent",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "description": "Install and update the hiCreator Agent Skill and remote MCP connection.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: hicreator
3
- description: Discover and evaluate Instagram, YouTube, or TikTok creators with hiCreator; query profiles, videos, contact emails, audience and fake-follower reports, and organize, share, or export favorite folders.
3
+ description: Discover and evaluate Instagram, YouTube, TikTok, and Twitter/X creators with hiCreator; match emails to profiles, query supported details and reports, and organize, share, or export favorites.
4
4
  ---
5
5
 
6
6
  # hiCreator
@@ -29,6 +29,7 @@ API keys belong in the client's credential UI or the user's own local interactiv
29
29
  | Find creators like an account | `find_similar_creators` |
30
30
  | Inspect a creator or video | `get_creator_detail`, `get_video_detail` |
31
31
  | Find a public contact email | `find_creator_email` |
32
+ | Find existing creators associated with an email | `find_creators_by_email` |
32
33
  | Analyze audience demographics | `create_audience_analysis`, then `get_creator_report` |
33
34
  | Check fake-follower indicators | `create_fake_follower_check`, then `get_creator_report` |
34
35
  | Find or inspect a folder | `list_creator_folders`, `get_creator_folder`, `list_creators_in_folder` |
@@ -36,17 +37,36 @@ API keys belong in the client's credential UI or the user's own local interactiv
36
37
  | Share a folder | `set_creator_folder_sharing` |
37
38
  | Export a folder to Excel | `export_creator_folder`, then `get_creator_folder_export` |
38
39
 
40
+ ## Platform support
41
+
42
+ | Capability | Instagram / YouTube / TikTok | Twitter / X |
43
+ |---|---|---|
44
+ | AI search, similar creators, audience analysis | Supported | Supported |
45
+ | Reverse lookup by email, favorites, sharing, export | Supported | Supported |
46
+ | Live creator/video details, find a contact email, fake-follower check | Supported | Not supported |
47
+
48
+ The product's **Creator Lookup / 查达人** page supports all four platforms at `/data/creator-lookup` (old `/data/email` links redirect). That batch lookup and its gated ingestion/refresh workflow are not public MCP tools. Do not emulate them by calling internal session endpoints or promise that a public detail/email query runs that workflow.
49
+
39
50
  ## Discovery and details
40
51
 
41
- - Search supports Instagram, YouTube, and TikTok. Set platform, intent or reference account, and quantity from the request. Ask for missing choices that materially affect the result or cost. `limit` is 1–100 (default 40); do not silently increase it or issue additional searches.
52
+ - Search supports `instagram`, `youtube`, `tiktok`, and `twitter`. Set platform, intent or reference account, and quantity from the request. Ask for missing choices that materially affect the result or cost. `limit` is 1–100 (default 40); do not silently increase it or issue additional searches.
42
53
  - Pass `regions` and `excludedRegions` as ISO 3166-1 alpha-2 codes such as `US` or `GB`; a country cannot appear in both. Use structured filters for supported constraints. `workspaceDeduplicationEnabled` excludes previous Workspace search results; Workspace exclusions still apply when it is off. Verify hard constraints against returned data and say which remain unverified.
54
+ - For Twitter, use `filters.twitter` for account type, age range, average/median post views, following counts, and freshness. Do not send video play-count, creator-type, or face-visibility filters. Similar search accepts an X/Twitter profile URL or handle. Read [Twitter search](references/twitter-search.md) for a concrete request and metric distinctions.
43
55
  - Details accept one complete profile URL (`profile_url`) or video URL (`video_url`), with platform inferred from the URL. Bare handles and IDs are not detail inputs. Preserve `canonicalUrl` and `retrievedAt`; missing fields mean unknown, not zero. Platform-specific fields are under `platformDetails`.
44
56
  - Detail queries do not save or ingest a creator and do not return contact emails. Do not promise that a detail result can be added to favorites: adding requires an existing hiCreator creator with a stable `platform` and `creator_id`, such as a search result.
45
57
  - Only call `find_creator_email` when requested and the selected result does not already contain the email. Never automatically enrich search, detail, report, or export results.
46
58
 
59
+ ## Reverse lookup by email
60
+
61
+ `find_creators_by_email` accepts exactly one complete address: `{ "email": "contact@example.com" }` (up to 254 characters). Do not send `emails`, arrays, limits, or pagination parameters. The server trims and lowercases the email before exact matching in the four platforms' email inventories, then joins the matching user IDs to stored profiles. It does not crawl, refresh, or infer account ownership.
62
+
63
+ Read `data.email` and `data.creators`. All matching creators are returned, without a result cap or truncation; there is no `matches` wrapper, `hasMore`, or cursor. An empty `creators` array means no stored profile match, not that the email or creator does not exist. One email can match multiple creators across platforms; results are sorted by `platform` and `id`. A matched email costs once regardless of creator count; an unmatched email is refunded.
64
+
65
+ Each creator is a flat object using Creator Lookup / public search field names. Every field is present. Missing or platform-inapplicable values are `null`; known empty lists remain `[]`. Preserve nulls as unknown, never zero or false. Read [email reverse-lookup fields](references/email-reverse-lookup.md) for the response shape and complete field definitions. Use the top-level creator `id` with `platform` when explicitly asked to save a match to favorites. Preserve `requestId` and `billingRequestId` when reporting an uncertain paid result.
66
+
47
67
  ## Analysis reports
48
68
 
49
- Both creation tools take one `profile_url`. Save the returned `data.id` and `data.type`; `requestId` identifies the request, not the report. Submission returns a task, not a completed analysis. Repeated submission creates another task; no client idempotency key is supported.
69
+ Both creation tools take one `profile_url`, subject to the platform matrix above. Twitter audience analysis accepts `x.com` and `twitter.com` profile URLs; it can be unavailable when the server has disabled that capability. Save the returned `data.id` and `data.type`; `requestId` identifies the request, not the report. Submission returns a task, not a completed analysis. Repeated submission creates another task; no client idempotency key is supported.
50
70
 
51
71
  Call `get_creator_report` with `report_id: data.id` and the returned `type` (`audience_analysis` or `fake_follower_check`). Poll the same task about every 5 seconds while `queued` or `running`, without overlapping requests. When following multiple tasks, stagger checks and back off on rate limits. Stop on `succeeded`, `unavailable`, or `failed`. Read `data.errorCode` even when the tool call itself succeeds. If it remains pending beyond the current waiting window, return the task ID and type so it can be resumed; never submit a replacement merely to check progress.
52
72
 
@@ -56,7 +76,7 @@ Audience results contain country, age-range, and gender distributions. Fake-foll
56
76
 
57
77
  - Use a known folder ID directly with `get_creator_folder`; otherwise locate the requested folder with `list_creator_folders`. Create a folder only when needed. Names are unique within the Workspace.
58
78
  - Folder and member lists use opaque cursors. Pass `nextCursor` unchanged, stop at null or when the requested selection is complete, and never reuse a member cursor with a different platform filter.
59
- - Add/remove batches accept at most 100 items. Split explicit larger selections into stable batches and report per-item failures. Removing a favorite does not delete the creator profile; a missing membership returns `removed: false`.
79
+ - Membership accepts all four platforms. Use stable `platform` + `creator_id` values from results, never a handle in place of an ID. Add/remove batches accept at most 100 items. Split explicit larger selections into stable batches and report per-item failures. Removing a favorite does not delete the creator profile; a missing membership returns `removed: false`.
60
80
  - `delete_creator_folder` permanently deletes the folder and its memberships. Require an explicitly identified folder and confirmation of permanent deletion in the conversation; a general cleanup request is insufficient.
61
81
  - Sharing uses `workspace` (same-Workspace sign-in required) or `public` (anyone with the link). Return the canonical URL from the response. Switching from `public` back to `workspace` keeps the same URL and restricts access; it does not disable the link.
62
82
 
@@ -64,11 +84,13 @@ Audience results contain country, age-range, and gender distributions. Fake-foll
64
84
 
65
85
  `export_creator_folder` exports existing favorites across all platforms using a saved-date range: `today`, `7_days`, or `30_days`. Ask for the range if omitted; all-time export is unsupported. Use the user's IANA time zone when known, otherwise `UTC` and state that choice; select `zh-CN` or `en-US` for the requested output language. Exports retain hiCreator's 100,000-row and file-size safeguards.
66
86
 
87
+ Optional `columns` selects export fields in array order, e.g. `[{"key":"username"},{"key":"median_view_count","label":"Median views"}]`. Omit it to use the server's default columns. Use keys advertised by the tool schema; keys must be unique, and optional labels must be nonempty and contain no control characters. Twitter uses `median_view_count` / `average_view_count`; the video platforms use `median_play_count` / `average_play_count`. Missing platform-specific values remain blank. Chinese output uses `zh-CN`; other requested languages use `en-US`. Custom labels are used literally, without translation. Export reads stored data and does not refresh creators or purchase email lookups.
88
+
67
89
  Save the returned job ID and call `get_creator_folder_export` for that same folder and job. A queued or running job is pending, not failed. On success, return the temporary download URL and filename; on failure, report the error. Do not create a second export while the first is pending. An optional `request_id` permits replay of the exact same export request; never reuse it for changed parameters.
68
90
 
69
91
  ## Cost and retries
70
92
 
71
- Default prices: search and similar search are 0.5 credits per returned creator (the requested limit is reserved first); email lookup is 0.2 credits per valid profile URL even when no email is found; creator and video details are 0.1 credits per successful query. A new audience report is 40 credits and a new fake-follower report is 30 credits. Eligible reports already purchased by the Workspace may be reused without a new purchase; the server determines eligibility. Configured server pricing and returned billing information take precedence over these defaults.
93
+ Default prices: Twitter search and similar search cost 2 credits per returned creator; the other three platforms cost 0.5 (the requested limit is reserved first and unused quantity is refunded). Reverse email lookup costs 1 credit per matched email, regardless of how many creators match; unmatched emails are refunded. Other defaults: email lookup is 0.2 credits per valid profile URL even when no email is found; creator and video details are 0.1 credits per successful query. A new audience report is 40 credits and a new fake-follower report is 30 credits. Eligible reports already purchased by the Workspace may be reused without a new purchase; the server determines eligibility. Configured server pricing and returned billing information take precedence over these defaults.
72
94
 
73
95
  Mention billing before a paid operation or when asked. State the operation and quantity; if the user has already specified them, proceed without asking again. Do not automatically add paid analysis or enrichment to a general discovery request.
74
96
 
@@ -0,0 +1,50 @@
1
+ # Reverse lookup by email
2
+
3
+ Call `find_creators_by_email` with `{ "email": "contact@example.com" }`. Exactly one email is accepted. The HTTP equivalent is `POST /openapi/v1/creators/by-email` with the same body.
4
+
5
+ ```json
6
+ {
7
+ "requestId": "<request-id>",
8
+ "billingRequestId": "<billing-request-id>",
9
+ "data": {
10
+ "email": "contact@example.com",
11
+ "creators": []
12
+ }
13
+ }
14
+ ```
15
+
16
+ `data.creators` contains all matching stored profiles in stable `platform`, `id` order. `[]` is a successful no-match response. There is no result cap, truncation flag, pagination, or nested `creator` object. The result is a stored snapshot; it does not trigger live collection, profile enrichment, or mail-contact registration. Requests are independent and billed once per matching email, not per creator. An unmatched email or execution failure is refunded. Do not automatically retry an uncertain paid result.
17
+
18
+ All creator fields below are always present. Only `id`, `platform`, and `email` are non-nullable. Other fields are `null` when missing or inapplicable to the platform. Known empty lists remain `[]`. Numeric zero and boolean false are real values. The identity is the pair `platform` + `id`; an ID alone is not unique across platforms.
19
+
20
+ | Field | Type | Meaning |
21
+ |---|---|---|
22
+ | `id` | string | Stable platform user/channel ID; use with `platform` for favorites. |
23
+ | `platform` | string | `instagram`, `youtube`, `tiktok`, or `twitter`. |
24
+ | `username` | string or null | Platform handle. |
25
+ | `fullName` | string or null | Display name. |
26
+ | `avatarUrl` | URL or null | Public stored avatar. |
27
+ | `profileUrl` | URL or null | Creator profile URL; YouTube uses the channel ID. |
28
+ | `youtubeChannelUrl` | URL or null | YouTube channel-ID URL; null on other platforms. |
29
+ | `youtubeHandleUrl` | URL or null | YouTube @handle URL; null on other platforms. |
30
+ | `biography` | string or null | Public biography. |
31
+ | `email` | string | Matched normalized public email, equal to `data.email`. |
32
+ | `externalLinks` | URL[] or null | Deduplicated public HTTP(S) links from the stored email and profile data. |
33
+ | `followerCount` | integer or null | Followers/subscribers. |
34
+ | `followingCount` | integer or null | Accounts followed; null for YouTube. |
35
+ | `region` | string or null | Creator region. |
36
+ | `language` | string or null | Primary content language. |
37
+ | `youtubeHasOfficialEmail` | boolean or null | Whether YouTube shows its official email contact button; unknown or other platforms are null. |
38
+ | `averagePlayCount`, `medianPlayCount` | number or null | Video-platform play metrics; null for Twitter. |
39
+ | `averageViewCount`, `medianViewCount` | number or null | Twitter post-view metrics; null on other platforms. |
40
+ | `averageEngagementRate`, `medianEngagementRate` | number or null | Engagement ratios; 0.045 means 4.5%. |
41
+ | `gender`, `ageRange`, `ethnicity` | string or null | Profile demographic classifications; unknown/inapplicable values are null. |
42
+ | `faceVisibility` | string or null | Face-visibility classification; null for Twitter. |
43
+ | `accountType` | string or null | Twitter account type; unknown or other platforms are null. |
44
+ | `accountPositioning` | string[] or null | Video-platform positioning labels or Twitter roles. |
45
+ | `aiDescription` | string or null | Stored AI creator description. |
46
+ | `lastOriginalPublishedAt` | ISO 8601 UTC or null | Latest stored Twitter original post time. |
47
+ | `lastActivityAt` | ISO 8601 UTC or null | Latest stored Twitter activity time. |
48
+ | `capturedAt` | ISO 8601 UTC or null | Stored Twitter capture time, not this request's fetch time. |
49
+
50
+ The flat field names align with public creator search and Creator Lookup. There is no similarity `score`, since this is an exact email match. Nulls do not authorize a separate paid enrichment call.
@@ -0,0 +1,33 @@
1
+ # Twitter / X search
2
+
3
+ Use `platform: "twitter"` for `search_creators_ai` and `find_similar_creators`. Each accepts `limit` 1–100 (default 40). Similar search uses `target_account` instead of `query`; accept `https://x.com/handle`, `https://twitter.com/handle`, or a handle.
4
+
5
+ ```json
6
+ {
7
+ "platform": "twitter",
8
+ "query": "Independent developers sharing practical software-building advice",
9
+ "limit": 10,
10
+ "filters": {
11
+ "regions": ["US", "GB"],
12
+ "minFollowers": 1000,
13
+ "twitter": {
14
+ "accountTypes": ["person"],
15
+ "viewCountMetric": "median",
16
+ "minViewCount": 1000,
17
+ "originalPublishedWithinDays": 30
18
+ }
19
+ }
20
+ }
21
+ ```
22
+
23
+ Common country, excluded-country, language, follower-count, gender, ethnicity, and Workspace deduplication filters still apply. Supported nested `twitter` filters:
24
+
25
+ - `accountTypes`: person, brand, company, media, organization, community, aggregator, bot, unknown.
26
+ - `ageRanges`: use the tool's advertised values; `not_applicable` is a meaningful value for non-person accounts.
27
+ - `viewCountMetric`: average or median (default average), with `minViewCount` / `maxViewCount`.
28
+ - `minFollowingCount` / `maxFollowingCount`.
29
+ - `originalPublishedWithinDays`: 1–30; `activeWithinDays` and `capturedWithinDays`: 1–365.
30
+
31
+ Do not use `minPlayCount`, `maxPlayCount`, `playCountMetric`, `creatorTypes`, or `faceVisibilities` for Twitter. Do not send `filters.twitter` for video platforms. Prefer structured fields to embedding numeric constraints only in the query.
32
+
33
+ Twitter views are sampled original-post impressions, not video plays or unique viewers. Activity time, original-post publication time, and profile capture time are different signals. A search may return fewer than the requested limit; describe that result rather than silently issuing another paid search. Native Twitter search uses the existing public synchronous API; it does not promise the product's asynchronous multi-direction search/review workflow or force a profile refresh.
package/src/mcp-check.js CHANGED
@@ -3,6 +3,7 @@ const EXPECTED_TOOLS = [
3
3
  "search_creators_ai",
4
4
  "find_similar_creators",
5
5
  "find_creator_email",
6
+ "find_creators_by_email",
6
7
  "get_creator_detail",
7
8
  "get_video_detail",
8
9
  "create_audience_analysis",