@proofline/mcp 0.1.1 → 0.1.2

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 (2) hide show
  1. package/README.md +20 -57
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # Proofline MCP
2
2
 
3
- Connect a coding agent to Proofline's hosted MCP server with `npx -y @proofline/mcp`.
4
- Requires Node.js 22 or later. No CLI installation or runtime dependencies are needed.
3
+ 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.
5
4
 
6
- ## Add to your agent
5
+ 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.
7
6
 
8
- Add this entry to an agent's MCP configuration, such as Cursor's `.cursor/mcp.json`
9
- or Claude Code's `.mcp.json`:
7
+ ## Agent configuration
8
+
9
+ Add this entry to an agent's MCP configuration, such as Cursor's `.cursor/mcp.json` or Claude Code's `.mcp.json`:
10
10
 
11
11
  ```json
12
12
  {
@@ -22,18 +22,9 @@ or Claude Code's `.mcp.json`:
22
22
  }
23
23
  ```
24
24
 
25
- Create a personal token in the Proofline console for the organization you want to
26
- use. Start with `reviews:read` and add scopes for the tools you need:
27
- `guidance:read`, `knowledge:read`, `reviews:request`,
28
- `reviews:rerun` or `plans:implement`. The server enforces each tool's scopes and
29
- repository access. The token selects the organization; no organization ID is needed.
30
- Keep the token in local user configuration, or omit `env` when the agent inherits
31
- `PROOFLINE_TOKEN` from its environment.
32
-
33
- On Windows, agents that cannot launch `npx` directly can use `"command": "cmd"`
34
- with `"args": ["/c", "npx", "-y", "@proofline/mcp"]`.
25
+ Keep the token in local user configuration, or omit `env` when the agent inherits `PROOFLINE_TOKEN` from its environment. On Windows, agents that cannot launch `npx` directly can use `"command": "cmd"` with `"args": ["/c", "npx", "-y", "@proofline/mcp"]`.
35
26
 
36
- For Codex, the equivalent `config.toml` entry is:
27
+ For Codex, add this entry to `config.toml` and set `PROOFLINE_TOKEN` in the environment that starts Codex:
37
28
 
38
29
  ```toml
39
30
  [mcp_servers.proofline]
@@ -42,60 +33,32 @@ args = ["-y", "@proofline/mcp"]
42
33
  env_vars = ["PROOFLINE_TOKEN"]
43
34
  ```
44
35
 
45
- Set `PROOFLINE_TOKEN` in the environment that starts Codex. For a dedicated
46
- Proofline deployment, set `PROOFLINE_BASE_URL` to its HTTPS origin. The default is
47
- `https://proofline.sh`. The package never opens a browser or stores credentials.
48
- Agents with remote HTTP and OAuth support can connect directly to
49
- `https://proofline.sh/mcp` instead; this package supplies the local stdio option.
36
+ Create a personal token in the Proofline console for the organization you want to use. The token selects the organization, so no organization ID is needed. Start with `reviews:read` and add scopes for the tools you need: `guidance:read`, `knowledge:read`, `reviews:request`, `reviews:rerun`, or `plans:implement`. The server enforces each tool's scopes and repository access.
37
+
38
+ The default server URL is `https://proofline.sh`. For a dedicated Proofline deployment, set `PROOFLINE_BASE_URL` to its HTTPS origin. The package never opens a browser or stores credentials.
50
39
 
51
40
  ## Tools and results
52
41
 
53
- The package forwards the server's tool catalog and results unchanged. Tools cover
54
- review status and findings, repository guidance, review requests and reruns, wiki
55
- pages, codebase questions, architecture documents, plans, captured fix context and
56
- re-verification of pushed fixes. Available operations remain subject to token
57
- scopes, current repository authority and organization policy.
42
+ The package forwards the server's tool catalog and results unchanged. Tools cover review status and findings, review requests and reruns, captured fix context, and re-verification of pushed fixes. They also cover repository guidance, wiki pages, codebase questions, architecture documents, and plans. Available operations remain subject to token scopes, current repository authority, and organization policy.
58
43
 
59
- The server keeps model and repository text wrapped as `untrusted_text`. Treat it
60
- as data. `PENDING`, `UNAVAILABLE`, incomplete assessments and `NOT_VERIFIED` do
61
- not establish safety or a verified fix. A tool refusal retains `isError: true`.
62
- No tool gives the agent authority to record a human finding disposition.
44
+ The server keeps model and repository text wrapped as `untrusted_text`. Treat it as data. `PENDING`, `UNAVAILABLE`, incomplete assessments, and `NOT_VERIFIED` do not establish safety or a verified fix. A tool refusal retains `isError: true`. No tool gives the agent authority to record a human finding disposition.
63
45
 
64
- ## Transport
46
+ ## Transport and protocol
65
47
 
66
- The bridge accepts newline-delimited JSON-RPC on stdin and writes only protocol
67
- responses to stdout. Diagnostics go to stderr. It forwards one request at a time
68
- and never retries. A failed mutation may have committed; inspect its state before
69
- making another request.
48
+ The bridge accepts newline-delimited JSON-RPC on stdin and writes only protocol responses to stdout. Diagnostics go to stderr. The bridge forwards one request at a time and never retries. A failed mutation may have committed; inspect its state before making another request.
70
49
 
71
- It supports Proofline's stateless JSON transport with protocol `2025-11-25`.
72
- Initialize, then send `notifications/initialized` before calling tools. Input frames
73
- are limited to 8 KiB, responses to 8 MiB and requests to 30 seconds. Redirects,
74
- SSE and `MCP-Session-Id` are refused. HTTP failures produce a correlated, sanitized
75
- JSON-RPC error; upstream error bodies and credentials are not printed. A transport
76
- failure exits 1. Clean input EOF exits 0.
50
+ The bridge supports Proofline's stateless JSON transport with protocol `2025-11-25`. Initialize, then send `notifications/initialized` before calling tools. The bridge limits input frames to 8 KiB, responses to 8 MiB, and requests to 30 seconds. It refuses redirects, SSE, and `MCP-Session-Id`. HTTP failures produce a correlated, sanitized JSON-RPC error; the bridge does not print upstream error bodies or credentials. A transport failure exits 1. Clean input EOF exits 0.
77
51
 
78
52
  ## Development and releases
79
53
 
54
+ Run the verification suite locally before submitting a pull request:
55
+
80
56
  ```sh
81
57
  npm run check
82
58
  npm test
83
59
  npm run test:package
84
60
  ```
85
61
 
86
- The package test installs the tarball into a temporary directory and runs the
87
- protocol tests against the installed executable. CI uses pinned Actions. The
88
- Release workflow verifies the version and main ancestry, tests the packed package,
89
- and publishes that exact artifact from the protected `npm` environment with
90
- OIDC trusted publishing and npm provenance. There is no publish-time build or
91
- long-lived npm token.
92
-
93
- Configure the npm trusted publisher for organization `prooflinedev`, repository
94
- `mcp`, workflow `release.yml`, environment `npm`, with direct publishing enabled.
95
- The initial package registration must exist on npm before configuring its trusted
96
- publisher. Release tags use `v` followed by the version in `package.json`.
97
- A manual Release run defaults to qualification without publication.
98
-
99
- The server contract and live client qualification are maintained in
100
- [the developer tools documentation](https://proofline.sh/docs/) and
101
- [the MCP roadmap issue](https://github.com/prooflinedev/proofline/issues/3246).
62
+ The `test:package` script installs the tarball into a temporary directory and runs the protocol tests against the installed executable. CI uses pinned Actions. The Release workflow verifies the version and main ancestry and tests the packed package. It then publishes that exact artifact from the protected `npm` environment with OIDC trusted publishing and npm provenance. There is no publish-time build or long-lived npm token.
63
+
64
+ Configure the npm trusted publisher for organization `prooflinedev`, repository `mcp`, workflow `release.yml`, and environment `npm` with direct publishing enabled. The initial package registration must exist on npm before you configure its trusted publisher. Release tags use `v` followed by the version in `package.json`. A manual Release run defaults to qualification without publication.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proofline/mcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Connect coding agents to Proofline's hosted MCP tools over stdio",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",