Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Generated by https://smithery.ai. See: https://smithery.ai/docs/config#dockerfile
# Start with a Python image that includes hatchling
FROM python:3.11-slim

# Set working directory
WORKDIR /app

# Copy the necessary files
COPY pyproject.toml README.md /app/

# Install the project's dependencies
RUN pip install hatchling

# Use hatchling to build the project
RUN hatch build

# Install the built project
RUN pip install .

# Expose necessary environment variables for LogSeq API
ENV LOGSEQ_API_TOKEN=your_token_here
ENV LOGSEQ_API_URL=http://localhost:12315

# Set the entrypoint to the MCP server script
ENTRYPOINT ["mcp-logseq"]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# MCP server for LogSeq
[![smithery badge](https://smithery.ai/badge/mcp-logseq)](https://smithery.ai/server/mcp-logseq)

MCP server to interact with LogSeq via its API.

Expand Down
21 changes: 21 additions & 0 deletions smithery.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Smithery configuration file: https://smithery.ai/docs/config#smitheryyaml

startCommand:
type: stdio
configSchema:
# JSON Schema defining the configuration options for the MCP.
type: object
required:
- logseqApiToken
properties:
logseqApiToken:
type: string
description: The API token for the LogSeq server.
logseqApiUrl:
type: string
default: http://localhost:12315
description: The URL for the LogSeq server.
commandFunction:
# A function that produces the CLI command to start the MCP on stdio.
|-
(config) => ({command: 'mcp-logseq', args: [], env: {LOGSEQ_API_TOKEN: config.logseqApiToken, LOGSEQ_API_URL: config.logseqApiUrl}})