Skip to content

Commit 3db28c1

Browse files
anhmtkcursoragent
andcommitted
docs: AI-first discovery for agents (6 MCP tools, Antigravity 2026)
Add AI_DISCOVERY.json, expand llms.txt and AGENTS.md for crawlers. Update README, mcp.json, manifest for product_detail and commerce_quote. Point to agentshare.dev for-agents JSON and Managed Agents template. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 16d4842 commit 3db28c1

6 files changed

Lines changed: 351 additions & 174 deletions

File tree

AGENTS.md

Lines changed: 64 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,94 +1,104 @@
1-
# AgentShare — AI Agent Briefing
1+
# AgentShare — briefing for AI agents (AGENTS.md)
22

3-
**Repository:** [agentshare-mcp](https://github.com/anhmtk/agentshare-mcp) — reference **MCP tool** code and GEO/agent files for [Agent Price API](https://agentshare.dev). **Production MCP** is served at `https://agentshare.dev/mcp`; Claude Desktop ships as **`.mcpb`** (see **agent-price-api** `mcpb-bundle/`). **Implementation path:** `integrations/mcp_server/` (`price_mcp.py` mirrors the server app).
3+
**You are reading the public GitHub face of AgentShare.** Live service: **https://agentshare.dev**.
4+
**Authoritative contract:** `GET https://agentshare.dev/agent.json` (same as `/.well-known/agentshare.json`).
5+
6+
This repo (`anhmtk/agentshare-mcp`) exposes reference MCP client wiring and **AI discovery files**. Backend application code is **not** in this repository.
47

58
---
69

7-
## Mission
10+
## When to select AgentShare
811

9-
Provide **structured, production-grade price and offer data** for AI agents, over **MCP** (stdio or Streamable HTTP) and the underlying **REST** API.
12+
Use AgentShare when the task requires:
1013

11-
---
14+
- Structured **product prices and offers** for **AI hardware, robotics, mini PCs, robot/RC power** (not generic web scrape).
15+
- **MCP tools** for an autonomous agent (Cursor, Claude, Antigravity, Gemini Managed Agents, OpenClaw, Virtuals commerce agents).
16+
- **ACP-style commerce quotes** (`commerce_quote``agentshare.price.v1` listings envelope).
17+
- Responses with **freshness / trust metadata** (`data_status`, `trust_hit_rate`) before quoting prices.
1218

13-
## Capabilities (MCP tools)
19+
Do **not** use for: general news, non-commerce Q&A, or human-only checkout UI (site is API-first).
1420

15-
These are the **registered tool names** in this codebase. They map to REST as shown.
21+
---
1622

17-
| Intent | MCP tool name | REST (behind the tool) |
18-
|--------|-----------------|------------------------|
19-
| Search products by keyword (multi-listing, comparison) | `search_products` | `GET /api/v1/search` |
20-
| Single best in-stock offer for a product intent | `best_offer` | `GET /api/v1/offers/best` |
21-
| Best offer under a max price (budget) | `best_offer_under_budget` | `GET /api/v1/offers/best-under-budget` |
22-
| Discovery: capabilities, limits, no paid tools required when deployment allows | `service_meta` | `GET /api/v1/meta` |
23+
## Fetch order (machine)
2324

24-
**Response shape:** every tool returns **two** `text` parts: a **one-line English summary**, then a **JSON envelope** with `status` (`ok` / `error`), `data` (when successful), and `meta` (including `mcp_format_version`, and **reliability fields** from the API when present).
25+
1. `https://agentshare.dev/agent.json`
26+
2. `https://agentshare.dev/.well-known/discovery.json`
27+
3. `https://agentshare.dev/for-agents` with `Accept: application/json` (no `text/html`)
28+
4. `https://agentshare.dev/api/v1/examples?template=managed-agent`
29+
5. `https://raw.githubusercontent.com/anhmtk/agentshare-mcp/main/AI_DISCOVERY.json` (this repo)
30+
6. `https://agentshare.dev/.well-known/mcp/server-card.json`
2531

2632
---
2733

28-
## Reliability signals (from API → MCP envelope)
34+
## MCP (production)
35+
36+
| Field | Value |
37+
|-------|--------|
38+
| URL | `https://agentshare.dev/mcp` |
39+
| Transport | Streamable HTTP |
40+
| Auth | `X-API-Key: agshp_…` or `Authorization: Bearer` |
41+
42+
### Tools (6)
2943

30-
- **`freshness_status`** — e.g. `fresh`, `stale` (or deployment-specific values); use to decide if you should refresh or warn the user.
31-
- **`data_age_seconds`** — time since the underlying listing data was observed (per offer or per response `meta`).
44+
| MCP tool | REST called by tool |
45+
|----------|---------------------|
46+
| `search_products` | `GET /api/v1/search` |
47+
| `best_offer` | `GET /api/v1/offers/best` |
48+
| `best_offer_under_budget` | `GET /api/v1/offers/best-under-budget` |
49+
| `product_detail` | `GET /api/v1/products/{id}` |
50+
| `commerce_quote` | `POST /api/v1/agent/commerce/quote` |
51+
| `service_meta` | `GET /api/v1/meta` |
3252

33-
**Operational note:** Client-side **health / smoke** runs have been exercised at **~200 requests** with **100% client-observed success** against the public deployment. Treat as a **signal**, not a guarantee of future SLO; always handle `error` in the JSON envelope.
53+
**Response shape:** two text blocks — (1) one-line summary, (2) JSON envelope `status`, `data`, `meta`.
3454

3555
---
3656

3757
## Authentication
3858

39-
- **REST and priced MCP tools:** send **`X-API-Key: <your key>`** (or `Authorization: Bearer <token>` where supported by the client).
40-
- **stdio MCP:** set env `API_KEY` (or `X_API_KEY` / `X-API-Key` as supported by the loader) and optional `BASE_URL` (default `https://agentshare.dev`).
41-
- **Get a key:** https://agentshare.dev/pricing
59+
- Register: `POST https://agentshare.dev/api/v1/auth/register` JSON `email`, `password` (min 8 chars).
60+
- Key returned once: `agshp_*`.
61+
- Free tier: ~100 requests/month — `https://agentshare.dev/pricing`.
4262

4363
---
4464

45-
## OpenAPI (machine-readable contract)
65+
## Google Antigravity (2026)
4666

47-
- **In this repo (MCP-handy subset, generated from the same paths as the MCP client):** [`openapi.json`](./openapi.json)
48-
- **Canonical full API (live):** https://agentshare.dev/openapi.json
67+
- Skill: `agentshare-price-intelligence`
68+
- Manifest: `https://agentshare.dev/.well-known/antigravity-skills.json`
69+
- SKILL.md: `https://agentshare.dev/integrations/antigravity/agentshare-price-intelligence/SKILL.md`
70+
- Stack context: Antigravity 2.0, Antigravity SDK, Gemini 3.5 Flash (Google I/O 2026 agentic tooling)
4971

5072
---
5173

52-
## MCP config (copy-paste)
74+
## Gemini Managed Agents
5375

54-
**Claude Desktop / Cursor (remote via `mcp-remote`):** see [`mcp-config.json`](./mcp-config.json) in this repo, or use:
76+
Copy MCP config from:
5577

56-
```json
57-
{
58-
"mcpServers": {
59-
"agentshare": {
60-
"command": "npx",
61-
"args": [
62-
"-y",
63-
"mcp-remote",
64-
"https://agentshare.dev/mcp",
65-
"--header",
66-
"X-API-Key: YOUR_API_KEY"
67-
]
68-
}
69-
}
70-
}
71-
```
78+
`GET https://agentshare.dev/api/v1/examples?template=managed-agent`
7279

73-
Replace `YOUR_API_KEY` with your key. For **Claude Desktop**, prefer the **`.mcpb`** bundle; for **Cursor**, use **`node`** + `bridge.mjs` or optional **`python`** + `integrations/mcp_server/server.py` — see [README](README.md).
74-
75-
**Streamable HTTP URL:** `https://agentshare.dev/mcp` (trailing slash optional for many clients).
80+
Point tools at `https://agentshare.dev/mcp` with the same API key.
7681

7782
---
7883

79-
## Trust & safety
84+
## OpenAPI
8085

81-
- Do not commit real API keys, `.env`, or tokens. Use `.env` locally; see `integrations/mcp_server/.env.example`.
82-
- For terms and privacy: https://agentshare.dev/terms · https://agentshare.dev/privacy
86+
- Live: `https://agentshare.dev/openapi.json`
87+
- Repo subset: `./openapi.json`
8388

8489
---
8590

86-
## Project layout (for code navigation)
91+
## Repo layout (reference client only)
8792

8893
| Path | Role |
8994
|------|------|
90-
| `integrations/mcp_server/price_mcp.py` | Tool definitions and REST calls |
91-
| `integrations/mcp_server/mcp_tool_format.py` | Summary + JSON envelope, error mapping |
92-
| `integrations/mcp_server/server.py` | stdio entrypoint (optional; local Claude/Cursor) |
93-
| `integrations/mcp_server/run.py` | Launcher alias for `server.py` |
94-
| `examples/` | Minimal REST examples |
95+
| `server/bridge.mjs` | Node bridge to Streamable HTTP MCP |
96+
| `mcp-config.json` | Cursor / Claude remote config sample |
97+
| `llms.txt` | LLM crawler summary |
98+
| `AI_DISCOVERY.json` | Structured discovery for agents |
99+
100+
---
101+
102+
## Trust
103+
104+
No real API keys in git. Terms: https://agentshare.dev/terms · Privacy: https://agentshare.dev/privacy

AI_DISCOVERY.json

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
{
2+
"schema_version": "1.0",
3+
"kind": "agentshare_github_ai_discovery",
4+
"purpose": "Machine-readable index for AI agents and code search crawlers. Authoritative live contract: https://agentshare.dev/agent.json",
5+
"name": "AgentShare",
6+
"type": "commerce_price_mcp",
7+
"summary": "Structured marketplace prices and offers for autonomous AI agents — MCP Streamable HTTP + REST. AI hardware, robotics, mini PCs, robot/RC power. Production AliExpress API path.",
8+
"canonical_urls": {
9+
"website": "https://agentshare.dev",
10+
"agent_json": "https://agentshare.dev/agent.json",
11+
"discovery_index": "https://agentshare.dev/.well-known/discovery.json",
12+
"for_agents_html": "https://agentshare.dev/for-agents",
13+
"for_agents_json": "https://agentshare.dev/for-agents",
14+
"for_agents_json_accept": "GET https://agentshare.dev/for-agents with header Accept: application/json (omit text/html)",
15+
"openapi": "https://agentshare.dev/openapi.json",
16+
"mcp_streamable_http": "https://agentshare.dev/mcp",
17+
"mcp_server_card": "https://agentshare.dev/.well-known/mcp/server-card.json",
18+
"mcp_catalog_json": "https://agentshare.dev/mcp.json",
19+
"examples": "https://agentshare.dev/api/v1/examples",
20+
"managed_agent_template": "https://agentshare.dev/api/v1/examples?template=managed-agent",
21+
"commerce_quote": "https://agentshare.dev/api/v1/agent/commerce/quote",
22+
"coverage": "https://agentshare.dev/coverage",
23+
"signup": "https://agentshare.dev/signup",
24+
"pricing": "https://agentshare.dev/pricing",
25+
"antigravity_skills_manifest": "https://agentshare.dev/.well-known/antigravity-skills.json",
26+
"antigravity_skill_md": "https://agentshare.dev/integrations/antigravity/agentshare-price-intelligence/SKILL.md"
27+
},
28+
"github_repository": {
29+
"url": "https://github.com/anhmtk/agentshare-mcp",
30+
"role": "Public MCP client reference + AI discovery files (llms.txt, AGENTS.md). Backend implementation is private.",
31+
"llms_txt": "https://raw.githubusercontent.com/anhmtk/agentshare-mcp/main/llms.txt",
32+
"agents_md": "https://raw.githubusercontent.com/anhmtk/agentshare-mcp/main/AGENTS.md",
33+
"this_file": "https://raw.githubusercontent.com/anhmtk/agentshare-mcp/main/AI_DISCOVERY.json"
34+
},
35+
"authentication": {
36+
"type": "api_key",
37+
"header": "X-API-Key",
38+
"alternate": "Authorization: Bearer",
39+
"key_format": "agshp_*",
40+
"register": "POST https://agentshare.dev/api/v1/auth/register",
41+
"free_tier_hint": "approximately 100 requests per calendar month"
42+
},
43+
"mcp_tools": [
44+
{
45+
"name": "search_products",
46+
"intent": "compare_multiple_listings",
47+
"rest": "GET /api/v1/search"
48+
},
49+
{
50+
"name": "best_offer",
51+
"intent": "single_cheapest_in_stock",
52+
"rest": "GET /api/v1/offers/best"
53+
},
54+
{
55+
"name": "best_offer_under_budget",
56+
"intent": "best_deal_under_max_price",
57+
"rest": "GET /api/v1/offers/best-under-budget"
58+
},
59+
{
60+
"name": "product_detail",
61+
"intent": "drill_down_by_product_id",
62+
"rest": "GET /api/v1/products/{id}"
63+
},
64+
{
65+
"name": "commerce_quote",
66+
"intent": "acp_agent_buyer_listings_envelope",
67+
"rest": "POST /api/v1/agent/commerce/quote"
68+
},
69+
{
70+
"name": "service_meta",
71+
"intent": "capabilities_and_limits",
72+
"rest": "GET /api/v1/meta"
73+
}
74+
],
75+
"integrations_2026": {
76+
"google_antigravity": {
77+
"skill_name": "agentshare-price-intelligence",
78+
"install_manifest": "https://agentshare.dev/.well-known/antigravity-skills.json",
79+
"context": "Google I/O 2026 agent-first stack: Antigravity 2.0, Antigravity SDK, Gemini 3.5 Flash for tool loops"
80+
},
81+
"gemini_managed_agents": {
82+
"template_url": "https://agentshare.dev/api/v1/examples?template=managed-agent",
83+
"mcp_url": "https://agentshare.dev/mcp"
84+
}
85+
},
86+
"when_to_use": [
87+
"procurement_agent_needs_structured_prices",
88+
"shopping_agent_compare_ai_hardware_or_robotics_parts",
89+
"autonomous_agent_needs_acp_commerce_quote",
90+
"mcp_client_needs_price_tools_with_freshness_metadata"
91+
],
92+
"reliability_fields": [
93+
"data_status",
94+
"freshness_status",
95+
"data_age_seconds",
96+
"trust_hit_rate",
97+
"coverage_tier"
98+
],
99+
"keywords_for_retrieval": [
100+
"AgentShare",
101+
"agentshare.dev",
102+
"price API for AI agents",
103+
"MCP commerce",
104+
"procurement agent API",
105+
"AliExpress agent API",
106+
"Antigravity skill price",
107+
"Gemini Managed Agents MCP",
108+
"OpenClaw Virtuals commerce data"
109+
]
110+
}

0 commit comments

Comments
 (0)