Skip to content

Commit 0c7ad86

Browse files
authored
Merge pull request modelcontextprotocol#140 from salman1993/sm/annotated-timestamp
feat: add optional lastModified timestamp to Annotated
2 parents 42273f1 + b793f29 commit 0c7ad86

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

schema/draft/schema.json

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

schema/draft/schema.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -959,6 +959,17 @@ export interface Annotations {
959959
* @maximum 1
960960
*/
961961
priority?: number;
962+
963+
/**
964+
* The moment the resource was last modified, stored as a Unix epoch timestamp.
965+
*
966+
* Value is the number of **milliseconds** since 1970-01-01 00:00:00 UTC.
967+
* (Use `Date.now()` in JS/TS, or `Math.floor(Date.now() / 1000)` if you prefer seconds.)
968+
*
969+
* Examples: last activity timestamp in an open file, timestamp when the resource
970+
* was attached, etc.
971+
*/
972+
lastModified?: number;
962973
}
963974

964975
/** */

0 commit comments

Comments
 (0)