constile-mcp 0.0.0-stage → 0.1.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 CCC2C Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,61 @@
1
- # Temporary Holding Version
1
+ # constile-mcp
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ An MCP server that gives an AI assistant a `read_article` tool. When a
4
+ publisher's site answers with a Constile offer, the tool handles it the way
5
+ the person chose: accept it, ask first, or decline.
6
+
7
+ Constile lets publishers keep being paid when assistants read their pages.
8
+ Instead of the page's ads, the person sees one labeled sponsored message in the
9
+ assistant's answer, and the advertiser pays the publisher. It costs the person
10
+ nothing and shares nothing about them.
11
+
12
+ ## Add it to your assistant
13
+
14
+ It needs Node.js 20 or later. In any client that runs MCP servers over stdio,
15
+ add a server that runs `npx -y constile-mcp`. For example, in a client's
16
+ `mcpServers` settings:
17
+
18
+ ```json
19
+ {
20
+ "mcpServers": {
21
+ "constile": { "command": "npx", "args": ["-y", "constile-mcp"] }
22
+ }
23
+ }
24
+ ```
25
+
26
+ In Claude Code:
27
+
28
+ ```sh
29
+ claude mcp add constile -- npx -y constile-mcp
30
+ ```
31
+
32
+ ## Tools
33
+
34
+ | Tool | What it does |
35
+ |---|---|
36
+ | `read_article` | Fetches a page. On a Constile offer, it follows the person's saved choice, or returns the question to ask them. After an accepted offer, it returns the page with the sponsored message to show. |
37
+ | `report_sponsored_message` | Tells the publisher the message is in the answer (`prepared`) or that the person has seen it (`delivered`). |
38
+ | `set_constile_preference` | Saves the person's choice: `accept`, `ask`, or `decline`. Call it only when the person says so. |
39
+ | `get_constile_preference` | Returns the saved choice. |
40
+
41
+ The default choice is `ask`: the assistant asks the person before it accepts an
42
+ offer, and can save their answer so it doesn't ask again.
43
+
44
+ ## Settings
45
+
46
+ | Variable | What it sets | Default |
47
+ |---|---|---|
48
+ | `CONSTILE_PREFS` | Where the person's choice is saved | `~/.config/constile/preferences.json` |
49
+ | `CONSTILE_UA` | The user agent the tool fetches with | `ConstileMCP-User/0.1 (+https://constile.app)` |
50
+
51
+ The server keeps only that choice, on the person's own machine. It sends
52
+ nothing about the person or the conversation.
53
+
54
+ ## Support
55
+
56
+ Write to <hello@constile.app>. For building your own agent, see
57
+ [`constile-agent-sdk`](https://www.npmjs.com/package/constile-agent-sdk).
58
+
59
+ ## License
60
+
61
+ MIT. See LICENSE.