@notionhq/notion-mcp-server 1.1.0 → 1.2.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/README.md CHANGED
@@ -56,3 +56,9 @@ Execute
56
56
  ```
57
57
  npx -y --prefix /path/to/local/notion-mcp-server @notionhq/notion-mcp-server
58
58
  ```
59
+
60
+ Publish
61
+
62
+ ```
63
+ npm publish --access public
64
+ ```
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "mcp",
7
7
  "server"
8
8
  ],
9
- "version": "1.1.0",
9
+ "version": "1.2.0",
10
10
  "license": "MIT",
11
11
  "type": "module",
12
12
  "scripts": {
@@ -31,28 +31,7 @@
31
31
  "description": "The [API version](https://developers.notion.com/reference/versioning) to use for this request. The latest version is `2022-06-28`."
32
32
  }
33
33
  },
34
- "schemas": {
35
- "pageIdObject": {
36
- "type": "object",
37
- "properties": {
38
- "page_id": {
39
- "type": "string"
40
- }
41
- },
42
- "additionalProperties": false,
43
- "required": ["page_id"]
44
- },
45
- "databaseIdObject": {
46
- "type": "object",
47
- "properties": {
48
- "database_id": {
49
- "type": "string"
50
- }
51
- },
52
- "additionalProperties": false,
53
- "required": ["database_id"]
54
- }
55
- }
34
+ "schemas": {}
56
35
  },
57
36
  "security": [
58
37
  {
@@ -647,7 +626,14 @@
647
626
  ],
648
627
  "properties": {
649
628
  "parent": {
650
- "$ref": "#/components/schemas/pageIdObject"
629
+ "type": "object",
630
+ "properties": {
631
+ "page_id": {
632
+ "type": "string",
633
+ "format": "uuid"
634
+ }
635
+ },
636
+ "required": ["page_id"]
651
637
  },
652
638
  "properties": {
653
639
  "type": "object",
@@ -717,24 +703,79 @@
717
703
  "application/json": {
718
704
  "schema": {
719
705
  "type": "object",
720
- "required": [
721
- "parent",
722
- "properties"
723
- ],
706
+ "required": ["parent","properties"],
724
707
  "properties": {
725
708
  "parent": {
726
- "type": "string",
727
- "description": "A [page parent](/reference/database#page-parent)",
728
- "format": "json"
729
- },
730
- "title": {
731
- "type": "array",
732
- "description": "Title of database as it appears in Notion. An array of [rich text objects](ref:rich-text)."
709
+ "type": "object",
710
+ "properties": {
711
+ "type": {
712
+ "enum": ["page_id"]
713
+ },
714
+ "page_id": {
715
+ "type": "string",
716
+ "format": "uuid"
717
+ }
718
+ },
719
+ "required": ["type", "page_id"]
733
720
  },
734
721
  "properties": {
735
- "type": "string",
722
+ "type": "object",
736
723
  "description": "Property schema of database. The keys are the names of properties as they appear in Notion and the values are [property schema objects](https://developers.notion.com/reference/property-schema-object).",
737
- "format": "json"
724
+ "additionalProperties": {
725
+ "oneOf": [
726
+ {
727
+ "type": "object",
728
+ "properties": {
729
+ "title": {
730
+ "type": "object",
731
+ "properties": {},
732
+ "additionalProperties": false
733
+ },
734
+ "description": {
735
+ "type": "string",
736
+ "maxLength": 280,
737
+ "minLength": 1
738
+ }
739
+ },
740
+ "additionalProperties": false,
741
+ "required": ["title"]
742
+ }
743
+ ]
744
+ }
745
+ },
746
+ "title": {
747
+ "type": "array",
748
+ "items": {
749
+ "type": "object",
750
+ "required": ["text"],
751
+ "properties": {
752
+ "text": {
753
+ "type": "object",
754
+ "properties": {
755
+ "content": {
756
+ "type": "string",
757
+ "maxLength": 2000
758
+ },
759
+ "link": {
760
+ "type": ["object", "null"],
761
+ "properties": {
762
+ "url": {
763
+ "type": "string"
764
+ }
765
+ },
766
+ "required": ["url"]
767
+ }
768
+ },
769
+ "additionalProperties": false,
770
+ "required": ["content"]
771
+ },
772
+ "type": {
773
+ "enum": ["text"]
774
+ }
775
+ },
776
+ "additionalProperties": false
777
+ },
778
+ "maxItems": 100
738
779
  }
739
780
  }
740
781
  }
package/tsconfig.json CHANGED
@@ -22,5 +22,5 @@
22
22
  "strict": true,
23
23
  "skipLibCheck": true
24
24
  },
25
- "include": [ "test/**/*.ts", "scripts/**/*.ts", "src/**/*.ts", "examples/**/*"]
25
+ "include": [ "test/**/*.ts", "scripts/**/*.ts", "src/**/*.ts"]
26
26
  }