@openconductor/mcp-sdk 1.0.1 → 1.0.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.
- package/README.md +13 -13
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
|
|
45
45
|
// Optional: Enable observability
|
|
46
46
|
initTelemetry({
|
|
47
|
-
apiKey: 'oc_xxx', // Get free key at openconductor.
|
|
47
|
+
apiKey: 'oc_xxx', // Get free key at openconductor.ai
|
|
48
48
|
serverName: 'my-server',
|
|
49
49
|
serverVersion: '1.0.0'
|
|
50
50
|
})
|
|
@@ -83,7 +83,7 @@ throw new ValidationError('amount', 'Must be positive', -5)
|
|
|
83
83
|
|
|
84
84
|
**10 error types included:** ValidationError, ToolNotFoundError, ToolExecutionError, ResourceNotFoundError, AuthenticationError, AuthorizationError, RateLimitError, TimeoutError, DependencyError, ConfigurationError
|
|
85
85
|
|
|
86
|
-
[→ Error Handling Guide](
|
|
86
|
+
[→ Error Handling Guide](https://github.com/epicmotionSD/mcp-sdk/blob/main/docs/errors.md)
|
|
87
87
|
|
|
88
88
|
### ✅ Validation
|
|
89
89
|
|
|
@@ -103,7 +103,7 @@ const handler = validateInput(
|
|
|
103
103
|
)
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
-
[→ Validation Guide](
|
|
106
|
+
[→ Validation Guide](https://github.com/epicmotionSD/mcp-sdk/blob/main/docs/validation.md)
|
|
107
107
|
|
|
108
108
|
### 📝 Logging
|
|
109
109
|
|
|
@@ -153,7 +153,7 @@ Optional observability for production:
|
|
|
153
153
|
import { initTelemetry } from '@openconductor/mcp-sdk/telemetry'
|
|
154
154
|
|
|
155
155
|
initTelemetry({
|
|
156
|
-
apiKey: 'oc_xxx', // Free tier at openconductor.
|
|
156
|
+
apiKey: 'oc_xxx', // Free tier at openconductor.ai
|
|
157
157
|
serverName: 'my-server',
|
|
158
158
|
serverVersion: '1.0.0',
|
|
159
159
|
})
|
|
@@ -167,7 +167,7 @@ initTelemetry({
|
|
|
167
167
|
|
|
168
168
|
**Privacy:** Only tool names, durations, and errors are sent. Never inputs, outputs, or user data.
|
|
169
169
|
|
|
170
|
-
[→ Telemetry Guide](
|
|
170
|
+
[→ Telemetry Guide](https://github.com/epicmotionSD/mcp-sdk/blob/main/docs/telemetry.md)
|
|
171
171
|
|
|
172
172
|
## Tree-Shakeable Imports
|
|
173
173
|
|
|
@@ -187,17 +187,17 @@ import { initTelemetry } from '@openconductor/mcp-sdk/telemetry'
|
|
|
187
187
|
|
|
188
188
|
## Documentation
|
|
189
189
|
|
|
190
|
-
- **[Getting Started](
|
|
191
|
-
- **[Error Handling](
|
|
192
|
-
- **[Validation](
|
|
193
|
-
- **[Telemetry](
|
|
194
|
-
- **[API Reference](
|
|
190
|
+
- **[Getting Started](https://github.com/epicmotionSD/mcp-sdk/blob/main/docs/getting-started.md)** — Build your first server
|
|
191
|
+
- **[Error Handling](https://github.com/epicmotionSD/mcp-sdk/blob/main/docs/errors.md)** — All error types and usage
|
|
192
|
+
- **[Validation](https://github.com/epicmotionSD/mcp-sdk/blob/main/docs/validation.md)** — Schema patterns and helpers
|
|
193
|
+
- **[Telemetry](https://github.com/epicmotionSD/mcp-sdk/blob/main/docs/telemetry.md)** — Observability setup
|
|
194
|
+
- **[API Reference](https://github.com/epicmotionSD/mcp-sdk/blob/main/docs/api-reference.md)** — Complete API docs
|
|
195
195
|
|
|
196
196
|
## Examples
|
|
197
197
|
|
|
198
198
|
### Full MCP Server
|
|
199
199
|
|
|
200
|
-
See [examples/full-server](
|
|
200
|
+
See [examples/full-server](https://github.com/epicmotionSD/mcp-sdk/tree/main/examples/full-server) for a complete implementation.
|
|
201
201
|
|
|
202
202
|
### FastMCP Integration
|
|
203
203
|
|
|
@@ -222,8 +222,8 @@ server.addTool({
|
|
|
222
222
|
|
|
223
223
|
## Contributing
|
|
224
224
|
|
|
225
|
-
Contributions welcome! See [CONTRIBUTING.md](
|
|
225
|
+
Contributions welcome! See [CONTRIBUTING.md](https://github.com/epicmotionSD/mcp-sdk/blob/main/CONTRIBUTING.md).
|
|
226
226
|
|
|
227
227
|
## License
|
|
228
228
|
|
|
229
|
-
MIT © [OpenConductor](https://openconductor.
|
|
229
|
+
MIT © [OpenConductor](https://openconductor.ai)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openconductor/mcp-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "The standard SDK for building MCP servers — error handling, validation, logging, and telemetry out of the box",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"validation",
|
|
61
61
|
"telemetry"
|
|
62
62
|
],
|
|
63
|
-
"author": "OpenConductor <hello@openconductor.
|
|
63
|
+
"author": "OpenConductor <hello@openconductor.ai>",
|
|
64
64
|
"license": "MIT",
|
|
65
65
|
"repository": {
|
|
66
66
|
"type": "git",
|