@turfbuild/turf-mcp-server 0.0.0-stage → 1.5.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 +178 -0
- package/NOTICE +93 -0
- package/README.md +162 -2
- package/STANDARD-TERMS.md +134 -0
- package/bin/turf-mcp-server.js +79 -0
- package/package.json +37 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
# Turf Community Edition License
|
|
2
|
+
|
|
3
|
+
Version 1.0 · Last updated 2026-11-23 · Permanent URL https://turf.build/license/v1/
|
|
4
|
+
|
|
5
|
+
Copyright Turf LLC (https://turf.build). All rights reserved.
|
|
6
|
+
|
|
7
|
+
Turf is proprietary software. To accept the Turf license terms (version 1.0,
|
|
8
|
+
https://turf.build/license/v1/), run `turf license accept` or set TURF_ACCEPT_EULA=yes.
|
|
9
|
+
Free for individuals, education and small businesses within the Community limits.
|
|
10
|
+
Government and larger organizations need a commercial license.
|
|
11
|
+
|
|
12
|
+
**If you have a commercial agreement.** If you or your organization has a signed Order Form
|
|
13
|
+
or Pilot Agreement with Turf LLC for the Software, or an order for the Software placed
|
|
14
|
+
through a reseller that Turf LLC has authorized, and it is still in effect, that agreement
|
|
15
|
+
governs your use. These Community Terms do not apply to you.
|
|
16
|
+
|
|
17
|
+
**Parties.** This Agreement is between Turf LLC, an Oregon limited liability company
|
|
18
|
+
("Provider") and the person or organization that accepts it ("Customer"). If you accept for
|
|
19
|
+
an organization, you confirm that you are authorized to bind it, and "Customer" means that
|
|
20
|
+
organization.
|
|
21
|
+
|
|
22
|
+
**How Customer accepts.** Customer accepts this Agreement by running `turf license accept`,
|
|
23
|
+
by answering yes when the Software asks, or by setting TURF_ACCEPT_EULA=yes or an equivalent
|
|
24
|
+
flag or configuration value, or by having a script, tool or AI agent do any of these on its
|
|
25
|
+
behalf. No signature is needed.
|
|
26
|
+
|
|
27
|
+
**What Customer confirms.** By accepting, Customer represents that its use is a Permitted
|
|
28
|
+
Use, and that whoever gave the acceptance had authority to do so. Customer repeats the first
|
|
29
|
+
statement each time it uses the Software under these Community Terms.
|
|
30
|
+
|
|
31
|
+
## Order Form
|
|
32
|
+
|
|
33
|
+
**Framework Terms.** These Community Terms incorporate the Common Paper Software License
|
|
34
|
+
Standard Terms Version 1.1, posted at
|
|
35
|
+
https://commonpaper.com/standards/software-license-agreement/1.1, by reference. A copy is in
|
|
36
|
+
the STANDARD-TERMS.md file distributed with the Software. Those Standard Terms and the Key
|
|
37
|
+
Terms below are the Framework Terms. Where this page and the Standard Terms differ, this page
|
|
38
|
+
controls. Capitalized words have the meanings given on this page or in the Standard Terms.
|
|
39
|
+
|
|
40
|
+
**Software.** Turf Community Edition: Turf as Provider distributes it in executable form,
|
|
41
|
+
namely the `turf`, `turf-mcp-server`, `turf-engine`, `turf-builtin-provider` and `turf-ui`
|
|
42
|
+
programs, the container images that hold them, and any Updates Provider makes available.
|
|
43
|
+
|
|
44
|
+
**Order Date.** The Effective Date.
|
|
45
|
+
|
|
46
|
+
**Subscription Period.** Month to month from the Effective Date, renewing automatically until
|
|
47
|
+
this Agreement ends as described under Changes to the Standard Terms.
|
|
48
|
+
|
|
49
|
+
**Fees.** None.
|
|
50
|
+
|
|
51
|
+
**Permitted Uses.** Customer's own internal purposes, including building and operating
|
|
52
|
+
infrastructure and services that Customer provides to its own customers, and only:
|
|
53
|
+
|
|
54
|
+
1. while Customer is an Eligible User and stays within the Community Limits; or
|
|
55
|
+
2. for Evaluation.
|
|
56
|
+
|
|
57
|
+
**Eligible User.** Any of the following:
|
|
58
|
+
|
|
59
|
+
1. an individual using the Software for personal, non-commercial purposes;
|
|
60
|
+
2. an accredited educational institution, and its students and staff, using the Software for
|
|
61
|
+
teaching or non-commercial research;
|
|
62
|
+
3. a non-commercial open source project;
|
|
63
|
+
4. a Small Business.
|
|
64
|
+
|
|
65
|
+
**Small Business.** An organization that, together with its Affiliates, has fewer than 100
|
|
66
|
+
employees and contractors and had less than US$10,000,000 in revenue in its last fiscal year.
|
|
67
|
+
|
|
68
|
+
**Government.** A Government Entity is not an Eligible User at any size, except as an
|
|
69
|
+
educational institution above. A Government Entity is a national, regional or local government
|
|
70
|
+
body or agency, or an organization that a government owns or controls.
|
|
71
|
+
|
|
72
|
+
**Community Limits.** Counting all use of the Software by Customer and its Affiliates:
|
|
73
|
+
|
|
74
|
+
1. no more than 10 Billable Workspaces; and
|
|
75
|
+
2. no more than 32 GPUs in the infrastructure the Software manages, whether in production or
|
|
76
|
+
not.
|
|
77
|
+
|
|
78
|
+
A Production Workspace is a workspace that manages production infrastructure. Workspaces used
|
|
79
|
+
only for development, staging, testing or previewing a change are not Production Workspaces
|
|
80
|
+
and are not counted. Billable Workspaces is the greater of (a) the number of Production
|
|
81
|
+
Workspaces and (b) the total number of resources that Production Workspaces manage, divided by
|
|
82
|
+
1,000 and rounded up. Ten Billable Workspaces therefore allows up to 10 Production Workspaces
|
|
83
|
+
managing up to 10,000 resources between them, at any size each.
|
|
84
|
+
|
|
85
|
+
**Evaluation.** Any organization, including a Government Entity, may use the Software for
|
|
86
|
+
non-production evaluation for 30 days from its first use.
|
|
87
|
+
|
|
88
|
+
**Grace period.** If Customer stops being an Eligible User, or exceeds the Community Limits,
|
|
89
|
+
it may keep using the Software for 90 days while it arranges a commercial license.
|
|
90
|
+
|
|
91
|
+
**Use for others.** Running the Software as a contractor, integrator or agent for an
|
|
92
|
+
organization that is not an Eligible User, to manage that organization's infrastructure, is
|
|
93
|
+
not a Permitted Use. Providing Customer's own infrastructure or services to such an
|
|
94
|
+
organization as Customer's customer is permitted.
|
|
95
|
+
|
|
96
|
+
**License Limits.** Customer will not (a) offer the Software itself to others as a hosted or
|
|
97
|
+
managed service; or (b) embed or bundle the Software in a product or service supplied to
|
|
98
|
+
others. Commercial, OEM and redistribution licenses are available from Provider.
|
|
99
|
+
|
|
100
|
+
**Warranty Period.** None. Sections 5.2 to 5.4 of the Standard Terms do not apply. The
|
|
101
|
+
Software is provided as is.
|
|
102
|
+
|
|
103
|
+
**Backups.** Customer is responsible for backing up its infrastructure state, configurations
|
|
104
|
+
and data.
|
|
105
|
+
|
|
106
|
+
**Services.** None. No support or maintenance is included.
|
|
107
|
+
|
|
108
|
+
**Deletion Procedure.** Customer will uninstall and delete the Software and stop using it.
|
|
109
|
+
|
|
110
|
+
**Usage Data.** The Software reports usage data to Provider by default, as described at
|
|
111
|
+
https://turf.build/telemetry/. Customer may turn this off by setting TURF_TELEMETRY=off. The
|
|
112
|
+
Software records Customer's acceptance (the terms version, the time and the method) on
|
|
113
|
+
Customer's system, and reports the terms version and the method to Provider when usage
|
|
114
|
+
reporting is on.
|
|
115
|
+
|
|
116
|
+
## Key Terms
|
|
117
|
+
|
|
118
|
+
**Provider.** Turf LLC, an Oregon limited liability company.
|
|
119
|
+
|
|
120
|
+
**Customer.** The person or organization that accepts this Agreement.
|
|
121
|
+
|
|
122
|
+
**Effective Date.** The date Customer first accepts this Agreement.
|
|
123
|
+
|
|
124
|
+
**Governing Law.** The laws of the State of Oregon.
|
|
125
|
+
|
|
126
|
+
**Chosen Courts.** The state courts located in Lincoln County, Oregon, and the United States
|
|
127
|
+
District Court for the District of Oregon.
|
|
128
|
+
|
|
129
|
+
**Covered Claims.** None. Section 8 (Indemnification) of the Standard Terms does not apply.
|
|
130
|
+
|
|
131
|
+
**General Cap Amount.** US$100.
|
|
132
|
+
|
|
133
|
+
**Notice Address.** For Provider: licensing@turf.build. For Customer: any email address
|
|
134
|
+
Customer has given Provider. If there is none, Provider may give notice by posting at the
|
|
135
|
+
Permanent URL or in the Software.
|
|
136
|
+
|
|
137
|
+
## Changes to the Standard Terms
|
|
138
|
+
|
|
139
|
+
1. **Acceptance (Section 10.16 and the definition of Cover Page).** Acceptance as described
|
|
140
|
+
on this page is electronic acceptance of this Cover Page by Customer. Provider accepts by
|
|
141
|
+
publishing it.
|
|
142
|
+
2. **Public terms (Section 9 and the definition of Confidential Information).** The existence
|
|
143
|
+
and content of this page are public and are not Confidential Information.
|
|
144
|
+
3. **New versions (Section 10.2).** Provider may publish new versions of these Community
|
|
145
|
+
Terms. Each version stays at its own permanent URL. Each release of the Software names the
|
|
146
|
+
version that governs it, and Customer accepts that version by running the release with
|
|
147
|
+
acceptance given.
|
|
148
|
+
4. **Updates (Section 1.6).** Provider may make Updates available but is not required to.
|
|
149
|
+
Customer is not required to install them.
|
|
150
|
+
5. **Copies (Section 2.1).** Customer may make the copies reasonably needed to install, run,
|
|
151
|
+
back up and internally mirror the Software for its Permitted Uses.
|
|
152
|
+
6. **Agents and contractors (Section 2.1).** Use of the Software by Customer's Users,
|
|
153
|
+
contractors and AI agents, acting for Customer, is Customer's use. Customer is responsible
|
|
154
|
+
for it.
|
|
155
|
+
7. **Customer's own customers (Sections 1.1 and 2.1).** Building and operating infrastructure
|
|
156
|
+
and services that Customer provides to its own customers is use by Customer. It is not
|
|
157
|
+
allowing others to access or use the Product, as long as those customers do not operate
|
|
158
|
+
the Software themselves.
|
|
159
|
+
8. **Acceptance check (Section 2.1).** The acceptance check is a mechanism that controls the
|
|
160
|
+
Software's functionality. Customer will not bypass or disable it except by accepting.
|
|
161
|
+
9. **Reviews and benchmarks (Section 2.1).** Section 2.1(a)(vi) does not apply. Customer may
|
|
162
|
+
publish reviews, comparisons and benchmark results for the Software.
|
|
163
|
+
10. **Open source (Section 1.5).** The `turf` program's source code is published at
|
|
164
|
+
https://github.com/turfbuild/turf under the Mozilla Public License 2.0, and that license
|
|
165
|
+
governs the source code and anything Customer builds from it. Third-party components and
|
|
166
|
+
their licenses are listed in the NOTICE file distributed with the Software.
|
|
167
|
+
11. **Ending this Agreement (Section 4).** Customer may end this Agreement at any time by
|
|
168
|
+
following the Deletion Procedure. It ends automatically, with no cure period, if Customer
|
|
169
|
+
breaches Section 1.1 or 2.1, or uses the Software outside the Permitted Uses after the
|
|
170
|
+
grace period.
|
|
171
|
+
12. **Payment (Section 3).** Section 3 does not apply.
|
|
172
|
+
13. **Logo rights (Section 10.8).** Section 10.8 does not apply.
|
|
173
|
+
14. **Machine learning (Section 1.4).** Section 1.4 does not apply.
|
|
174
|
+
15. **Consumers.** Nothing in this Agreement limits rights Customer has as a consumer that
|
|
175
|
+
cannot be waived under Applicable Laws.
|
|
176
|
+
|
|
177
|
+
**Attribution.** These terms are based on the Common Paper Software License Agreement
|
|
178
|
+
(Version 1.1), which is free to use under CC BY 4.0. This page modifies it as shown above.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Turf
|
|
2
|
+
Copyright 2026 Turf LLC. All rights reserved.
|
|
3
|
+
|
|
4
|
+
Turf is licensed under the Turf Community Edition License 1.0 (see LICENSE),
|
|
5
|
+
which incorporates the Common Paper Software License Agreement Standard Terms
|
|
6
|
+
1.1 (see STANDARD-TERMS.md). Commercial licenses are available from Turf LLC:
|
|
7
|
+
https://turf.build/licensing
|
|
8
|
+
|
|
9
|
+
"Turf" and the Turf logo are trademarks of Turf LLC. "Terraform" is a trademark
|
|
10
|
+
of HashiCorp, Inc. "OpenTofu" is a trademark of The Linux Foundation. Turf is
|
|
11
|
+
not affiliated with or endorsed by either.
|
|
12
|
+
|
|
13
|
+
This archive distributes five binaries:
|
|
14
|
+
|
|
15
|
+
* turf-mcp-server — the Turf infrastructure MCP server,
|
|
16
|
+
* turf-engine — the Turf engine,
|
|
17
|
+
* turf-builtin-provider — its built-in provider,
|
|
18
|
+
* turf-ui — the Turf console, a read-only web view of the
|
|
19
|
+
engine, and
|
|
20
|
+
* turf — the reference Turf CLI;
|
|
21
|
+
all five under the Turf Community Edition License 1.0 (see LICENSE and
|
|
22
|
+
STANDARD-TERMS.md). The turf CLI is additionally open source under the
|
|
23
|
+
Mozilla Public License 2.0 (MPL-2.0); source at
|
|
24
|
+
https://github.com/turfbuild/turf.
|
|
25
|
+
|
|
26
|
+
The engine runs on restate-server (Restate, Business Source License 1.1),
|
|
27
|
+
which this archive does not contain: it is installed from Restate's own
|
|
28
|
+
distribution, and the engine runs it as a separate process.
|
|
29
|
+
|
|
30
|
+
The released turf CLI is built without CGO on every platform, so its
|
|
31
|
+
voice/audio capture is inactive in these binaries; text chat and all MCP
|
|
32
|
+
tooling are unaffected.
|
|
33
|
+
|
|
34
|
+
Third-party components
|
|
35
|
+
----------------------
|
|
36
|
+
|
|
37
|
+
The binaries incorporate third-party open-source software. The principal
|
|
38
|
+
redistributed components and their licenses are listed below. The complete set
|
|
39
|
+
of dependencies is the SBOM published with every release, which corresponds to
|
|
40
|
+
the modules declared in each component's go.mod. Where a component is licensed
|
|
41
|
+
under MPL-2.0, its source is available at the URL given; the binaries contain
|
|
42
|
+
no modifications to those components beyond what is published at those sources.
|
|
43
|
+
|
|
44
|
+
Mozilla Public License 2.0 (MPL-2.0)
|
|
45
|
+
------------------------------------
|
|
46
|
+
|
|
47
|
+
* OpenTofu (downstream fork)
|
|
48
|
+
https://github.com/turfbuild/opentofu (tag v1.12.9-turf.4)
|
|
49
|
+
Upstream: https://github.com/opentofu/opentofu
|
|
50
|
+
Copyright (c) The OpenTofu Authors; Copyright (c) 2014 HashiCorp, Inc.
|
|
51
|
+
The fork additionally carries x/ ("OpenTofu extensions"), a library
|
|
52
|
+
facade over OpenTofu internals — original downstream code, MPL-2.0,
|
|
53
|
+
Copyright (c) The Turf Authors.
|
|
54
|
+
|
|
55
|
+
* provider-client (downstream fork)
|
|
56
|
+
https://github.com/turfbuild/provider-client (tag v1.12.9-turf.1)
|
|
57
|
+
Upstream: https://github.com/opentofu/provider-client
|
|
58
|
+
Copyright (c) The OpenTofu Authors
|
|
59
|
+
|
|
60
|
+
* HCL (OpenTofu fork of hashicorp/hcl), and other HashiCorp libraries
|
|
61
|
+
(e.g. go-hclog, go-version, go-getter) consumed as Go modules.
|
|
62
|
+
|
|
63
|
+
* turf CLI (this product's reference client) — see above.
|
|
64
|
+
|
|
65
|
+
Permissive licenses (MIT, Apache-2.0, BSD)
|
|
66
|
+
------------------------------------------
|
|
67
|
+
|
|
68
|
+
* Docker Agent (formerly cagent), downstream fork — the LLM runtime embedded
|
|
69
|
+
by the turf CLI
|
|
70
|
+
github.com/docker/docker-agent (Apache License 2.0)
|
|
71
|
+
https://github.com/turfbuild/docker-agent (tag v1.118.0-turf.4)
|
|
72
|
+
Upstream: https://github.com/docker/docker-agent
|
|
73
|
+
Copyright (c) Docker Inc. and the Docker Agent authors
|
|
74
|
+
|
|
75
|
+
* Restate SDK for Go — the client library the engine and server use to talk
|
|
76
|
+
to restate-server
|
|
77
|
+
github.com/restatedev/sdk-go (MIT License)
|
|
78
|
+
Copyright (c) 2024 - Restate Software, Inc., Restate GmbH
|
|
79
|
+
|
|
80
|
+
* The Turf console's web application, embedded in turf-ui, bundles:
|
|
81
|
+
React and ReactDOM (MIT License) Copyright (c) Meta Platforms, Inc.
|
|
82
|
+
and affiliates
|
|
83
|
+
Lucide (lucide-react) (ISC License) Copyright (c) for portions of
|
|
84
|
+
Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT); all
|
|
85
|
+
other copyright (c) Lucide Contributors
|
|
86
|
+
|
|
87
|
+
The binaries also include other components under permissive licenses, including
|
|
88
|
+
but not limited to: github.com/mark3labs/mcp-go (MIT), github.com/zclconf/go-cty,
|
|
89
|
+
and the cloud-provider and Kubernetes SDKs pulled in transitively. Each retains
|
|
90
|
+
its own copyright and license notice in its respective source repository.
|
|
91
|
+
|
|
92
|
+
Questions about licensing, or a request for the source of any component not
|
|
93
|
+
linked above: licensing@turf.build.
|
package/README.md
CHANGED
|
@@ -1,3 +1,163 @@
|
|
|
1
|
-
#
|
|
1
|
+
# turf-mcp-server
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The MCP server of Turf™, a self-hosted, autonomous infrastructure-as-code tool,
|
|
4
|
+
built on OpenTofu®. It gives an AI agent infrastructure-as-code tools over
|
|
5
|
+
ordinary Terraform® configurations (`.tf` files): plan, apply, destroy and the
|
|
6
|
+
rest of Terraform's commands.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
npx add-mcp@2 @turfbuild/turf-mcp-server --name turf -g
|
|
12
|
+
# the first start downloads Turf: about a minute
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
This registers the server with the agents on this machine (Claude Code, Claude
|
|
16
|
+
Desktop, Cursor, Codex, Gemini CLI, VS Code): it finds the ones you have and
|
|
17
|
+
lets you pick. To run the server yourself:
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
npx -y @turfbuild/turf-mcp-server
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
The server speaks MCP over stdio. In an MCP client's configuration:
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{
|
|
27
|
+
"mcpServers": {
|
|
28
|
+
"turf": {
|
|
29
|
+
"command": "npx",
|
|
30
|
+
"args": ["-y", "@turfbuild/turf-mcp-server"]
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Accept the license
|
|
37
|
+
|
|
38
|
+
Turf is proprietary software under the Turf Community Edition License 1.0
|
|
39
|
+
(https://turf.build/license/v1/). It is free for individuals, education and
|
|
40
|
+
small businesses within the Community limits. Government and larger
|
|
41
|
+
organizations need a commercial license: https://turf.build/licensing/.
|
|
42
|
+
Accept the terms once:
|
|
43
|
+
|
|
44
|
+
```sh
|
|
45
|
+
npx -y @turfbuild/turf-mcp-server license accept
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
This records your acceptance in `~/.turf/license.json`. Until then the server
|
|
49
|
+
connects and lists its tools, and every call returns the license notice.
|
|
50
|
+
Acceptance is read at the next call, with no restart. Whichever npx command
|
|
51
|
+
runs Turf first downloads it: run this line before your agent has started Turf
|
|
52
|
+
and the minute passes here, in the terminal, and the agent's first start is
|
|
53
|
+
quick. `TURF_ACCEPT_EULA=yes`
|
|
54
|
+
in the server entry's `env` is the other way: setting it accepts the terms,
|
|
55
|
+
for that server and the engine it starts.
|
|
56
|
+
|
|
57
|
+
## Requirements
|
|
58
|
+
|
|
59
|
+
- Node.js 18 or later.
|
|
60
|
+
- macOS or Linux, on arm64 or x64.
|
|
61
|
+
|
|
62
|
+
## The engine
|
|
63
|
+
|
|
64
|
+
The server starts a local Turf engine for the current user when a tool first
|
|
65
|
+
needs it. The engine keeps running when the client quits, so a rollout waiting
|
|
66
|
+
for approval is still there next time. Its data lives in `~/.turf`.
|
|
67
|
+
|
|
68
|
+
```sh
|
|
69
|
+
npx -y @turfbuild/turf-mcp-server engine status
|
|
70
|
+
npx -y @turfbuild/turf-mcp-server engine stop
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Providers run in the engine, in a small fixed environment. Credentials in
|
|
74
|
+
their usual files (the default AWS profile, `~/.kube/config`, gcloud's
|
|
75
|
+
application-default credentials, the `az` login) work with nothing set. When a
|
|
76
|
+
provider needs a variable, name it in the server entry's `env`: the variable,
|
|
77
|
+
and `TURF_PROVIDER_ENV` naming it.
|
|
78
|
+
|
|
79
|
+
```json
|
|
80
|
+
"env": {
|
|
81
|
+
"AWS_PROFILE": "prod",
|
|
82
|
+
"TURF_PROVIDER_ENV": "AWS_PROFILE"
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Restart the agent after a change: the list is read when the server starts.
|
|
87
|
+
This is the provider environment, the variables the server sends by name: it
|
|
88
|
+
sends them, with their values, when a run starts, and `status` shows the names,
|
|
89
|
+
never a value. `PATH` and the engine's own variables are never sent. A
|
|
90
|
+
configuration's own settings (a profile or a kubeconfig path that belongs to
|
|
91
|
+
that directory) go in its `mise.toml` or `mise.local.toml`, with
|
|
92
|
+
[mise](https://mise.jdx.dev) installed.
|
|
93
|
+
|
|
94
|
+
## First start and upgrades
|
|
95
|
+
|
|
96
|
+
- The first start takes about a minute: npm downloads about 180 MB and unpacks
|
|
97
|
+
about 550 MB. A client that waits 30 seconds for a server may give up on that
|
|
98
|
+
first start: reconnect once. Later starts take several seconds.
|
|
99
|
+
- An unpinned entry asks npm at every start, so a new release is installed the
|
|
100
|
+
next time the client starts the server. That start takes about half a minute.
|
|
101
|
+
The engine that is running stays the old one until it is stopped: the
|
|
102
|
+
`engine stop` line above ends it, and the next call starts the new one.
|
|
103
|
+
Across a minor release (1.5 to 1.6) the server refuses the older engine and
|
|
104
|
+
names that remedy; after a patch release it keeps using the running engine
|
|
105
|
+
and says nothing.
|
|
106
|
+
- To hold a version, pin it in the entry: `@turfbuild/turf-mcp-server@1.5.0`.
|
|
107
|
+
|
|
108
|
+
## What gets installed
|
|
109
|
+
|
|
110
|
+
- A small launcher, which finds the package for your platform and runs it.
|
|
111
|
+
- One platform package, `@turfbuild/turf-mcp-server-<os>-<cpu>`, holding the
|
|
112
|
+
server, the Turf engine, its built-in provider and the Turf console. It is an
|
|
113
|
+
optional dependency, so an install that omits optional dependencies leaves
|
|
114
|
+
the server out.
|
|
115
|
+
- `restate-server`, which the engine runs on. It is not included in Turf's
|
|
116
|
+
packages: it comes from Restate's own npm package,
|
|
117
|
+
`@restatedev/restate-server`, installed as a dependency.
|
|
118
|
+
|
|
119
|
+
The packages are published with npm provenance from the `turfbuild/turf`
|
|
120
|
+
repository's publish workflow, and carry the release's own binaries.
|
|
121
|
+
|
|
122
|
+
## Configuration
|
|
123
|
+
|
|
124
|
+
Set these in the environment the server starts in: the server entry's `env`.
|
|
125
|
+
|
|
126
|
+
| Variable | What it does |
|
|
127
|
+
|----------|--------------|
|
|
128
|
+
| `TURF_HOME` | Where the local engine keeps its data. Default `~/.turf`. Keep the path short. |
|
|
129
|
+
| `TURF_RESTATE_URL` | Points the server at an engine running elsewhere, instead of a local one. |
|
|
130
|
+
| `TURF_TIER` | Which tools the server offers: `read`, `plan`, `apply` or `full`. Default `full`. |
|
|
131
|
+
| `TURF_PROVIDER_ENV` | The variables the server sends to providers, by name: a comma-separated list of `NAME`, `NAME=VALUE` or `PREFIX_*`. Nothing is sent unless named. |
|
|
132
|
+
|
|
133
|
+
## Telemetry
|
|
134
|
+
|
|
135
|
+
The Turf engine sends anonymous usage telemetry to Turf LLC by default. To turn
|
|
136
|
+
it off, put `DO_NOT_TRACK=1` in the `env` of the server's entry in each agent
|
|
137
|
+
that has one, reconnect the agent so its server restarts with it, then run the
|
|
138
|
+
`engine stop` line above: the next call starts the engine with telemetry off.
|
|
139
|
+
With the `turf` CLI, which comes with the Homebrew install, `turf telemetry
|
|
140
|
+
off` and the same `engine stop` do it too. The field list is at
|
|
141
|
+
https://turf.build/telemetry.
|
|
142
|
+
|
|
143
|
+
Restate's package, `@restatedev/restate-server`, reports anonymous install
|
|
144
|
+
analytics through Scarf, where npm installs the package: that may be the shell
|
|
145
|
+
that runs `license accept`. `DO_NOT_TRACK=1` (or `SCARF_ANALYTICS=false`) in
|
|
146
|
+
that shell covers it.
|
|
147
|
+
|
|
148
|
+
## Other ways to install
|
|
149
|
+
|
|
150
|
+
- Homebrew, which adds the `turf` CLI and an engine that starts at login:
|
|
151
|
+
`brew install restatedev/tap/restate-server turfbuild/tap/turf`
|
|
152
|
+
- Container image: `ghcr.io/turfbuild/turf-mcp-server`
|
|
153
|
+
|
|
154
|
+
## Documentation
|
|
155
|
+
|
|
156
|
+
- Docs: https://turf.build/docs/
|
|
157
|
+
- Issues: https://github.com/turfbuild/turf/issues
|
|
158
|
+
|
|
159
|
+
See the LICENSE file in this package.
|
|
160
|
+
|
|
161
|
+
Turf™ is a trademark of Turf LLC. Terraform® is a registered trademark of
|
|
162
|
+
HashiCorp, Inc. OpenTofu® is a registered trademark of LF Projects, LLC. Turf is
|
|
163
|
+
not affiliated with or endorsed by either.
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# Common Paper Software License Agreement: Standard Terms, Version 1.1
|
|
2
|
+
|
|
3
|
+
This file is a copy of the Common Paper Software License Agreement Standard Terms
|
|
4
|
+
(Version 1.1), which are posted at
|
|
5
|
+
<https://commonpaper.com/standards/software-license-agreement/1.1>. The Turf license
|
|
6
|
+
in the LICENSE file beside this one incorporates them by reference. The words are
|
|
7
|
+
unchanged; only the web page's formatting is removed, so the Variables that the page
|
|
8
|
+
highlights appear here as plain capitalized words. If this copy and the posted
|
|
9
|
+
version ever differ, the posted version controls.
|
|
10
|
+
|
|
11
|
+
The Standard Terms are by Common Paper and are free to use under CC BY 4.0
|
|
12
|
+
(<https://creativecommons.org/licenses/by/4.0/>).
|
|
13
|
+
|
|
14
|
+
--------------------------------------------------------------------------------
|
|
15
|
+
|
|
16
|
+
To use this Software License Agreement, the parties must complete and sign or
|
|
17
|
+
electronically accept Key Terms and an Order Form. Variables have the meanings or
|
|
18
|
+
descriptions given on the Cover Page. All other capitalized words have the meanings
|
|
19
|
+
or descriptions given in these Standard Terms.
|
|
20
|
+
|
|
21
|
+
## Software License Agreement
|
|
22
|
+
|
|
23
|
+
1. Software
|
|
24
|
+
1. License. During the Subscription Period and subject to the terms of this Agreement, Provider grants Customer a limited, non-exclusive, non-sublicensable, non-transferable (except as permitted in Section 10.6 (Assignment)) license to install and use the Software on systems owned or controlled by Customer for the Permitted Uses. If a Customer Affiliate enters a separate Order Form with Provider, the Customer's Affiliate creates a separate agreement between Provider and that Affiliate, where Provider's responsibility to the Affiliate is individual and separate from Customer and Customer is not responsible for its Affiliates’ agreement.
|
|
25
|
+
2. User Accounts. If Customer's Users create an account in connection with use of the Software (including to seek support or participate in community activities through Provider's website), Customer is responsible for all actions on Users’ accounts and for all Users’ compliance with this Agreement. Customer and Users must protect the confidentiality of their passwords and login credentials. Customer will promptly notify Provider if it suspects or knows of any fraudulent activity with its accounts, passwords, or credentials, or if they become compromised.
|
|
26
|
+
3. Feedback and Usage Data. Customer may, but is not required to, give Provider Feedback, in which case Customer gives Feedback "AS IS". Provider may use all Feedback freely without any restriction or obligation. In addition, Provider may collect and analyze Usage Data, and Provider may freely use Usage Data to maintain, improve, enhance, and promote Provider's products and services without restriction or obligation. However, Provider may only disclose Usage Data to others if the Usage Data is aggregated and does not identify Customer or Users.
|
|
27
|
+
4. Machine Learning. Usage Data may be used and processed to develop, train, or enhance artificial intelligence or machine learning models that are part of Provider's products and services, including third-party components of the Product. However, (a) Usage Data must be aggregated before it can be used for these purposes, and (b) Provider will use commercially reasonable efforts consistent with industry standard technology to de-identify Usage Data before such use. Nothing in this section will reduce or limit Provider's obligations regarding Personal Data that may be contained in Usage Data under Applicable Data Protection Laws. Due to the nature of artificial intelligence and machine learning, information generated by these features may be incorrect or inaccurate. Product features that include artificial intelligence or machine learning models are not human and are not a substitute for human oversight.
|
|
28
|
+
5. Open Source Software. If the Software contains Open Source Software, Provider will use reasonable efforts to deliver to Customer any notices, source code, or other materials required by the license of the Open Source Software. On Customer's request, Provider will make available a list of Open Source Software contained in the particular version of Software being used by Customer. To the extent required by the license applicable to a particular Open Source Software, the terms of such license will apply to that Open Source Software instead of this Agreement. To the extent prohibited by the license applicable to a particular Open Source Software, certain restrictions in this Agreement do not apply to that Open Source Software. To the extent required by the license applicable to a particular Open Source Software, Provider makes an offer to provide the source code or related information of that Open Source Software.
|
|
29
|
+
6. Updates. During the Subscription Period, Provider will provide to Customer, at no additional charge, Updates, including, if applicable, updated Documentation that Provider makes generally available to its customers who have purchased the same Product and Services as Customer. Customer will install all Updates as soon as practicable after receipt.
|
|
30
|
+
7. Reservation of Rights. Provider retains all right, title, and interest in and to the Product, whether developed before or after the Effective Date.
|
|
31
|
+
2. Restrictions & Obligations
|
|
32
|
+
1. Restrictions on Customer.
|
|
33
|
+
a. Except as expressly permitted by this Agreement, Customer will not (and will not allow anyone else to): (i) reverse engineer, decompile, or attempt to discover any source code or underlying ideas or algorithms of the Product (except to the extent Applicable Laws prohibit this restriction); (ii) provide, sell, transfer, sublicense, lend, distribute, rent, or otherwise allow others to access or use the Product; (iii) remove any proprietary notices or labels; (iv) copy, modify, or create derivative works of the Product; (v) attempt to defeat, avoid, bypass, remove, deactivate or otherwise circumvent any protection mechanisms in the Product, including any such mechanism used to restrict or control the functionality of the Product; (vi) release, publish, or otherwise make available to any third party the results of any performance or functional evaluation of the Product without Provider's prior written approval; (vii) use the Product to develop a competing service or product; (viii) attempt to gain unauthorized access to any component or portion of the Product, other accounts, computer systems, or networks connected to the Product, or obtain or attempt to obtain any materials or information made available through any component or portion of the Product not intentionally made available by Provider to Customer or its Users; (ix) use the Product with any High Risk Activity or with any activity prohibited by Applicable Laws; or (x) use the Product in any Embargoed Country or allow use of the Product by a sanctioned person or entity.
|
|
34
|
+
b. Use of the Product must comply with all Documentation and License Limits.
|
|
35
|
+
2. Suspension. If Customer (a) has an outstanding, undisputed balance on its account for more than 30 days; (b) breaches Section 2.1 (Restrictions on Customer); or (c) uses the Product in violation of the Agreement or in a way that materially and negatively impacts the Product or others, then Provider may temporarily suspend Customer's access to the Product or Services with or without notice. However, Provider will try to inform Customer before suspending Customer's account when practical. Provider will reinstate Customer's access to the Product only if Customer resolves the underlying issue.
|
|
36
|
+
3. Payment & Taxes
|
|
37
|
+
1. Fees. Unless the Order Form specifies a different currency, all Fees are in U.S. Dollars and are exclusive of taxes. Except for the prorated refund of prepaid Fees allowed with specific termination rights given in the Agreement, Fees are non-refundable.
|
|
38
|
+
2. Invoicing. For a Payment Process with invoicing, Provider will send invoices for usage-based Fees in arrears and for all other Fees in advance, in each case according to the Payment Process.
|
|
39
|
+
3. Automatic Payment. For a Payment Process with automatic payment, Provider will automatically charge the credit card, debit card, or other payment method on file for Fees according to the Payment Process and Customer authorizes all such charges. In this case, Provider will make a copy of Customer's bills or transaction history available to Customer.
|
|
40
|
+
4. Taxes. Customer is responsible for all duties, taxes, and levies that apply to Fees, including sales, use, VAT, GST, or withholding, that Provider itemizes and includes in an invoice. However, Customer is not responsible for Provider's income taxes.
|
|
41
|
+
5. Payment. Customer will pay Provider Fees and taxes in U.S. Dollars, unless the Order Form specifies a different currency, according to the Payment Process.
|
|
42
|
+
6. Payment Dispute. If Customer has a good-faith disagreement about the Fees charged or invoiced, Customer must notify Provider about the dispute before payment is due, or within 30 days of an automatic payment if applicable, and must pay all undisputed amounts on time. The parties will work together to resolve the dispute within 15 days. If no resolution is agreed, each party may pursue any remedies available under the Agreement or Applicable Laws.
|
|
43
|
+
4. Term & Termination
|
|
44
|
+
1. Order Form and Agreement. For each Order Form, the Agreement will start on the Order Date, continue through the Subscription Period, and automatically renew for additional Subscription Periods unless one party gives notice of non-renewal to the other party before the Non-Renewal Notice Date.
|
|
45
|
+
2. Framework Terms. These Framework Terms will start on the Effective Date and continue for the longer of one year or until all Order Forms governed by the Framework Terms have ended.
|
|
46
|
+
3. Termination. Either party may terminate the Framework Terms or an Order Form immediately:
|
|
47
|
+
a. if the other party fails to cure a material breach of the Framework Terms or an Order Form following 30 days notice;
|
|
48
|
+
b. upon notice if the other party (i) materially breaches the Framework Terms or an Order Form in a manner that cannot be cured; (ii) dissolves or stops conducting business without a successor; (iii) makes an assignment for the benefit of creditors; or (iv) becomes the debtor in insolvency, receivership, or bankruptcy proceedings that continue for more than 60 days.
|
|
49
|
+
4. Force Majeure. Neither party will be liable for a delay or failure to perform its obligations of this Agreement if and to the extent caused by a Force Majeure Event. Either party may terminate an affected Order Form upon notice if a Force Majeure Event prevents the Product from materially operating for 30 or more consecutive days. Provider will pay to Customer a prorated refund of any prepaid Fees for the remainder of the Subscription Period. A Force Majeure Event does not excuse Customer's obligation to pay Fees accrued prior to termination under this Section 4.4 (Force Majeure).
|
|
50
|
+
5. Effect of Termination. Termination of the Framework Terms will automatically terminate all Order Forms governed by the Framework Terms. Upon any expiration or termination:
|
|
51
|
+
a. Customer will no longer have any right to use the Product and will follow the Deletion Procedure to remove the Software.
|
|
52
|
+
b. Subject to Section 4.6(b) (Survival), each Recipient will return or destroy Discloser’s Confidential Information in its possession or control.
|
|
53
|
+
c. Provider will submit a final bill or invoice for all outstanding Fees accrued before termination and Customer will pay the invoice according to Section 3 (Payment & Taxes).
|
|
54
|
+
6. Survival.
|
|
55
|
+
a. The following sections will survive expiration or termination of the Agreement: Section 1.3 (Feedback and Usage Data), Section 1.4 (Machine Learning), 1.7 (Reservation of Rights), Section 2.1 (Restrictions on Customer), Section 3 (Payment & Taxes) for amounts accrued or payable before expiration or termination, Section 4.5 (Effect of Termination), Section 4.6 (Survival), Section 5 (Representations & Warranties), Section 6 (Disclaimer of Warranties), Section 7 (Limitation of Liability), Section 8 (Indemnification), Section 9 (Confidentiality), Section 10 (General Terms), Section 11 (Definitions), and the portions of a Cover Page referenced by these sections.
|
|
56
|
+
b. Each Recipient may retain Discloser’s Confidential Information in accordance with its standard backup or record retention policies maintained in the ordinary course of business or as required by Applicable Laws, in which case Section 9 (Confidentiality) will continue to apply to retained Confidential Information and Recipient may not access Discloser’s Confidential Information except as required by Applicable Laws.
|
|
57
|
+
5. Representations & Warranties
|
|
58
|
+
1. Mutual. Each party represents and warrants to the other that: (a) it has the legal power and authority to enter into this Agreement; (b) it is duly organized, validly existing, and in good standing under the Applicable Laws of the jurisdiction of its origin; (c) it will comply with all Applicable Laws in performing its obligations or exercising its rights in this Agreement; and (d) it will comply with the Additional Warranties.
|
|
59
|
+
2. Provider Warranty. Provider warrants that, for the Warranty Period, the Software will substantially conform in all material respects to the specifications set forth in the Documentation when installed, operated, and used according to the Agreement.
|
|
60
|
+
3. Warranty Exclusions. The warranty in Section 5.2 (Provider Warranty) does not apply to, nor will Provider be responsible or liable for, any issues arising from: (a) Software that has been modified or damaged by Customer or its Users or agents, (b) use of the Software in a manner other than as permitted by the Agreement, such as using the Software in combination with any software, hardware, firmware, system, or network other than as intended (c) Customer's failure to properly install Updates within a reasonable amount of time; or (d) material breach of this Agreement.
|
|
61
|
+
4. Provider Warranty Remedy. If Provider breaches the warranty in Section 5.2 (Provider Warranty), Provider will take the following steps, as applicable, to remedy such breach: (a) repair or replacing any damaged or defective Software; (b) amend, supplement, or replace any inaccurate Documentation; or (c) replace the Software with a functionally equivalent alternative, in which case the new software will, upon install or deployment, constitute Software under this Agreement. This Section 5.4 (Provider Warranty Remedy) describes Customer's exclusive remedy and Provider's entire liability for a breach or alleged breach of Section 5.2 (Provider Warranty).
|
|
62
|
+
6. Disclaimer of Warranties
|
|
63
|
+
1. Provider makes no guarantees that the Product will always be safe, secure, or error-free, or that it will function without disruptions, delays, or imperfections. The warranties in Section 5 (Representations & Warranties) do not apply to any misuse or unauthorized modification of the Product, nor to any product or service provided by anyone other than Provider. Except for the warranties in Section 5 (Representations & Warranties), Provider and Customer each **disclaim all other warranties and conditions, whether express or implied, including the implied warranties and conditions of merchantability, fitness for a particular purpose, title, and non-infringement**. These disclaimers apply to the maximum extent permitted by Applicable Laws.
|
|
64
|
+
7. Limitation of Liability
|
|
65
|
+
1. Liability Caps.
|
|
66
|
+
a. **Except as provided in Section 7.4 (Exceptions), each party’s total cumulative liability for all claims arising out of or relating to this Agreement will not be more than the General Cap Amount.**
|
|
67
|
+
b. **If there are Increased Claims, each party’s total cumulative liability for all Increased Claims arising out of or relating to this Agreement will not be more than the Increased Cap Amount.**
|
|
68
|
+
2. Damages Waiver. **Except as provided in Section 7.4 (Exceptions), under no circumstances will either party be liable to the other for lost profits or revenues (whether direct or indirect), or for consequential, special, indirect, exemplary, punitive, or incidental damages relating to this Agreement, even if the party is informed of the possibility of this type of damage in advance. Examples of these types of damages include lost or otherwise corrupted data, cost of replacement of or restoration of data, delays or failure to transmit or receive data, business interruption, failure to realize expected savings, cost of substitute products or services, loss of goodwill, or reputational damage.**
|
|
69
|
+
3. Applicability. **The limitations and waivers contained in Sections 7.1 (Liability Caps) and 7.2 (Damages Waiver) apply to all liability, whether in tort (including negligence), contract, breach of statutory duty, or otherwise.**
|
|
70
|
+
4. Exceptions. The liability cap in Section 7.1(a) does not apply to any Increased Claims. Section 7.1 (Liability Caps) does not apply to any Unlimited Claims. Section 7.2 (Damages Waiver) does not apply to any Increased Claims, any breach of Section 9 (Confidentiality), or Customer's breach of Section 1.1 (License) or Section 2.1 (Restrictions on Customer). Nothing in this Agreement will limit, exclude, or restrict a party's liability to the extent prohibited by Applicable Laws.
|
|
71
|
+
8. Indemnification
|
|
72
|
+
1. Protection by Provider. Provider will indemnify, defend, and hold harmless Customer from and against all Provider Covered Claims made by someone other than Customer, Customer's Affiliates, or Users, and all out-of-pocket damages, awards, settlements, costs, and expenses, including reasonable attorneys’ fees and other legal expenses, that arise from the Provider Covered Claims.
|
|
73
|
+
2. Protection by Customer. Customer will indemnify, defend, and hold harmless Provider from and against all Customer Covered Claims made by someone other than Provider or its Affiliates, and all out-of-pocket damages, awards, settlements, costs, and expenses, including reasonable attorneys’ fees and other legal expenses, that arise from the Customer Covered Claims.
|
|
74
|
+
3. Procedure. The Indemnifying Party’s obligations in this section are contingent upon the Protected Party: (a) promptly notifying the Indemnifying Party of each Covered Claim for which it seeks protection; (b) providing reasonable assistance to the Indemnifying Party at the Indemnifying Party’s expense; and (c) giving the Indemnifying Party sole control over the defense and settlement of each Covered Claim. A Protected Party may participate in a Covered Claim for which it seeks protection with its own attorneys only at its own expense. The Indemnifying Party may not agree to any settlement of a Covered Claim that contains an admission of fault or otherwise materially and adversely impacts the Protected Party without the prior written consent of the Protected Party.
|
|
75
|
+
4. Changes to Product. If required by settlement or court order, or if deemed reasonably necessary in response to a Provider Covered Claim, Provider may: (a) obtain the right for Customer to continue using the Product; (b) replace or modify the affected component of the Product without materially reducing the general functionality of the Product; or (c) if neither (a) nor (b) are reasonable, terminate the affected Order Form and issue a pro-rated refund of prepaid Fees for the remainder of the Subscription Period.
|
|
76
|
+
5. Exclusions. Provider's obligations as an Indemnifying Party will not apply to Provider Covered Claims that result from (i) modifications to the Product that were not authorized by Provider or that were made in compliance with Customer's instructions; (ii) unauthorized use of the Product, including use in violation of this Agreement; (iii) use of the Product in combination with items not provided by Provider; or (iv) use of an old version of the Product where an Update would avoid the Provider Covered Claim.
|
|
77
|
+
6. Exclusive Remedy. This Section 8 (Indemnification), together with any termination rights, describes each Protected Party’s exclusive remedy and each Indemnifying Party’s entire liability for a Covered Claim.
|
|
78
|
+
9. Confidentiality
|
|
79
|
+
1. Non-Use and Non-Disclosure. Except as otherwise authorized in the Agreement or as needed to fulfill its obligations or exercise its rights under this Agreement, Recipient will not (a) use Discloser’s Confidential Information; nor (b) disclose Discloser’s Confidential Information to anyone else. In addition, Recipient will protect Discloser’s Confidential Information using at least the same protections Recipient uses for its own similar information but no less than a reasonable standard of care.
|
|
80
|
+
2. Exclusions. Confidential Information does not include information that (a) Recipient knew without any obligation of confidentiality before disclosure by Discloser; (b) is or becomes publicly known and generally available through no fault of Recipient; (c) Recipient receives under no obligation of confidentiality from someone else who is authorized to make the disclosure; or (d) Recipient independently developed without use of or reference to Discloser’s Confidential Information.
|
|
81
|
+
3. Required Disclosures. Recipient may disclose Discloser’s Confidential Information to the extent required by Applicable Laws if, unless prohibited by Applicable Laws, Recipient provides Discloser reasonable advance notice of the required disclosure and reasonably cooperates, at Discloser’s expense, with Discloser’s efforts to obtain confidential treatment for the Confidential Information.
|
|
82
|
+
4. Permitted Disclosures. Recipient may disclose Discloser’s Confidential Information to Users, employees, advisors, contractors, and representatives who each have a need to know the Confidential Information, but only if the person or entity is bound by confidentiality obligations at least as protective as those in this Section 9 (Confidentiality) and Recipient remains responsible and liable for everyone’s compliance with the terms of this Section 9 (Confidentiality). In addition, Provider may use and disclose Customer's Confidential Information as necessary to provide the Product and Services.
|
|
83
|
+
10. General Terms
|
|
84
|
+
1. Entire Agreement. This Agreement is the only agreement between the parties about its subject and this Agreement supersedes all prior or contemporaneous statements (whether in writing or not) about its subject. Provider expressly rejects any terms included in Customer's purchase order or similar document, which may only be used for accounting or administrative purposes. No terms or conditions in any Customer documentation or online vendor portal will apply to Customer's use of the Product unless expressly agreed to in a legally binding written agreement signed by an authorized Provider representative, regardless of what such terms may say.
|
|
85
|
+
2. Modifications, Severability, and Waiver. Any waiver, modification, or change to the Agreement must be in writing and signed or electronically accepted by each party. If any term of this Agreement is determined to be invalid or unenforceable by a relevant court or governing body, the remaining terms of this Agreement will remain in full force and effect. The failure of a party to enforce a term or to exercise an option or right in this Agreement will not constitute a waiver by that party of the term, option, or right.
|
|
86
|
+
3. Governing Law and Chosen Courts. The Governing Law will govern all interpretations and disputes about this Agreement, without regard to its conflict of laws provisions. The parties will bring any legal suit, action, or proceeding about this Agreement in the Chosen Courts and each party irrevocably submits to the exclusive jurisdiction of the Chosen Courts.
|
|
87
|
+
4. Injunctive Relief. Despite Section 10.3 (Governing Law and Chosen Courts), a breach of Section 9 (Confidentiality) or the violation of a party’s intellectual property rights may cause irreparable harm for which monetary damages cannot adequately compensate. As a result, upon the actual or threatened breach of Section 9 (Confidentiality) or violation of a party’s intellectual property rights, the non-breaching or non-violating party may seek appropriate equitable relief, including an injunction, in any court of competent jurisdiction without the need to post a bond and without limiting its other rights or remedies.
|
|
88
|
+
5. Non-Exhaustive Remedies. Except where the Agreement provides for an exclusive remedy, seeking or exercising a remedy does not limit the other rights or remedies available to a party.
|
|
89
|
+
6. Assignment. Neither party may assign any rights or obligations under this Agreement without the prior written consent of the other party. However, either party may assign this Agreement upon notice if the assigning party undergoes a merger, change of control, reorganization, or sale of all or substantially all its equity, business, or assets to which this Agreement relates. Any attempted but non-permitted assignment is void. This Agreement will be binding upon and inure to the benefit of the parties and their permitted successors and assigns.
|
|
90
|
+
7. Beta Products. If Provider gives Customer access to a Beta Product, the Beta Product is provided "AS IS" and Section 5.2 (Provider Warranty) does not apply to any Beta Products. Customer acknowledges that Beta Products are experimental in nature and may be modified or removed at Provider's discretion with or without notice.
|
|
91
|
+
8. Logo Rights. Provider may identify Customer and use Customer's name and logo in marketing to identify Customer as a user of Provider's products and services. However, Provider may not otherwise make any public announcements referencing Customer without Customer's prior approval.
|
|
92
|
+
9. Notices. Any notice, request, or approval about the Agreement must be in writing and sent to the Notice Address. Notices will be deemed given (a) upon confirmed delivery if by email, registered or certified mail, or personal delivery; or (b) two days after mailing if by overnight commercial delivery.
|
|
93
|
+
10. Independent Contractors. The parties are independent contractors, not agents, partners, or joint venturers. Neither party is authorized to bind the other to any liability or obligation.
|
|
94
|
+
11. No Third-Party Beneficiary. There are no third-party beneficiaries of this Agreement.
|
|
95
|
+
12. Export Controls. Customer may not remove or export from the United States or allow the export or re-export of the Product or any related technology or materials in violation of any restrictions, laws, or regulations of the United States Department of Commerce, OFAC, or any other United States or foreign agency or authority. Customer represents and warrants that it is not (a) a resident or national of an Embargoed Country; (b) an entity organized under the laws of an Embargoed Country; (c) designated on any list of prohibited, restricted, or sanctioned parties maintained by the U.S. government or agencies or other applicable governments or agencies, including OFAC’s Specially Designated Nationals and Blocked Persons List and the UN Security Council Consolidated List; nor (d) 50% or more owned by any party designated on any of the above lists. Provider may terminate this Agreement immediately without notice or liability to comply, as determined in Provider's sole discretion, with applicable export controls and sanctions laws and regulations.
|
|
96
|
+
13. Government Rights. The Software is deemed "commercial items" or "commercial computer software" according to FAR section 12.212 and DFAR section 227.7202, and the Documentation is "commercial computer software documentation" according to DFAR section 252.227-7014(a)(1) and (5). Any use, modification, reproduction, release, performance, display, or disclosure of the Product by the U.S. Government will be governed solely by the terms of this Agreement and all other use is prohibited.
|
|
97
|
+
14. Anti-Bribery. Neither party will take any action that would be a violation of any Applicable Laws that prohibit the offering, giving, promising to offer or give, or receiving, directly or indirectly, money or anything of value to any third party to assist Provider or Customer in retaining or obtaining business. Examples of these kinds of laws include the U.S. Foreign Corrupt Practices Act and the UK Bribery Act 2010.
|
|
98
|
+
15. Titles and Interpretation. Section titles are for convenience and reference only. All uses of "including" and similar phrases are non-exhaustive and without limitation. The United Nations Convention for the International Sale of Goods and the Uniform Computer Information Transaction Act do not apply to this Agreement.
|
|
99
|
+
16. Signature. This Agreement may be signed in counterparts, including by electronic copies or acceptance mechanism. Each copy will be deemed an original and all copies, when taken together, will be the same agreement.
|
|
100
|
+
11. Definitions
|
|
101
|
+
1. Defining Variables. Variables have the meanings or descriptions given on a Cover Page. However, if the Order Form and the governing Framework Terms omit or do not define a Variable, the default meaning will be "none" or "not applicable" and the correlating clause, sentence, or section does not apply to that Agreement.
|
|
102
|
+
2. **"Affiliate"** means an entity that, directly or indirectly, controls, is under the control of, or is under common control with a party, where control means having more than fifty percent (50%) of the voting stock or other ownership interest.
|
|
103
|
+
3. **"Agreement"** means the Order Form between Provider and Customer as governed by the Framework Terms.
|
|
104
|
+
4. **"Applicable Data Protection Laws"** means the Applicable Laws that govern how the Product may process or use an individual’s personal information, personal data, personally identifiable information, or other similar term.
|
|
105
|
+
5. **"Applicable Laws"** means the laws, rules, regulations, court orders, and other binding requirements of a relevant government authority that apply to or govern Provider or Customer.
|
|
106
|
+
6. **"Beta Product"** means an early or prerelease feature or version of the Product that is identified as beta or similar, or a version of the Product that is not generally available.
|
|
107
|
+
7. **"Confidential Information"** means information in any form disclosed by or on behalf of a Discloser, including before the Effective Date, to a Recipient in connection with this Agreement that (a) the Discloser identifies as "confidential", "proprietary", or the like; or (b) should be reasonably understood as confidential or proprietary due to its nature and the circumstances of its disclosure. Confidential Information includes the existence of this Agreement and the information on each Cover Page. Provider's Confidential Information includes non-public information about the Product.
|
|
108
|
+
8. **"Cover Page"** means a document that is signed or electronically accepted by the parties, incorporates these Standard Terms or is governed by the Framework Terms, and identifies Provider and Customer. A Cover Page may include an Order Form, Key Terms, or both.
|
|
109
|
+
9. **"Covered Claim"** means either a Provider Covered Claim or Customer Covered Claim.
|
|
110
|
+
10. **"Discloser"** means a party to this Agreement when the party is providing or disclosing Confidential Information to the other party.
|
|
111
|
+
11. **"Documentation"** means the usage manuals and instructional materials for the Software that are made available by Provider.
|
|
112
|
+
12. **"Embargoed Country"** means any country or region to or from where Applicable Laws generally restrict the export or import of goods, services, or money.
|
|
113
|
+
13. **"Feedback"** means suggestions, feedback, or comments about the Product or related offerings.
|
|
114
|
+
14. **"Fees"** means the applicable amounts described in an Order Form.
|
|
115
|
+
15. **"Force Majeure Event"** means an unforeseen event outside a party’s reasonable control where the affected party took reasonable measures to avoid or mitigate the impacts of the event. Examples of these kinds of events include unpredicted natural disasters like a major earthquake, war, pandemic, riot, act of terrorism, or public utility or internet failure.
|
|
116
|
+
16. **"Framework Terms"** means these Standard Terms, the Key Terms between Provider and Customer, and any policies and documents referenced in or attached to the Key Terms.
|
|
117
|
+
17. **"GDPR"** means European Union Regulation 2016/679 as implemented by local law in the relevant European Union member nation, and by section 3 of the United Kingdom’s European Union (Withdrawal) Act of 2018 in the United Kingdom.
|
|
118
|
+
18. **"High Risk Activity"** means any situation where the use or failure of the Product could be reasonably expected to lead to death, bodily injury, or environmental damage. Examples include full or partial autonomous vehicle technology, medical life-support technology, emergency response services, nuclear facilities operation, and air traffic control.
|
|
119
|
+
19. **"Indemnifying Party"** means a party to this Agreement when the party is providing protection for a particular Covered Claim.
|
|
120
|
+
20. **"Key Terms"** means a Cover Page that includes the key legal details and Variables for this Agreement. The Key Terms may include details about Covered Claims, set the Governing Law, or contain other details about this Agreement.
|
|
121
|
+
21. **"OFAC"** means the United States Department of Treasury's Office of Foreign Assets Control.
|
|
122
|
+
22. **"Open Source Software"** means any software that is distributed as "free software", as "open source software", under a "copyleft" agreement, or is otherwise subject to the terms of any license that requires, as a condition on the use, copying, modification, or distribution of such software that the software (a) be disclosed or distributed in source code form, (b) be licensed for the purpose of making derivative works, or (c) be redistributed at no or minimal charge.
|
|
123
|
+
23. **"Order Form"** means a Cover Page that includes the key business details and Variables for this Agreement that are not defined in the Framework Terms. An Order Form includes the policies and documents referenced in or attached to the Order Form. An Order Form may include details about the Software, length of Subscription Period, or other details about the Product.
|
|
124
|
+
24. **"Personal Data"** will have the meaning(s) set forth in the Applicable Data Protection Laws for personal information, personal data, personally identifiable information, or other similar term.
|
|
125
|
+
25. **"Product"** means the Software and Documentation.
|
|
126
|
+
26. **"Protected Party"** means a party to this Agreement when the party is receiving the benefit of protection for a particular Covered Claim.
|
|
127
|
+
27. **"Recipient"** means a party to this Agreement when the party receives Confidential Information from the other party.
|
|
128
|
+
28. **"Services"** means the support and maintenance services described in the Order Form.
|
|
129
|
+
29. **"Software"** means the product described in the Order Form and provided Updates.
|
|
130
|
+
30. **"Standard Terms"** means these Common Paper Software License Standard Terms Version 1.1, which are posted at <https://commonpaper.com/standards/software-license-agreement/1.1>.
|
|
131
|
+
31. **"Updates"** means updates and maintenance releases to the Software made available by Provider to Customer.
|
|
132
|
+
32. **"Usage Data"** means data and information about the provision, use, and performance of the Product and related offerings based on Customer's or User’s use of the Product.
|
|
133
|
+
33. **"User"** means any individual who uses the Product on Customer's behalf or through Customer's account.
|
|
134
|
+
34. **"Variable"** means a word or phrase that is highlighted and capitalized, such as Subscription Period or Governing Law.
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// The npm launcher of turf-mcp-server: finds this platform's binary in its
|
|
3
|
+
// optional dependency @turfbuild/turf-mcp-server-<os>-<arch> and runs it with
|
|
4
|
+
// this process's arguments and stdio.
|
|
5
|
+
//
|
|
6
|
+
// It is an MCP stdio server's launcher, so it never writes to stdout: what it
|
|
7
|
+
// has to say goes to stderr, and stdout is the child's alone.
|
|
8
|
+
//
|
|
9
|
+
// restate-server comes from Restate's own package, @restatedev/restate-server,
|
|
10
|
+
// a dependency of this one. Its real binary sits in Restate's platform package,
|
|
11
|
+
// which is resolved from where Restate's package is installed (nested or
|
|
12
|
+
// hoisted alike) and handed to the server as TURF_RESTATE_SERVER, unless that is
|
|
13
|
+
// already set. Not finding it is no failure: the server needs restate-server
|
|
14
|
+
// only to run a local engine.
|
|
15
|
+
"use strict";
|
|
16
|
+
|
|
17
|
+
const { spawn } = require("child_process");
|
|
18
|
+
const os = require("os");
|
|
19
|
+
const path = require("path");
|
|
20
|
+
|
|
21
|
+
const SUPPORTED = ["darwin-arm64", "darwin-x64", "linux-arm64", "linux-x64"];
|
|
22
|
+
const key = `${process.platform}-${process.arch}`;
|
|
23
|
+
|
|
24
|
+
function fail(msg) {
|
|
25
|
+
process.stderr.write(`turf-mcp-server: ${msg}\n`);
|
|
26
|
+
process.exit(1);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if (!SUPPORTED.includes(key)) {
|
|
30
|
+
fail(`no build for ${key} (supported: ${SUPPORTED.join(", ")})`);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
let bin;
|
|
34
|
+
try {
|
|
35
|
+
bin = require.resolve(`@turfbuild/turf-mcp-server-${key}/bin/turf-mcp-server`);
|
|
36
|
+
} catch (e) {
|
|
37
|
+
fail(
|
|
38
|
+
`the platform package @turfbuild/turf-mcp-server-${key} is not installed ` +
|
|
39
|
+
"(an install with optional dependencies omitted skips it); reinstall @turfbuild/turf-mcp-server",
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function restateServer() {
|
|
44
|
+
try {
|
|
45
|
+
const top = path.dirname(require.resolve("@restatedev/restate-server/package.json"));
|
|
46
|
+
return require.resolve(`@restatedev/restate-server-${key}/bin/restate-server`, { paths: [top] });
|
|
47
|
+
} catch (e) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const env = { ...process.env };
|
|
53
|
+
if (!env.TURF_RESTATE_SERVER) {
|
|
54
|
+
const restate = restateServer();
|
|
55
|
+
if (restate) env.TURF_RESTATE_SERVER = restate;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const child = spawn(bin, process.argv.slice(2), { stdio: "inherit", env });
|
|
59
|
+
|
|
60
|
+
const FORWARDED = ["SIGINT", "SIGTERM", "SIGHUP", "SIGUSR1", "SIGUSR2"];
|
|
61
|
+
const forward = (signal) => {
|
|
62
|
+
if (child.exitCode === null && child.signalCode === null) child.kill(signal);
|
|
63
|
+
};
|
|
64
|
+
for (const signal of FORWARDED) process.on(signal, forward);
|
|
65
|
+
|
|
66
|
+
child.on("error", (err) => fail(`cannot run ${bin}: ${err.message}`));
|
|
67
|
+
|
|
68
|
+
child.on("exit", (code, signal) => {
|
|
69
|
+
if (signal) {
|
|
70
|
+
// Die of the same signal, so a parent sees what the server saw.
|
|
71
|
+
for (const s of FORWARDED) process.removeListener(s, forward);
|
|
72
|
+
process.kill(process.pid, signal);
|
|
73
|
+
// A signal whose default action is not to terminate (or that Node keeps
|
|
74
|
+
// for itself, SIGUSR1) leaves us here: exit as a shell would report it.
|
|
75
|
+
setTimeout(() => process.exit(128 + (os.constants.signals[signal] || 0)), 100).unref();
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
process.exit(code === null ? 1 : code);
|
|
79
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@turfbuild/turf-mcp-server",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.5.0",
|
|
4
|
+
"description": "The MCP server of Turf, which gives an AI agent infrastructure-as-code tools over ordinary Terraform configurations.",
|
|
5
|
+
"mcpName": "build.turf/turf",
|
|
6
|
+
"homepage": "https://turf.build",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/turfbuild/turf.git",
|
|
10
|
+
"directory": "npm/turf-mcp-server"
|
|
11
|
+
},
|
|
12
|
+
"author": "Turf LLC",
|
|
13
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
14
|
+
"bin": {
|
|
15
|
+
"turf-mcp-server": "bin/turf-mcp-server.js"
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"bin/turf-mcp-server.js",
|
|
19
|
+
"LICENSE",
|
|
20
|
+
"STANDARD-TERMS.md",
|
|
21
|
+
"NOTICE",
|
|
22
|
+
"README.md"
|
|
23
|
+
],
|
|
24
|
+
"engines": {
|
|
25
|
+
"node": ">=18"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@restatedev/restate-server": "1.8.1"
|
|
29
|
+
},
|
|
30
|
+
"optionalDependencies": {
|
|
31
|
+
"@turfbuild/turf-mcp-server-darwin-arm64": "1.5.0",
|
|
32
|
+
"@turfbuild/turf-mcp-server-darwin-x64": "1.5.0",
|
|
33
|
+
"@turfbuild/turf-mcp-server-linux-arm64": "1.5.0",
|
|
34
|
+
"@turfbuild/turf-mcp-server-linux-x64": "1.5.0"
|
|
35
|
+
},
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public"
|
|
38
|
+
}
|
|
39
|
+
}
|