@proofline/mcp 0.1.2 → 0.1.3

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.
Files changed (3) hide show
  1. package/README.md +10 -0
  2. package/package.json +1 -1
  3. package/src/bridge.js +19 -5
package/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Proofline MCP
2
2
 
3
+ [![Listed on clauderules.net](https://clauderules.net/api/badge/proofline-jano)](https://clauderules.net/mcp/proofline-jano)
4
+ [![AllMCPs Verified](https://allmcps.com/api/badge/proofline)](https://allmcps.com/mcp/proofline?verify=ba98ddfd-7072-4e8b-8a59-4d790121f66a)
5
+
3
6
  Connect a coding agent to Proofline's hosted MCP server over local stdio with `npx -y @proofline/mcp`. The package requires Node.js 22 or later and needs no CLI installation or runtime dependencies. Agents with remote HTTP and OAuth support can connect directly to `https://proofline.sh/mcp` instead; this package supplies the local stdio option. See the [developer tools documentation](https://proofline.sh/docs/) for the hosted API.
4
7
 
5
8
  This repository is the published distribution for the Proofline MCP bridge. The bridge discovers tools from the hosted MCP server at runtime. Pull requests are welcome for the hand-written bridge in `src/`, package scripts in `scripts/`, and tests in `tests/`. Open an [issue](https://github.com/prooflinedev/mcp/issues) for changes to the tool catalog, tool behavior, or workflows.
@@ -51,6 +54,13 @@ The bridge supports Proofline's stateless JSON transport with protocol `2025-11-
51
54
 
52
55
  ## Development and releases
53
56
 
57
+ The hosted endpoint's Official MCP Registry entry is maintained in `server.json`.
58
+ Run the **Publish MCP Registry** workflow from `main` after reviewing a metadata
59
+ change. It validates the file and publishes with GitHub OIDC; no stored registry
60
+ token is needed. Published versions are immutable, so increment the registry
61
+ version before publishing changed metadata. This workflow does not publish the
62
+ npm bridge.
63
+
54
64
  Run the verification suite locally before submitting a pull request:
55
65
 
56
66
  ```sh
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proofline/mcp",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Connect coding agents to Proofline's hosted MCP tools over stdio",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",
package/src/bridge.js CHANGED
@@ -98,6 +98,13 @@ async function post(frame, config, protocol, notification) {
98
98
  }
99
99
  }
100
100
 
101
+ function failure(error, id) {
102
+ return { jsonrpc: "2.0", id, error: {
103
+ code: error.code, message: error.message,
104
+ data: { category: error.category, ...(error.status ? { http_status: error.status } : {}) },
105
+ } };
106
+ }
107
+
101
108
  /** Serial, bounded bridge for Proofline's stateless JSON MCP endpoint. Never retries. */
102
109
  export async function bridge(input, output, diagnostic, config) {
103
110
  let protocol;
@@ -123,7 +130,17 @@ export async function bridge(input, output, diagnostic, config) {
123
130
  if (initializing ? protocol || notification :
124
131
  initialized ? !protocol || ready || !notification :
125
132
  !ready && !(protocol && request.method === "ping" && !notification)) {
126
- throw new BridgeError("lifecycle");
133
+ // A client may probe before the handshake, as Claude Code does with
134
+ // `server/discover`. Refuse that message and keep the session. MCP
135
+ // allows `ping` at any time, but the server refuses requests without
136
+ // a negotiated version, so an early ping is answered here.
137
+ if (!notification) {
138
+ await send(output, !protocol && request.method === "ping" ?
139
+ { jsonrpc: "2.0", id, result: {} } : failure(new BridgeError("lifecycle"), id));
140
+ }
141
+ id = null;
142
+ notification = false;
143
+ continue;
127
144
  }
128
145
  const response = await post(frame, config, protocol, notification);
129
146
  if (!notification) {
@@ -149,10 +166,7 @@ export async function bridge(input, output, diagnostic, config) {
149
166
  const safe = error instanceof BridgeError ? error : new BridgeError("transport");
150
167
  if (!notification) {
151
168
  try {
152
- await send(output, { jsonrpc: "2.0", id, error: {
153
- code: safe.code, message: safe.message,
154
- data: { category: safe.category, ...(safe.status ? { http_status: safe.status } : {}) },
155
- } });
169
+ await send(output, failure(safe, id));
156
170
  } catch { /* A closed output cannot receive the failure. */ }
157
171
  }
158
172
  diagnostic.write(`${safe.message}\n`);