Skip to content

Commit 60fa2f1

Browse files
committed
Fix
1 parent 25fb4c6 commit 60fa2f1

3 files changed

Lines changed: 47 additions & 5 deletions

File tree

mcp-server/.env.example

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# GitHub personal access token — https://github.com/settings/tokens
22
# Requires: repo scope (read issues, PRs, commits)
3-
# This value is used by both the GitHub dataset connector and the GitHub MCP
4-
# server subprocess (which reads GITHUB_PERSONAL_ACCESS_TOKEN from the env).
3+
# Used by both the GitHub dataset connector and the GitHub MCP server (via env: in spicepod.yaml).
54
GITHUB_PERSONAL_ACCESS_TOKEN=ghp_...
5+
6+
# Optional: Jira and Confluence (uncomment tools.jira in spicepod.yaml to use)
7+
# JIRA_URL=https://your-org.atlassian.net
8+
# JIRA_USERNAME=your@email.com
9+
# JIRA_API_TOKEN=...

mcp-server/README.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Edit `.env` and set your GitHub token:
6363
GITHUB_PERSONAL_ACCESS_TOKEN=ghp_...
6464
```
6565

66-
> The same token is used by both the GitHub dataset connector (via `${secrets:}`) and the GitHub MCP server subprocess (which reads `GITHUB_PERSONAL_ACCESS_TOKEN` from the environment).
66+
> The same token is used by both the GitHub dataset connector and the GitHub MCP server subprocess. Spice injects it via the `env:` block in `spicepod.yaml`.
6767
6868
**Step 3.** Start Spice:
6969

@@ -184,3 +184,39 @@ curl -s -XPOST http://127.0.0.1:8090/v1/tools/github/search_code \
184184
-H "X-API-KEY: foo" \
185185
-d '{"q": "java repo:spiceai/cookbook"}'
186186
```
187+
188+
## Optional: Adding Jira
189+
190+
To expose Jira and Confluence tools through the same MCP endpoint, add credentials to `.env`:
191+
192+
```env
193+
JIRA_URL=https://your-org.atlassian.net
194+
JIRA_USERNAME=your@email.com
195+
JIRA_API_TOKEN=...
196+
```
197+
198+
Uncomment the `jira` tool block in `spicepod.yaml`:
199+
200+
```yaml
201+
- name: jira
202+
from: mcp:uvx
203+
description: Jira and Confluence tools — query tickets, update status, search projects
204+
params:
205+
mcp_args: mcp-atlassian
206+
env:
207+
JIRA_URL: ${secrets:JIRA_URL}
208+
JIRA_USERNAME: ${secrets:JIRA_USERNAME}
209+
JIRA_API_TOKEN: ${secrets:JIRA_API_TOKEN}
210+
```
211+
212+
Restart Spice. Jira tools appear in the same catalog alongside GitHub and SQL:
213+
214+
```bash
215+
curl -s http://127.0.0.1:8090/v1/tools -H "X-API-KEY: foo" | jq '[.[].name | select(startswith("jira"))]'
216+
```
217+
218+
```json
219+
["jira/get_issue", "jira/search_issues", "jira/create_issue", "jira/list_projects", ...]
220+
```
221+
222+
Your AI assistant can now cross-reference GitHub PRs with Jira tickets through a single MCP connection.

mcp-server/spicepod.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@ datasets:
4747
enabled: true
4848
refresh_sql: SELECT * FROM github_commits LIMIT 500
4949

50-
# GitHub MCP server — write tools (create issues, comment, search code, etc.)
51-
# The subprocess inherits GITHUB_PERSONAL_ACCESS_TOKEN from the environment.
50+
# MCP servers — proxied through Spice's unified /v1/mcp endpoint
5251
tools:
52+
# GitHub MCP server — write tools (create issues, comment, search code, etc.)
5353
- name: github
5454
from: mcp:npx
5555
description: GitHub tools — create and update issues, review PRs, search code and repositories
5656
params:
5757
mcp_args: -y @modelcontextprotocol/server-github
58+
env:
59+
GITHUB_PERSONAL_ACCESS_TOKEN: ${secrets:GITHUB_PERSONAL_ACCESS_TOKEN}

0 commit comments

Comments
 (0)