@riv-lc/areacode-mcp 0.1.0 → 0.2.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
@@ -40,6 +40,7 @@ That's it — restart your client and the tools below are available.
40
40
  | --- | --- |
41
41
  | `lookup_area_code` | Country, state/province, cities, time zone, current local time, overlays, nearby codes |
42
42
  | `lookup_phone_number` | Parse/validate a NANP number → area code, region, local time, E.164 |
43
+ | `lookup_carrier` | Assigned carrier, line type (wireless/landline), and rate center for a number's NPA-NXX block (block-allocation data, **not** live/ported; covers nearly every US/Canada code) |
43
44
  | `area_codes_for_city` | Area codes serving a city (optionally disambiguated by state) |
44
45
  | `area_codes_for_state` | Every area code in a US state or Canadian province |
45
46
  | `is_scam_area_code` | Whether an area code is associated with scams + spoofing context |
package/dist/index.js CHANGED
@@ -49,6 +49,11 @@ server.registerTool("lookup_phone_number", {
49
49
  description: "Parse and validate a US/Canada (NANP) phone number. Returns whether the format is valid, the E.164 form, the area code, the likely region and time zone, and the current local time there. Area-code level only — NOT the caller's identity, exact location, or live carrier; caller ID can be spoofed.",
50
50
  inputSchema: { number: z.string().describe('A phone number in any format, e.g. "+1 702-555-0199".') },
51
51
  }, ({ number }) => api(`/phone/${enc(number)}`));
52
+ server.registerTool("lookup_carrier", {
53
+ title: "Look up a number's carrier (assigned block)",
54
+ description: "Look up the carrier, line type (wireless/landline), and rate center that a US/Canada number's NPA-NXX block was assigned to — covering nearly every active area code. Based on public block-allocation data, NOT a live lookup: if the number was ported the current carrier differs. Not for caller identity, fraud, or FCRA decisions.",
55
+ inputSchema: { number: z.string().describe('A US/Canada phone number, e.g. "212-555-0143".') },
56
+ }, ({ number }) => api(`/carrier/${enc(number)}`));
52
57
  server.registerTool("area_codes_for_city", {
53
58
  title: "Area codes for a city",
54
59
  description: "List the area codes that serve a US or Canadian city. Optionally pass a state/province to disambiguate cities that share a name.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riv-lc/areacode-mcp",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "North American (NANP) area-code & phone-number intelligence for AI agents — an MCP server backed by areacode.fyi.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -19,7 +19,11 @@
19
19
  "scripts": {
20
20
  "build": "tsc",
21
21
  "prepare": "npm run build",
22
- "start": "node dist/index.js"
22
+ "start": "node dist/index.js",
23
+ "release": "npm version patch",
24
+ "release:minor": "npm version minor",
25
+ "release:major": "npm version major",
26
+ "postversion": "git push --follow-tags"
23
27
  },
24
28
  "keywords": [
25
29
  "mcp",