@cyanheads/congressgov-mcp-server 0.3.29 → 0.3.30

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/AGENTS.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Agent Protocol
2
2
 
3
3
  **Server:** congressgov-mcp-server
4
- **Version:** 0.3.29
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.9.21`
4
+ **Version:** 0.3.30
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.10.6`
6
6
  **Engines:** Bun ≥1.3.0, Node ≥24.0.0
7
7
  **MCP SDK:** `@modelcontextprotocol/sdk` ^1.29.0
8
8
  **Zod:** ^4.4.3
package/CLAUDE.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Agent Protocol
2
2
 
3
3
  **Server:** congressgov-mcp-server
4
- **Version:** 0.3.29
5
- **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.9.21`
4
+ **Version:** 0.3.30
5
+ **Framework:** [@cyanheads/mcp-ts-core](https://www.npmjs.com/package/@cyanheads/mcp-ts-core) `^0.10.6`
6
6
  **Engines:** Bun ≥1.3.0, Node ≥24.0.0
7
7
  **MCP SDK:** `@modelcontextprotocol/sdk` ^1.29.0
8
8
  **Zod:** ^4.4.3
package/Dockerfile CHANGED
@@ -37,10 +37,12 @@ WORKDIR /usr/src/app
37
37
  ENV NODE_ENV=production
38
38
 
39
39
  # OCI image metadata (https://github.com/opencontainers/image-spec/blob/main/annotations.md)
40
+ ARG APP_VERSION
40
41
  LABEL org.opencontainers.image.title="congressgov-mcp-server"
41
42
  LABEL org.opencontainers.image.description="Access U.S. congressional data - bills, votes, members, committees - through MCP. STDIO & Streamable HTTP."
42
43
  LABEL org.opencontainers.image.source="https://github.com/cyanheads/congressgov-mcp-server"
43
44
  LABEL org.opencontainers.image.licenses="Apache-2.0"
45
+ LABEL org.opencontainers.image.version="${APP_VERSION}"
44
46
 
45
47
  # Copy dependency manifests
46
48
  COPY package.json bun.lock ./
@@ -75,6 +77,11 @@ COPY --from=build /usr/src/app/dist ./dist
75
77
  # Create and set permissions for the log directory, assigning ownership to the 'bun' user.
76
78
  RUN mkdir -p /var/log/congressgov-mcp-server && chown -R bun:bun /var/log/congressgov-mcp-server
77
79
 
80
+ # Writable data dirs for on-disk SQLite stores (catalog index / mirror paths),
81
+ # owned by the runtime user. Mount a volume over either in production.
82
+ RUN mkdir -p /usr/src/app/.cache /usr/src/app/.mirror \
83
+ && chown -R bun:bun /usr/src/app/.cache /usr/src/app/.mirror
84
+
78
85
  # Switch to the non-root user
79
86
  USER bun
80
87
 
@@ -95,5 +102,8 @@ ENV MCP_FORCE_CONSOLE_LOGGING="true"
95
102
  # Expose the port the server listens on
96
103
  EXPOSE ${MCP_HTTP_PORT}
97
104
 
105
+ # Health check using a bun-native fetch (slim image ships no curl/wget)
106
+ HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 CMD bun -e "fetch('http://localhost:'+(process.env.MCP_HTTP_PORT??'3010')+'/healthz').then((r)=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
107
+
98
108
  # The command to start the server
99
109
  CMD ["bun", "run", "dist/index.js"]
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  <div align="center">
9
9
 
10
- [![Version](https://img.shields.io/badge/Version-0.3.29-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/congressgov-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^1.29.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/congressgov-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/congressgov-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^6.0.3-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.3.2-blueviolet.svg?style=flat-square)](https://bun.sh/)
10
+ [![Version](https://img.shields.io/badge/Version-0.3.30-blue.svg?style=flat-square)](./CHANGELOG.md) [![License](https://img.shields.io/badge/License-Apache%202.0-orange.svg?style=flat-square)](./LICENSE) [![Docker](https://img.shields.io/badge/Docker-ghcr.io-2496ED?style=flat-square&logo=docker&logoColor=white)](https://github.com/users/cyanheads/packages/container/package/congressgov-mcp-server) [![MCP SDK](https://img.shields.io/badge/MCP%20SDK-^1.29.0-green.svg?style=flat-square)](https://modelcontextprotocol.io/) [![npm](https://img.shields.io/npm/v/@cyanheads/congressgov-mcp-server?style=flat-square&logo=npm&logoColor=white)](https://www.npmjs.com/package/@cyanheads/congressgov-mcp-server) [![TypeScript](https://img.shields.io/badge/TypeScript-^6.0.3-3178C6.svg?style=flat-square)](https://www.typescriptlang.org/) [![Bun](https://img.shields.io/badge/Bun-v1.3.2-blueviolet.svg?style=flat-square)](https://bun.sh/)
11
11
 
12
12
  </div>
13
13
 
package/dist/index.js CHANGED
@@ -33,6 +33,8 @@ const REPO_ROOT = 'https://github.com/cyanheads/congressgov-mcp-server';
33
33
  const srcUrl = (kind, file) => `${REPO_ROOT}/blob/main/src/mcp-server/${kind}/definitions/${file}`;
34
34
  const withSource = (def, kind, file) => ({ ...def, sourceUrl: srcUrl(kind, file) });
35
35
  await createApp({
36
+ name: 'congressgov-mcp-server',
37
+ title: 'congressgov-mcp-server',
36
38
  tools: [
37
39
  withSource(billLookupTool, 'tools', 'bill-lookup.tool.ts'),
38
40
  withSource(enactedLawsTool, 'tools', 'enacted-laws.tool.ts'),
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","source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AU,CAAC,uBAAuB,EAAE,WAAW,EAAE,8BAA8B,CAAC;QAChF,UAAU,CAAC,iBAAiB,EAAE,WAAW,EAAE,wBAAwB,CAAC;QACpE,UAAU,CAAC,cAAc,EAAE,WAAW,EAAE,oBAAoB,CAAC;QAC7D,UAAU,CAAC,YAAY,EAAE,WAAW,EAAE,kBAAkB,CAAC;QACzD,UAAU,CAAC,iBAAiB,EAAE,WAAW,EAAE,uBAAuB,CAAC;KACpE;IACD,OAAO,EAAE;QACP,UAAU,CAAC,kBAAkB,EAAE,SAAS,EAAE,yBAAyB,CAAC;QACpE,UAAU,CAAC,yBAAyB,EAAE,SAAS,EAAE,gCAAgC,CAAC;KACnF;IACD,YAAY,EAAE,moBAAmoB;IACjpB,OAAO,EAAE;QACP,QAAQ,EAAE,SAAS;QACnB,OAAO,EAAE,sEAAsE;QAC/E,WAAW,EAAE,KAAK;KACnB;IACD,KAAK;QACH,eAAe,EAAE,CAAC;QAClB,qBAAqB,EAAE,CAAC;IAC1B,CAAC;CACF,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cyanheads/congressgov-mcp-server",
3
- "version": "0.3.29",
3
+ "version": "0.3.30",
4
4
  "description": "Access U.S. congressional data - bills, votes, members, committees - through MCP. STDIO & Streamable HTTP.",
5
5
  "mcpName": "io.github.cyanheads/congressgov-mcp-server",
6
6
  "type": "module",
@@ -22,7 +22,7 @@
22
22
  "format:unsafe": "biome check --write --unsafe .",
23
23
  "lint:mcp": "bun scripts/lint-mcp.ts",
24
24
  "lint:packaging": "bun scripts/lint-packaging.ts",
25
- "bundle": "bun run build && npx -y @anthropic-ai/mcpb pack . dist/congressgov-mcp-server.mcpb",
25
+ "bundle": "bun run build && npx -y @anthropic-ai/mcpb pack . dist/congressgov-mcp-server.mcpb && bun scripts/clean-mcpb.ts dist/congressgov-mcp-server.mcpb",
26
26
  "changelog:build": "bun scripts/build-changelog.ts",
27
27
  "changelog:check": "bun scripts/build-changelog.ts --check",
28
28
  "test": "vitest run",
@@ -77,14 +77,14 @@
77
77
  "access": "public"
78
78
  },
79
79
  "dependencies": {
80
- "@cyanheads/mcp-ts-core": "^0.9.21",
80
+ "@cyanheads/mcp-ts-core": "^0.10.6",
81
81
  "fast-xml-parser": "^5.8.0",
82
82
  "pino-pretty": "^13.1.3",
83
83
  "zod": "^4.4.3"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@biomejs/biome": "^2.4.16",
87
- "@types/node": "^25.9.1",
87
+ "@types/node": "^25.9.3",
88
88
  "depcheck": "^1.4.7",
89
89
  "ignore": "^7.0.5",
90
90
  "tsc-alias": "^1.8.17",
package/server.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/cyanheads/congressgov-mcp-server",
7
7
  "source": "github"
8
8
  },
9
- "version": "0.3.29",
9
+ "version": "0.3.30",
10
10
  "remotes": [
11
11
  {
12
12
  "type": "streamable-http",
@@ -19,7 +19,7 @@
19
19
  "registryBaseUrl": "https://registry.npmjs.org",
20
20
  "identifier": "@cyanheads/congressgov-mcp-server",
21
21
  "runtimeHint": "bun",
22
- "version": "0.3.29",
22
+ "version": "0.3.30",
23
23
  "packageArguments": [
24
24
  {
25
25
  "type": "positional",
@@ -54,7 +54,7 @@
54
54
  "registryBaseUrl": "https://registry.npmjs.org",
55
55
  "identifier": "@cyanheads/congressgov-mcp-server",
56
56
  "runtimeHint": "bun",
57
- "version": "0.3.29",
57
+ "version": "0.3.30",
58
58
  "packageArguments": [
59
59
  {
60
60
  "type": "positional",