dogpolicies-mcp 0.4.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/CHANGELOG.md CHANGED
@@ -10,6 +10,40 @@ The data inside the package has its own date (`as_of` in every result). A
10
10
  new package version ships a new snapshot; the server also refreshes from the
11
11
  site on its own when the network allows.
12
12
 
13
+ ## 0.4.1 - 2026-11-08
14
+
15
+ The first roadmap release (`docs/ROADMAP.md` in the data repository: R-01,
16
+ R-02, R-03). The misses log and the directory's numbers said where the first
17
+ week leaked; this closes those leaks.
18
+
19
+ Added
20
+
21
+ - Forty-eight more neighborhoods as search centers for `dogpolicies_near`,
22
+ `dogpolicies_plan_trip` and every tool that takes a place: the rest of the
23
+ San Fernando Valley and the Westside, Koreatown, Downtown Los Angeles, Echo
24
+ Park, Los Feliz, Highland Park, San Francisco's districts (the Mission, the
25
+ Castro, Noe Valley, the Marina, the Richmond and Sunset districts,
26
+ Haight-Ashbury, SoMa, North Beach and more), Rockridge and Temescal, Midtown
27
+ Sacramento, Willow Glen, La Jolla, Pacific Beach, Mission Beach, Hillcrest,
28
+ North Park, Point Loma, the Gaslamp Quarter, the Las Vegas Strip, Summerlin
29
+ and Downtown Las Vegas; and the names people say for them ("Venice Beach",
30
+ "DTLA", "K-town", "the Mission", "SoMa", "the Strip", "Fremont Street").
31
+ - `createServer(ctx, { build })`: an optional build id, reported after the
32
+ package version as semver build metadata (`0.4.1+6a974ec`). The hosted
33
+ server sets it to the deployed commit so a deploy can recognize its own code;
34
+ the stdio server reports the bare version as before.
35
+
36
+ Hosted server (dogpolicies.com/mcp/)
37
+
38
+ - A POST whose `Accept` header lists only `application/json`, or nothing, is
39
+ answered instead of refused with 406; a CORS preflight is answered; a person
40
+ who opens the address in a browser sees how to connect instead of a 405.
41
+ - After `initialize` the server hands out an `mcp-session-id` that carries the
42
+ client's own name and version as a label (no state behind it; the transport
43
+ stays stateless), so the usage tally names clients on every protocol
44
+ version, not only the newest. A request without one is named by a
45
+ User-Agent that identifies an assistant.
46
+
13
47
  ## 0.4.0 - 2026-11-07
14
48
 
15
49
  Answers, not errors. A question the data cannot answer now comes back as a
package/docs/tools.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Tool reference
2
2
 
3
- dogpolicies-mcp 0.4.0, generated by `node scripts/docs.mjs` from the live definitions. Every tool returns readable markdown by default and structured JSON with `response_format: "json"`; every result starts with a citation and ends with the attribution line.
3
+ dogpolicies-mcp 0.4.1, generated by `node scripts/docs.mjs` from the live definitions. Every tool returns readable markdown by default and structured JSON with `response_format: "json"`; every result starts with a citation and ends with the attribution line.
4
4
 
5
5
  ## `dogpolicies_search_places`
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dogpolicies-mcp",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "MCP server for verified dog rules at California and Nevada parks, beaches, trails, hotels, campgrounds and restaurant patios: leash rules, pet fees, weight limits, trip planning, every fact with its official source and the date it was checked.",
5
5
  "mcpName": "io.github.xultrax-web/dogpolicies-mcp",
6
6
  "type": "module",
package/server.json CHANGED
@@ -8,13 +8,13 @@
8
8
  "url": "https://github.com/xultrax-web/dogpolicies-mcp",
9
9
  "source": "github"
10
10
  },
11
- "version": "0.4.0",
11
+ "version": "0.4.1",
12
12
  "packages": [
13
13
  {
14
14
  "registryType": "npm",
15
15
  "registryBaseUrl": "https://registry.npmjs.org",
16
16
  "identifier": "dogpolicies-mcp",
17
- "version": "0.4.0",
17
+ "version": "0.4.1",
18
18
  "runtimeHint": "npx",
19
19
  "transport": {
20
20
  "type": "stdio"
@@ -147,10 +147,17 @@ const instructions = (ctx) =>
147
147
  // The site address without a trailing slash, for links in the server info.
148
148
  const siteRoot = (ctx) => ctx.graph.site.url.replace(/\/+$/, "");
149
149
 
150
- /** A fresh MCP server over a runtime, for one connection. */
150
+ /**
151
+ * A fresh MCP server over a runtime, for one connection.
152
+ * @param {object} [options]
153
+ * @param {string} [options.build] the build this server was deployed from (a
154
+ * git commit); reported after the package version as semver build metadata,
155
+ * `0.4.0+6a974ec`, so a deploy can tell its own code from the previous one
156
+ * when the package version did not change. Absent for the stdio server.
157
+ */
151
158
  export function createServer(
152
159
  ctx,
153
- { onToolCall, onToolResult, aliasPrefix } = {},
160
+ { onToolCall, onToolResult, aliasPrefix, build } = {},
154
161
  ) {
155
162
  ctx._stats.servers++;
156
163
  return createToolServer({
@@ -161,7 +168,7 @@ export function createServer(
161
168
  identity: {
162
169
  name: SERVER_NAME,
163
170
  title: SERVER_TITLE,
164
- version: PACKAGE_VERSION,
171
+ version: build ? `${PACKAGE_VERSION}+${build}` : PACKAGE_VERSION,
165
172
  // Shown beside the connector in Claude, ChatGPT and other clients that read it.
166
173
  websiteUrl: `${siteRoot(ctx)}/`,
167
174
  icons: [
@@ -385,10 +385,20 @@ function region(graph, name, state) {
385
385
 
386
386
  /** A neighborhood of a city we cover, as a search center (NEIGHBORHOODS). */
387
387
  function neighborhood(name, state) {
388
+ // the asked name arrives with hyphens and dots read as spaces; names and aliases are read the same way
389
+ const key = (s) =>
390
+ norm(s)
391
+ .replace(/[.,_-]/g, " ")
392
+ .replace(/\s+/g, " ")
393
+ .trim();
388
394
  const n = NEIGHBORHOODS.find(
389
- (x) => norm(x.name) === name && (!state || x.state === state),
395
+ (x) =>
396
+ (key(x.name) === name || (x.aliases ?? []).some((a) => key(a) === name)) &&
397
+ (!state || x.state === state),
390
398
  );
391
- return n ? { ...n, kind: "city" } : null;
399
+ if (!n) return null;
400
+ const { aliases: _aliases, ...center } = n;
401
+ return { ...center, kind: "city" };
392
402
  }
393
403
 
394
404
  /**
@@ -669,7 +679,9 @@ export function editDistance(a, b, limit) {
669
679
  /**
670
680
  * Neighborhoods people search by name that have no places of their own in the
671
681
  * data yet, each inside a city we cover: used only as a search center (the
672
- * radius finds the real places around it). Centers are approximate.
682
+ * radius finds the real places around it). Centers are approximate. `aliases`
683
+ * are the other names people say ("Venice Beach", "DTLA", "the Mission");
684
+ * 0.4.1 added the second ring (roadmap R-01) from the misses log.
673
685
  */
674
686
  const NEIGHBORHOODS = [
675
687
  {
@@ -727,6 +739,7 @@ const NEIGHBORHOODS = [
727
739
  state: "CA",
728
740
  lat: 33.985,
729
741
  lon: -118.4695,
742
+ aliases: ["venice beach"],
730
743
  },
731
744
  {
732
745
  name: "San Pedro",
@@ -742,4 +755,353 @@ const NEIGHBORHOODS = [
742
755
  lat: 34.0869,
743
756
  lon: -118.2702,
744
757
  },
758
+ {
759
+ name: "Koreatown",
760
+ county: "Los Angeles",
761
+ state: "CA",
762
+ lat: 34.0577,
763
+ lon: -118.3009,
764
+ aliases: ["k-town", "ktown"],
765
+ },
766
+ {
767
+ name: "Downtown Los Angeles",
768
+ county: "Los Angeles",
769
+ state: "CA",
770
+ lat: 34.0407,
771
+ lon: -118.2468,
772
+ aliases: ["dtla", "downtown la"],
773
+ },
774
+ {
775
+ name: "Echo Park",
776
+ county: "Los Angeles",
777
+ state: "CA",
778
+ lat: 34.0782,
779
+ lon: -118.2606,
780
+ },
781
+ {
782
+ name: "Los Feliz",
783
+ county: "Los Angeles",
784
+ state: "CA",
785
+ lat: 34.1064,
786
+ lon: -118.2886,
787
+ },
788
+ {
789
+ name: "Highland Park",
790
+ county: "Los Angeles",
791
+ state: "CA",
792
+ lat: 34.1115,
793
+ lon: -118.1926,
794
+ },
795
+ {
796
+ name: "Eagle Rock",
797
+ county: "Los Angeles",
798
+ state: "CA",
799
+ lat: 34.1394,
800
+ lon: -118.2111,
801
+ },
802
+ {
803
+ name: "Westwood",
804
+ county: "Los Angeles",
805
+ state: "CA",
806
+ lat: 34.0633,
807
+ lon: -118.4456,
808
+ },
809
+ {
810
+ name: "Brentwood",
811
+ county: "Los Angeles",
812
+ state: "CA",
813
+ lat: 34.052,
814
+ lon: -118.4732,
815
+ },
816
+ {
817
+ name: "Pacific Palisades",
818
+ county: "Los Angeles",
819
+ state: "CA",
820
+ lat: 34.048,
821
+ lon: -118.526,
822
+ },
823
+ {
824
+ name: "Playa del Rey",
825
+ county: "Los Angeles",
826
+ state: "CA",
827
+ lat: 33.955,
828
+ lon: -118.442,
829
+ },
830
+ {
831
+ name: "Mar Vista",
832
+ county: "Los Angeles",
833
+ state: "CA",
834
+ lat: 34.003,
835
+ lon: -118.432,
836
+ },
837
+ {
838
+ name: "Boyle Heights",
839
+ county: "Los Angeles",
840
+ state: "CA",
841
+ lat: 34.0339,
842
+ lon: -118.2046,
843
+ },
844
+ {
845
+ name: "Woodland Hills",
846
+ county: "Los Angeles",
847
+ state: "CA",
848
+ lat: 34.1684,
849
+ lon: -118.6059,
850
+ },
851
+ {
852
+ name: "Tarzana",
853
+ county: "Los Angeles",
854
+ state: "CA",
855
+ lat: 34.1734,
856
+ lon: -118.5537,
857
+ },
858
+ {
859
+ name: "Reseda",
860
+ county: "Los Angeles",
861
+ state: "CA",
862
+ lat: 34.2011,
863
+ lon: -118.5363,
864
+ },
865
+ {
866
+ name: "Canoga Park",
867
+ county: "Los Angeles",
868
+ state: "CA",
869
+ lat: 34.2011,
870
+ lon: -118.5979,
871
+ },
872
+ {
873
+ name: "Chatsworth",
874
+ county: "Los Angeles",
875
+ state: "CA",
876
+ lat: 34.2572,
877
+ lon: -118.6013,
878
+ },
879
+ {
880
+ name: "Granada Hills",
881
+ county: "Los Angeles",
882
+ state: "CA",
883
+ lat: 34.265,
884
+ lon: -118.5225,
885
+ },
886
+ {
887
+ name: "Belmont Shore",
888
+ county: "Los Angeles",
889
+ state: "CA",
890
+ lat: 33.759,
891
+ lon: -118.137,
892
+ },
893
+ {
894
+ name: "Mission District",
895
+ county: "San Francisco",
896
+ state: "CA",
897
+ lat: 37.7599,
898
+ lon: -122.4148,
899
+ aliases: ["the mission", "mission"],
900
+ },
901
+ {
902
+ name: "Castro",
903
+ county: "San Francisco",
904
+ state: "CA",
905
+ lat: 37.7609,
906
+ lon: -122.435,
907
+ aliases: ["the castro"],
908
+ },
909
+ {
910
+ name: "Noe Valley",
911
+ county: "San Francisco",
912
+ state: "CA",
913
+ lat: 37.7502,
914
+ lon: -122.4337,
915
+ },
916
+ {
917
+ name: "Marina District",
918
+ county: "San Francisco",
919
+ state: "CA",
920
+ lat: 37.803,
921
+ lon: -122.436,
922
+ aliases: ["the marina"],
923
+ },
924
+ {
925
+ name: "Richmond District",
926
+ county: "San Francisco",
927
+ state: "CA",
928
+ lat: 37.78,
929
+ lon: -122.483,
930
+ aliases: ["inner richmond", "outer richmond"],
931
+ },
932
+ {
933
+ name: "Sunset District",
934
+ county: "San Francisco",
935
+ state: "CA",
936
+ lat: 37.753,
937
+ lon: -122.49,
938
+ aliases: ["the sunset", "inner sunset", "outer sunset"],
939
+ },
940
+ {
941
+ name: "Haight-Ashbury",
942
+ county: "San Francisco",
943
+ state: "CA",
944
+ lat: 37.7692,
945
+ lon: -122.4481,
946
+ aliases: ["the haight", "haight"],
947
+ },
948
+ {
949
+ name: "Bernal Heights",
950
+ county: "San Francisco",
951
+ state: "CA",
952
+ lat: 37.741,
953
+ lon: -122.415,
954
+ },
955
+ {
956
+ name: "Potrero Hill",
957
+ county: "San Francisco",
958
+ state: "CA",
959
+ lat: 37.7605,
960
+ lon: -122.4,
961
+ },
962
+ {
963
+ name: "South of Market",
964
+ county: "San Francisco",
965
+ state: "CA",
966
+ lat: 37.7785,
967
+ lon: -122.4056,
968
+ aliases: ["soma"],
969
+ },
970
+ {
971
+ name: "Dogpatch",
972
+ county: "San Francisco",
973
+ state: "CA",
974
+ lat: 37.758,
975
+ lon: -122.389,
976
+ },
977
+ {
978
+ name: "Pacific Heights",
979
+ county: "San Francisco",
980
+ state: "CA",
981
+ lat: 37.7925,
982
+ lon: -122.4382,
983
+ },
984
+ {
985
+ name: "Nob Hill",
986
+ county: "San Francisco",
987
+ state: "CA",
988
+ lat: 37.793,
989
+ lon: -122.4161,
990
+ },
991
+ {
992
+ name: "North Beach",
993
+ county: "San Francisco",
994
+ state: "CA",
995
+ lat: 37.806,
996
+ lon: -122.4103,
997
+ },
998
+ {
999
+ name: "Hayes Valley",
1000
+ county: "San Francisco",
1001
+ state: "CA",
1002
+ lat: 37.7759,
1003
+ lon: -122.4245,
1004
+ },
1005
+ {
1006
+ name: "Rockridge",
1007
+ county: "Alameda",
1008
+ state: "CA",
1009
+ lat: 37.844,
1010
+ lon: -122.252,
1011
+ },
1012
+ {
1013
+ name: "Temescal",
1014
+ county: "Alameda",
1015
+ state: "CA",
1016
+ lat: 37.834,
1017
+ lon: -122.263,
1018
+ },
1019
+ {
1020
+ name: "Midtown Sacramento",
1021
+ county: "Sacramento",
1022
+ state: "CA",
1023
+ lat: 38.572,
1024
+ lon: -121.471,
1025
+ aliases: ["midtown"],
1026
+ },
1027
+ {
1028
+ name: "Willow Glen",
1029
+ county: "Santa Clara",
1030
+ state: "CA",
1031
+ lat: 37.308,
1032
+ lon: -121.89,
1033
+ },
1034
+ {
1035
+ name: "La Jolla",
1036
+ county: "San Diego",
1037
+ state: "CA",
1038
+ lat: 32.8328,
1039
+ lon: -117.2713,
1040
+ },
1041
+ {
1042
+ name: "Pacific Beach",
1043
+ county: "San Diego",
1044
+ state: "CA",
1045
+ lat: 32.7978,
1046
+ lon: -117.2403,
1047
+ },
1048
+ {
1049
+ name: "Mission Beach",
1050
+ county: "San Diego",
1051
+ state: "CA",
1052
+ lat: 32.77,
1053
+ lon: -117.252,
1054
+ },
1055
+ {
1056
+ name: "Hillcrest",
1057
+ county: "San Diego",
1058
+ state: "CA",
1059
+ lat: 32.748,
1060
+ lon: -117.163,
1061
+ },
1062
+ {
1063
+ name: "North Park",
1064
+ county: "San Diego",
1065
+ state: "CA",
1066
+ lat: 32.741,
1067
+ lon: -117.129,
1068
+ },
1069
+ {
1070
+ name: "Point Loma",
1071
+ county: "San Diego",
1072
+ state: "CA",
1073
+ lat: 32.74,
1074
+ lon: -117.24,
1075
+ },
1076
+ {
1077
+ name: "Gaslamp Quarter",
1078
+ county: "San Diego",
1079
+ state: "CA",
1080
+ lat: 32.7114,
1081
+ lon: -117.16,
1082
+ aliases: ["gaslamp", "downtown san diego"],
1083
+ },
1084
+ {
1085
+ name: "The Strip",
1086
+ county: "Clark",
1087
+ state: "NV",
1088
+ lat: 36.1147,
1089
+ lon: -115.1728,
1090
+ aliases: ["las vegas strip", "vegas strip"],
1091
+ },
1092
+ {
1093
+ name: "Summerlin",
1094
+ county: "Clark",
1095
+ state: "NV",
1096
+ lat: 36.186,
1097
+ lon: -115.321,
1098
+ },
1099
+ {
1100
+ name: "Downtown Las Vegas",
1101
+ county: "Clark",
1102
+ state: "NV",
1103
+ lat: 36.1699,
1104
+ lon: -115.1398,
1105
+ aliases: ["fremont street"],
1106
+ },
745
1107
  ];