Context Weaver

Context Weaver

An MCP server that gives LLMs read-only access to Microsoft Project Online (Project for the Web) via the Microsoft Graph API.

Category
访问服务器

README

Context Weaver

An MCP server that gives LLMs read-only access to Microsoft Project Online (Project for the Web) via the Microsoft Graph API.

Built on the Model Context Protocol — works with Claude Desktop, Claude Code, and any MCP-compatible client.


What It Does

Context Weaver exposes 7 read-only tools that let an LLM query your Microsoft Project data:

Tool Description
authenticate Connect your Microsoft 365 account (OAuth 2.0 + PKCE)
list_projects List all plans you have access to
get_project Get project details, buckets, and task count
list_tasks List tasks with filters (bucket, assignee, status)
get_task Full task detail including description and checklist
list_buckets List project phases/columns
get_assignments Your tasks across all projects
check_overdue Find overdue incomplete tasks

v0 is read-only by design. No task mutations, no accidental side effects.


Prerequisites

  • Node.js ≥ 20
  • Microsoft 365 account with Project for the Web (Planner-based)
  • Azure AD app registration (see Setup below)

Setup

1. Register an Azure AD App

  1. Go to Azure Portal → App registrations
  2. Click New registration
    • Name: Context Weaver
    • Supported account types: Single tenant (or multi-tenant if needed)
    • Redirect URI: Web → http://localhost:3847/auth/callback
  3. Under Authentication, enable Allow public client flows
  4. Under API permissions, add:
    • Tasks.Read (Delegated)
    • Tasks.Read.Shared (Delegated)
    • Group.Read.All (Delegated)
    • User.Read (Delegated)
  5. Copy the Application (client) ID and Directory (tenant) ID

2. Configure Environment

cp .env.example .env

Edit .env:

AZURE_CLIENT_ID=your-client-id
AZURE_TENANT_ID=your-tenant-id

3. Install & Build

npm install
npm run build

Usage

With Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "context-weaver": {
      "command": "node",
      "args": ["/absolute/path/to/context-weaver/dist/index.js"],
      "env": {
        "AZURE_CLIENT_ID": "your-client-id",
        "AZURE_TENANT_ID": "your-tenant-id"
      }
    }
  }
}

With Claude Code

claude mcp add context-weaver node /absolute/path/to/context-weaver/dist/index.js

Development

npm run dev

Example Prompts

Once connected, try:

  • "What projects do I have access to?"
  • "Show me all overdue tasks"
  • "List the tasks in the Design phase of Project X"
  • "What's assigned to me this week?"
  • "Get the full details and checklist for task ABC123"

Architecture

LLM Client ◄──── MCP (stdio) ────► Context Weaver ──── Graph API ────► Project Online
                                    (TypeScript)         (OAuth 2.0)     (Planner)

Project Structure

src/
├── index.ts              # MCP server entry, tool registration
├── auth/
│   ├── oauth.ts          # PKCE auth flow
│   └── session.ts        # In-memory token store
├── graph/
│   ├── client.ts         # Graph API HTTP client w/ retry
│   ├── projects.ts       # Plan/bucket queries
│   ├── tasks.ts          # Task queries
│   └── users.ts          # User name resolution + cache
├── tools/
│   ├── list-projects.ts
│   ├── get-project.ts
│   ├── list-tasks.ts
│   ├── get-task.ts
│   ├── list-buckets.ts
│   ├── get-assignments.ts
│   └── check-overdue.ts
└── utils/
    ├── errors.ts         # Error mapping + priority labels
    └── types.ts          # Shared TypeScript interfaces

Design Decisions

  • Project for the Web (Planner-based), not classic Project Online (PWA/OData). Planner has better Graph API coverage and is Microsoft's forward-looking product.
  • Per-user delegated auth — the server never holds elevated service account privileges.
  • Read-only in v0 — write operations planned for v1 with human-in-the-loop confirmation.
  • Three dependencies — @modelcontextprotocol/sdk, @azure/msal-node, zod. Graph calls use native fetch.

Roadmap

  • [ ] v0.1 — Read-only MVP (this release)
  • [ ] v0.2 — Write operations (create/update tasks) with confirmation prompts
  • [ ] v0.3 — Dependency tracking (Dataverse or local graph)
  • [ ] v0.4 — Slack connector (search decisions, summarize threads)
  • [ ] v0.5 — GitHub connector (PR status, issue sync)
  • [ ] v1.0 — Self-correcting agent loop (schedule validation)

Known Limitations

  • Planner doesn't support task dependencies natively. Dependency tracking requires Dataverse direct access or a local graph — planned for v0.3.
  • get_assignments only works for the authenticated user. Fetching another user's assignments requires iterating all plans they're members of.
  • Tokens are in-memory only. You'll need to re-authenticate each session. Persistent encrypted storage planned for v0.2.

Contributing

PRs welcome. Please open an issue first for anything beyond a typo fix.


License

MIT

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选