Compare commits
8 Commits
1.0.0-alph
...
1.0.0-alph
| Author | SHA1 | Date | |
|---|---|---|---|
| c8014bd8c9 | |||
| cc4e71f920 | |||
| 175aebb218 | |||
| 52a5b4ce54 | |||
| 87d04ee834 | |||
| 3ecab8a9c6 | |||
| 9adc81705f | |||
| b52d2597f8 |
54
.github/workflows/release.yml
vendored
54
.github/workflows/release.yml
vendored
@@ -110,25 +110,43 @@ jobs:
|
|||||||
|
|
||||||
- name: Create draft release (Gitea)
|
- name: Create draft release (Gitea)
|
||||||
if: github.server_url != 'https://github.com'
|
if: github.server_url != 'https://github.com'
|
||||||
uses: https://gitea.com/actions/gitea-release-action@main
|
env:
|
||||||
with:
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
files: |
|
run: |
|
||||||
main.js
|
TAG_VERSION="${GITHUB_REF#refs/tags/}"
|
||||||
manifest.json
|
|
||||||
styles.css
|
|
||||||
draft: true
|
|
||||||
title: ${{ github.ref_name }}
|
|
||||||
body: |
|
|
||||||
Release ${{ github.ref_name }}
|
|
||||||
|
|
||||||
## Changes
|
# Create release via API
|
||||||
|
RESPONSE=$(curl -s -X POST \
|
||||||
|
-H "Accept: application/json" \
|
||||||
|
-H "Authorization: token $GITHUB_TOKEN" \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases" \
|
||||||
|
-d "$(cat <<EOF
|
||||||
|
{
|
||||||
|
"tag_name": "$TAG_VERSION",
|
||||||
|
"name": "$TAG_VERSION",
|
||||||
|
"body": "Release $TAG_VERSION\n\n## Changes\n\n*Add release notes here before publishing*\n\n## Installation\n\n1. Download main.js, manifest.json, and styles.css\n2. Create a folder in .obsidian/plugins/mcp-server/\n3. Copy the three files into the folder\n4. Reload Obsidian\n5. Enable the plugin in Settings → Community Plugins",
|
||||||
|
"draft": true,
|
||||||
|
"prerelease": false
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
)")
|
||||||
|
|
||||||
*Add release notes here before publishing*
|
# Extract release ID using grep and sed (no jq dependency)
|
||||||
|
RELEASE_ID=$(echo "$RESPONSE" | grep -o '"id":[0-9]*' | head -1 | grep -o '[0-9]*')
|
||||||
|
|
||||||
## Installation
|
echo "Created release with ID: $RELEASE_ID"
|
||||||
|
|
||||||
1. Download main.js, manifest.json, and styles.css
|
# Upload release assets
|
||||||
2. Create a folder in .obsidian/plugins/obsidian-mcp-server/
|
for file in main.js manifest.json styles.css; do
|
||||||
3. Copy the three files into the folder
|
echo "Uploading $file..."
|
||||||
4. Reload Obsidian
|
curl -X POST \
|
||||||
5. Enable the plugin in Settings → Community Plugins
|
-H "Accept: application/json" \
|
||||||
|
-H "Authorization: token $GITHUB_TOKEN" \
|
||||||
|
-H "Content-Type: application/octet-stream" \
|
||||||
|
--data-binary "@$file" \
|
||||||
|
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases/$RELEASE_ID/assets?name=$file"
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "✅ Draft release created: $TAG_VERSION"
|
||||||
|
echo "Visit ${{ github.server_url }}/${{ github.repository }}/releases to review and publish"
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ The build command includes TypeScript type checking via `tsc -noEmit -skipLibChe
|
|||||||
|
|
||||||
### Installing in Obsidian
|
### Installing in Obsidian
|
||||||
After building, the plugin outputs `main.js` to the root directory. To test in Obsidian:
|
After building, the plugin outputs `main.js` to the root directory. To test in Obsidian:
|
||||||
1. Copy `main.js`, `manifest.json`, and `styles.css` to your vault's `.obsidian/plugins/obsidian-mcp-server/` directory
|
1. Copy `main.js`, `manifest.json`, and `styles.css` to your vault's `.obsidian/plugins/mcp-server/` directory
|
||||||
2. Reload Obsidian (Ctrl/Cmd + R in dev mode)
|
2. Reload Obsidian (Ctrl/Cmd + R in dev mode)
|
||||||
3. Enable the plugin in Settings → Community Plugins
|
3. Enable the plugin in Settings → Community Plugins
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Contributing to Obsidian MCP Server Plugin
|
# Contributing to MCP Server Plugin
|
||||||
|
|
||||||
Thank you for your interest in contributing to the Obsidian MCP Server Plugin! This document provides guidelines and information for contributors.
|
Thank you for your interest in contributing to the MCP Server Plugin! This document provides guidelines and information for contributors.
|
||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
@@ -64,12 +64,12 @@ For feature requests, please describe:
|
|||||||
|
|
||||||
**Linux/macOS:**
|
**Linux/macOS:**
|
||||||
```bash
|
```bash
|
||||||
ln -s /path/to/your/dev/obsidian-mcp-server /path/to/vault/.obsidian/plugins/obsidian-mcp-server
|
ln -s /path/to/your/dev/obsidian-mcp-server /path/to/vault/.obsidian/plugins/mcp-server
|
||||||
```
|
```
|
||||||
|
|
||||||
**Windows (Command Prompt as Administrator):**
|
**Windows (Command Prompt as Administrator):**
|
||||||
```cmd
|
```cmd
|
||||||
mklink /D "C:\path\to\vault\.obsidian\plugins\obsidian-mcp-server" "C:\path\to\your\dev\obsidian-mcp-server"
|
mklink /D "C:\path\to\vault\.obsidian\plugins\mcp-server" "C:\path\to\your\dev\obsidian-mcp-server"
|
||||||
```
|
```
|
||||||
|
|
||||||
4. **Start development build:**
|
4. **Start development build:**
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# Obsidian MCP Server Plugin
|
# MCP Server Plugin
|
||||||
|
|
||||||
An Obsidian plugin that makes your vault accessible via the [Model Context Protocol (MCP)](https://modelcontextprotocol.io) over HTTP. This allows AI assistants and other MCP clients to interact with your Obsidian vault programmatically.
|
A plugin that makes your vault accessible via the [Model Context Protocol (MCP)](https://modelcontextprotocol.io) over HTTP. This allows AI assistants and other MCP clients to interact with your vault programmatically.
|
||||||
|
|
||||||
**Version:** 1.0.0 | **Tested with:** Obsidian v1.9.14 | **License:** MIT
|
**Version:** 1.0.0 | **Tested with:** Obsidian v1.9.14 | **License:** MIT
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
{
|
{
|
||||||
"id": "obsidian-mcp-server",
|
"id": "mcp-server",
|
||||||
"name": "MCP Server",
|
"name": "MCP Server",
|
||||||
"version": "1.0.0-alpha.3",
|
"version": "1.0.0-alpha.7",
|
||||||
"minAppVersion": "0.15.0",
|
"minAppVersion": "0.15.0",
|
||||||
"description": "Exposes Obsidian vault operations via Model Context Protocol (MCP) over HTTP.",
|
"description": "Exposes vault operations via Model Context Protocol (MCP) over HTTP.",
|
||||||
"author": "William Ballou",
|
"author": "William Ballou",
|
||||||
"isDesktopOnly": true,
|
"isDesktopOnly": true,
|
||||||
"fundingUrl": {
|
"fundingUrl": {
|
||||||
|
|||||||
8
package-lock.json
generated
8
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "obsidian-mcp-server",
|
"name": "mcp-server",
|
||||||
"version": "1.0.0-alpha.3",
|
"version": "1.0.0-alpha.7",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "obsidian-mcp-server",
|
"name": "mcp-server",
|
||||||
"version": "1.0.0-alpha.3",
|
"version": "1.0.0-alpha.7",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cors": "^2.8.5",
|
"cors": "^2.8.5",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "obsidian-mcp-server",
|
"name": "mcp-server",
|
||||||
"version": "1.0.0-alpha.3",
|
"version": "1.0.0-alpha.7",
|
||||||
"description": "MCP (Model Context Protocol) server plugin for Obsidian - exposes vault operations via HTTP",
|
"description": "MCP (Model Context Protocol) server plugin - exposes vault operations via HTTP",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "node esbuild.config.mjs",
|
"dev": "node esbuild.config.mjs",
|
||||||
|
|||||||
Reference in New Issue
Block a user