Commit graph

169 commits

Author SHA1 Message Date
Justin Spahr-Summers
437a870029
Tests for request timeout 2024-11-16 16:37:24 +00:00
Justin Spahr-Summers
35396f4a8d
Report errors sending cancellation 2024-11-16 16:31:45 +00:00
Justin Spahr-Summers
2cc3bc8a40
Add RequestOptions.timeout 2024-11-16 16:30:20 +00:00
Justin Spahr-Summers
53f55b8edf
Remove abortAfterTimeout
It's fundamentally flawed because it doesn't support easy cancellation of the timeout.
2024-11-16 16:18:35 +00:00
Justin Spahr-Summers
cfd3464238
Merge pull request #57 from modelcontextprotocol/dependabot/npm_and_yarn/npm_and_yarn-7503158af6
Bump @eslint/plugin-kit from 0.2.1 to 0.2.3 in the npm_and_yarn group across 1 directory
2024-11-16 16:17:35 +00:00
Justin Spahr-Summers
c32e057c72
Merge pull request #58 from modelcontextprotocol/justin/improve-abort
Add message to `abortAfterTimeout`, add missing request `options`
2024-11-16 16:03:59 +00:00
Justin Spahr-Summers
7d50d8ca16
Add missing options to request methods 2024-11-16 15:59:03 +00:00
Justin Spahr-Summers
65e3555620
Add message when aborting due to timeout 2024-11-16 15:57:15 +00:00
dependabot[bot]
e966ffde94
Bump @eslint/plugin-kit in the npm_and_yarn group across 1 directory
Bumps the npm_and_yarn group with 1 update in the / directory: [@eslint/plugin-kit](https://github.com/eslint/rewrite).


Updates `@eslint/plugin-kit` from 0.2.1 to 0.2.3
- [Release notes](https://github.com/eslint/rewrite/releases)
- [Changelog](https://github.com/eslint/rewrite/blob/main/release-please-config.json)
- [Commits](https://github.com/eslint/rewrite/compare/plugin-kit-v0.2.1...plugin-kit-v0.2.3)

---
updated-dependencies:
- dependency-name: "@eslint/plugin-kit"
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-15 21:41:58 +00:00
Justin Spahr-Summers
106d1c26b0
Bump version 0.5.0 2024-11-15 13:44:39 +00:00
Justin Spahr-Summers
c3495d2f7a
Merge pull request #56 from modelcontextprotocol/justin/configurable-stderr
Make stderr behavior configurable
2024-11-15 13:39:30 +00:00
Justin Spahr-Summers
9db00579b0
Merge pull request #54 from modelcontextprotocol/justin/cancellation
Implement cancellation notifications and handling
2024-11-15 13:39:17 +00:00
Justin Spahr-Summers
b59c381abf
Make stderr behavior configurable 2024-11-14 20:13:13 +00:00
Ani Betts
e9efdba88c
Merge pull request #55 from modelcontextprotocol/ani/no-dosbox-please
Don't open a terminal window on Windows
2024-11-14 16:15:43 +01:00
Anaïs Betts
8e2e917992
Don't open a terminal window on Windows 2024-11-14 16:11:10 +01:00
Justin Spahr-Summers
9882f1c919
Add abortAfterTimeout() utility to make it easy to add timeouts 2024-11-14 14:25:16 +00:00
Justin Spahr-Summers
6ec4c09325
Add tests for issuing cancellation notifications 2024-11-14 14:11:11 +00:00
Justin Spahr-Summers
1451d0ea24
Explicitly allow cancelled notifications without any capability 2024-11-14 14:07:28 +00:00
Justin Spahr-Summers
15bd2dc7aa
Fix cancelled notification method name 2024-11-14 14:07:16 +00:00
Justin Spahr-Summers
1b08f203ea
Catch errors that occur when a handler is invoked, but before it returns a Promise 2024-11-14 14:02:51 +00:00
Justin Spahr-Summers
90ba8950d2
Pass an AbortSignal to request handlers 2024-11-14 13:57:04 +00:00
Justin Spahr-Summers
54d146bbdc
Support passing an AbortSignal to request() 2024-11-14 13:42:18 +00:00
Justin Spahr-Summers
347e8905a9
Add types for cancellation notifications 2024-11-14 13:39:43 +00:00
Justin Spahr-Summers
d0c83e946c
Fix notification params schemas not permitting _meta 2024-11-14 13:26:24 +00:00
Justin Spahr-Summers
f6c986d81f
Merge pull request #50 from modelcontextprotocol/justin/call-tool-iserror
`CallToolResult.isError` should not be required
2024-11-12 13:48:42 +00:00
Justin Spahr-Summers
002f82332d
Merge branch 'main' into justin/call-tool-iserror 2024-11-12 13:47:43 +00:00
Justin Spahr-Summers
02c5021e96
Merge pull request #51 from modelcontextprotocol/justin/test-version-negotiation
Improve and test version negotiation
2024-11-12 13:47:27 +00:00
Justin Spahr-Summers
6aab7ee643
Merge pull request #52 from modelcontextprotocol/justin/capabilities-negotiation
Test capabilities, use explicit specifiers for now
2024-11-12 13:46:26 +00:00
Justin Spahr-Summers
70cfb0f0d4
Unify error text 2024-11-12 12:17:35 +00:00
Justin Spahr-Summers
8b307a5d62
Check capabilities when request handlers are set 2024-11-12 12:16:43 +00:00
Justin Spahr-Summers
64c2862883
Check and add tests for notification capabilities too 2024-11-12 12:02:10 +00:00
Justin Spahr-Summers
268aac8a15
Merge pull request #53 from modelcontextprotocol/justin/release-environment
Restrict publishing to `release` environment
2024-11-12 11:50:21 +00:00
Justin Spahr-Summers
dc45f5d148
Handle capabilities checks at the request() level, make non-strict by default 2024-11-12 10:57:59 +00:00
Justin Spahr-Summers
f6fe741067
Restrict publishing to 'release' environment 2024-11-12 10:20:38 +00:00
Justin Spahr-Summers
8e369b7171
Lint 2024-11-11 22:49:53 +00:00
Justin Spahr-Summers
af03a74f5a
Fix missing argument in cli.ts 2024-11-11 22:42:01 +00:00
Justin Spahr-Summers
7ab5880569
Use explicit capabilities lists for now 2024-11-11 22:38:43 +00:00
Justin Spahr-Summers
90e91cdd62
Tests and assertions for client/server capabilities
Resolves #45.
2024-11-11 22:30:50 +00:00
Justin Spahr-Summers
852ebb9ec0
Add an InMemoryTransport 2024-11-11 22:27:45 +00:00
Justin Spahr-Summers
c82d633d8d
Disconnect from client side if initialization fails
Resolves #24.
2024-11-11 22:08:46 +00:00
Justin Spahr-Summers
8ea66e7df9
Tests for protocol version negotiation
Resolves #44.
2024-11-11 22:05:13 +00:00
Justin Spahr-Summers
7631cdb6d1
CallToolResult.isError should not be required 2024-11-11 21:27:02 +00:00
Justin Spahr-Summers
2c220862e2
npm install 2024-11-11 21:06:18 +00:00
Justin Spahr-Summers
0a7461cfc7
Merge pull request #49 from modelcontextprotocol/jspahrsummers-patch-1
Update README title
2024-11-11 16:22:53 +00:00
Justin Spahr-Summers
b3f89f56cd
Update README title 2024-11-11 16:00:24 +00:00
Justin Spahr-Summers
373b6f1d71
Remove provenance, not supported on private repos 0.4.0 2024-11-11 15:49:52 +00:00
Justin Spahr-Summers
2cc496dfe7
Merge pull request #48 from modelcontextprotocol/justin/auto-publish-npm
Publish releases publicly to npm
2024-11-11 15:45:07 +00:00
Justin Spahr-Summers
acb96d996d
Publish releases publicly to npm 2024-11-11 15:43:12 +00:00
Justin Spahr-Summers
fd907524d0
Bump version for initial publishing 2024-11-11 15:06:05 +00:00
Justin Spahr-Summers
6164360c05
Merge pull request #47 from modelcontextprotocol/justin/oss-prep
Add license information and more package metadata
2024-11-11 12:08:59 +00:00